background image

It is important to note that invalid packets are NEVER pro-
grammed into the application controller. To do so would
require that the program memory in the controller be com-
pletely erased before the error could be corrected, caus-
ing the non-recoverable loss of all previous program data.

Upon receipt of an end-of-file packet, the programmer re-
turns its control outputs to the inactive, power on state,
allowing the application controller to begin execution of
the new program. The programmer then resumes polling
for a valid packet header, subject to the thirty second reset
delay.

If a valid packet is received prior to the expiration of the
thirty second delay, another programming cycle begins,
which can only be terminated by the reception of a valid
end-of-file packet.

If the reset delay expires prior to the reception of a valid
end-of-file packet, the modem will drop the line and the
programmer will return to sleep, waiting for the next call.
In this case, the application controller is left in program-
ming mode, preventing it from executing its program. To
return the application to normal operation, another call
must be received, and a valid program file uploaded, ter-
minated by an end-of-file packet.

Setting Up the Hardware

Local Station

Connect the IBM PC to the ProModem 1200 through one
of the system COM ports.  Connect the modem to an ana-
log telephone line and set the modem switches as indi-
cated below.

Switch settings:

1  ON 

  2  ON 
  3  OFF 
  4  ON 
  5  OFF 
  6  ON 
  7  OFF 
  8  OFF 
  9  OFF 
  10  OFF

Remote Station

Connect the display application/programmer to the sec-
ond ProModem 1200 through the programmer serial port.
Connect the modem to an analog telephone line and set
the modem switches as indicated below.

Turn the modem on and apply power to the display appli-
cation/programmer. The application will begin executing
its program, if it contains one. The programmer will initial-
ize the modem, as shown by the activity on the modem
status indicators.

Switch settings:

1  ON 

  2  ON 
  3  ON 
  4  OFF 
  5  ON 
  6  ON 
  7  ON 
  8  OFF 
  9  OFF 
  10  OFF

Installing and Configuring Procomm Plus, 
Version 2.01

Install Procomm Plus as instructed in the User Manual.
When prompted to specify the modem in use, select
’Prometheus ProModem 1200’ from the list.

Run Procomm Plus and create a dialing directory entry for
the remote station. The baud rate must be set to 1200,
parity to EVEN, number of data bits to 7, number of stop
bits to 1, plex to HALF.

Enter the Setup utility (ALT-S). Select ’PROTOCOL OP-
TIONS’, then ’EXTERNAL PROTOCOL OPTIONS’ from
the menus and modify the entry for ’EXTERNAL PROTO-
COL 1’ as indicated below.

EXTERNAL PROTOCOL 1: 
A - NAME:                                             <any name>
B - TYPE:                                               ASPECT 
C - UPLOAD COMMAND:                  ATX.ASX

NOTE: ’ATX.ASX.’ is the filename of the compiled AS-
PECT script to be associated with External Protocol 1.

Save the changes and exit the Setup utility.

Creating a Hex File

The hex files which are uploaded to the programmer are
created with the tools in the Intel MCS-51 Software Devel-
opment Package for the IBM PC. In the example below,
the 8051 assembler source file is called ’TEST.ASM’.

Assemble the source file ’TEST.ASM’ and create the ob-
ject file ’TEST.OBJ’:

ASM51 TEST.ASM

Link and locate the object file ’TEST.OBJ’ and create the
absolute object file ’TEST.ABS’:

RL51 TEST.OBJ TO TEST.ABS

Convert the absolute object file ’TEST.ABS’ to the hex file
’TEST.HEX’:

OH TEST.ABS TO TEST.HEX

The resulting file, ’TEST.HEX’ is ready to be uploaded.

NOTE: ASM51 is version 2.3; RL51 is version 3.1; OH is
version 1.1.

Microcontroller

 

4-13

Summary of Contents for AT89C51

Page 1: ...not be driven during normal operation ALE PROG is pulsed low during pro gramming but must not be driven during normal operation During programming AT89C51 I O ports are used for the application of mode select addresses and data pos sibly requiring that the controller be iso lated from the application circuitry How this is done is application dependent and will be addressed here only in gen eral te...

Page 2: ... and pro gram verification the programmer asserts control of port zero and part of port two The programmer is connected to ports zero and two without buffering since when inac tive its presence does not affect the normal operation of the application A transparent latch has been added between port two of the controller and the display control inputs The latch holds the display control signals inact...

Page 3: ...rammer might respond to a packet by sending a CAN which indicates that a non recoverable error has oc curred and that the transmitter should immediately abort the file transfer If the programmer fails to respond to a packet within a limited period of time the transmitter will resend the same packet The transmitter will continue to resend the same packet until a valid response is received or until ...

Page 4: ...ng for the next call If the caller hangs up the thirty second period must expire before another call will be answered Calls incoming dur ing the reset delay period are ignored If a valid packet header is received prior to the expiration of the reset delay period the programmer will attempt to read and validate the incoming packet At any time during packet reception an invalid character parity erro...

Page 5: ...em to an analog telephone line and set the modem switches as indicated below Turn the modem on and apply power to the display appli cation programmer The application will begin executing its program if it contains one The programmer will initial ize the modem as shown by the activity on the modem status indicators Switch settings 1 ON 2 ON 3 ON 4 OFF 5 ON 6 ON 7 ON 8 OFF 9 OFF 10 OFF Installing an...

Page 6: ... A1 WR DL1414T U2 8 9 10 11 2 1 12 5 4 D0 D1 D2 D3 D4 D5 D6 A0 A1 WR DL1414T U3 8 9 10 11 2 1 12 5 4 P2 0 P2 1 P2 2 P2 3 P2 4 P2 5 P2 6 P2 7 D0 D1 D2 D3 D4 D5 D6 A0 A1 WR DL1414T U4 8 9 10 11 2 1 12 5 4 D0 D1 D2 D3 D4 D5 D6 A0 A1 WR DL1414T U5 8 9 10 11 2 1 12 5 4 21 22 23 24 25 26 27 28 P0 0 P0 1 P0 2 P0 3 P0 4 P0 5 P0 6 P0 7 39 38 37 36 35 34 33 32 PSEN ALE PROG P3 6 WR P3 7 RD 29 30 16 17 AT89C...

Page 7: ...Figure 2 AT89C51 Moving Display Application Modified for In Circuit Programming Microcontroller 4 15 ...

Page 8: ...Figure 3 AT89C51 Programmer 4 16 Microcontroller ...

Page 9: ...Figure 4 FTP Transmit Mode Microcontroller 4 17 ...

Page 10: ...Figure 5 FTP Receive Mode 4 18 Microcontroller ...

Page 11: ...eld consists of four hex digits and in dicates the absolute address at which the data in the data field is to be loaded The record type field consists of two hex digits which are always zero in data records The data field contains from one to 16 pairs of hex digits The last two hex digits are a checksum on the record length load address record type and data fields The sum of the binary equivalents...

Reviews: