Microcontroller – Rainbow Electronics АТ89С51 User Manual
Page 5

Microcontroller
5-15
If the reset delay expires prior to the reception of a valid
end-of-file packet, the modem will drop the line and the pro-
grammer will return to sleep, waiting for the next call. In this
case, the application controller is left in programming
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, terminated 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 analog
telephone line and set the modem switches as indicated
below.
Remote Station
Connect the display application/programmer to the second
ProModem 1200 through the programmer serial port. Con-
nect 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 applica-
tion/programmer. The application will begin executing its
program, if it contains one. The programmer will initialize
the modem, as shown by the activity on the modem status
indicators.
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, par-
ity 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
OPTIONS’, then ’EXTERNAL PROTOCOL OPTIONS’ from
the menus and modify the entry for ’EXTERNAL PROTO-
COL 1’ as indicated below.
EXTERNAL PROTOCOL 1:
A - NAME:
B - TYPE:
ASPECT
C - UPLOAD COMMAND:
ATX.ASX
Note:
’ATX.ASX.’ is the filename of the compiled ASPECT
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 object
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.
Uploading a Hex File
Run Procomm Plus and use the proper dialing directory
entry to dial the remote station.
After the connection with the remote station is established,
press the ’PgUp’ key and select ’1’ (External Protocol 1)
from the menu of upload protocols. This will execute the
ASPECT script associated with External Protocol 1.
When prompted, enter the name of the file to be uploaded,
including the extension and path, if required.
When the upload is complete, press ALT-H to hang up and
ALT-X to exit Procomm Plus and return to DOS.
Switch settings:
1
2
3
4
5
6
7
8
9
10
ON
ON
OFF
ON
OFF
ON
OFF
OFF
OFF
OFF
Switch settings:
1
2
3
4
5
6
7
8
9
10
ON
ON
ON
OFF
ON
ON
ON
OFF
OFF
OFF