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