Datasheet

DS5000(T)
7 of 19
COMMAND FUNCTION
C Return CRC-16 checksum of embedded RAM
D Dump Intel hex file
F Fill embedded RAM block with constant
K Load 40-bit encryption key
L Load Intel hex file
R Read MCON register
T Trace (echo) incoming Intel hex data
U Clear security lock
V Verify embedded RAM with incoming Intel hex
W Write MCON register
Z Set security lock
P Put a value to a port
G Get a value from a port
PARALLEL PROGRAM LOAD CYCLES Table 1
MODE RST
PSEN PROG EA
P2.7 P2.6 P2.5
Program 1 0 0 V
PP
1 0 X
Security Set 1 0 0 V
PP
1 1 X
Verify 1 X X 1 0 0 X
Prog Expanded 1 0 0 V
PP
0 1 0
Verify Expanded 1 0 1 1 0 1 0
Prog MCON or Key registers 1 0 0 V
PP
0 1 1
Verify MCON registers 1 0 1 1 0 1 1
The Parallel Program Cycle is used to load a byte of data into a register or memory location within the
DS5000(T). The Verify Cycle is used to read this byte back for comparison with the originally loaded
value to verify proper loading. The Security Set Cycle may be used to enable and the Software Security
feature of the DS5000(T). One may also enter bytes for the MCON register or for the five encryption
registers using the Program MCON cycle. When using this cycle, the absolute register address must be
presented at Ports 1 and 2 as in the normal program cycle (Port 2 should be 00H). The MCON contents
can likewise be verified using the Verify MCON cycle.
When the DS5000(T) first detects a Parallel Program Strobe pulse or a Security Set Strobe pulse while in
the Program Load Mode following a Power-On Reset, the internal hardware of the DS5000(T) is
initialized so that an existing 4-kbyte program can be programmed into a DS5000(T) with little or no
modification. This initialization automatically sets the Range Address for 8 kbytes and maps the lowest 4-
kbyte bank of Embedded RAM as program memory. The next 4 kbytes of Embedded RAM are mapped
as Data Memory.
In order to program more than 4 kbytes of program code, the Program/Verify Expanded cycles can be
used. Up to 32 kbytes of program code can be entered and verified. Note that the expanded 32-kbyte
Program/ Verify cycles take much longer than the normal 4-kbyte Program/Verify cycles.