11.0 In-System Programming (Continued)
TABLE 11. User ISP/Virtual E2 Entry Points
Command/
Label
Command
Entry Point
Function
Parameters
Return Data
cpgerase
Page Erase
0x17
Register ISPADHI is loaded by the user N/A (A page of memory beginning at
with the high byte of the address.
Register ISPADLO is loaded by the
user with the low byte of the address.
Accumulator A contains the
ISPADHI, ISPADLO will be erased)
cmserase
creadbf
Mass Erase
Read Byte
0x1A
0x11
N/A (The entire Flash Memory will be
erased)
confirmation key 0x55.
Register ISPADHI is loaded by the user Data Byte in Register ISPRD.
with the high byte of the address.
Register ISPADLO is loaded by the
user with the low byte of the address.
cblockr
Block Read
0x26
Register ISPADHI is loaded by the user n Data Bytes, Data will be returned
with the high byte of the address.
Register ISPADLO is loaded by the
user with the low byte of the address.
X pointer contains the beginning RAM
address where the result(s) will be
returned.
beginning at a location pointed to by
the RAM address in X.
Register BYTECOUNTLO contains the
number of n bytes to read
(0 ≤ n ≤ 255). It is up to the user to
setup the segment register.
cwritebf
cblockw
Write Byte
Block Write
0x14
0x23
Register ISPADHI is loaded by the user N/A
with the high byte of the address.
Register ISPADLO is loaded by the
user with the low byte of the address.
Register ISPWR contains the Data
Byte to be written.
Register ISPADHI is loaded by the user N/A
with the high byte of the address.
Register ISPADLO is loaded by the
user with the low byte of the address.
Register BYTECOUNTLO contains the
number of n bytes to write (0 ≤ n ≤ 16).
The combination of the
BYTECOUNTLO and the ISPADLO
registers must be set such that the
operation will not cross a 64 byte
boundary.
X pointer contains the beginning RAM
address of the data to be written.
It is up to the user to setup the
segment register.
exit
EXIT
0x62
0x00
N/A
N/A
N/A (Device will Reset)
uwisp
MICROWIRE/
PLUS
N/A (Divice will be in
MICROWIRE/PLUS ISP Mode. Must
be terminated by MICROWIRE/PLUS
ISP EXIT command which will Reset
the device)
ISP Start
www.national.com
28