11.0 In-System Programming
(Continued)
The following table lists the MICROWIRE/PLUS ISP com-
mands and provides information on required parameters and
return values.
TABLE 10. MICROWIRE/PLUS ISP Commands
Command
Value (Hex)
0x3B
Command
PGMTIM_SET
Function
Parameters
Return Data
Write Pulse Timing
Register
Value
N/A
N/A
PAGE_ERASE
MASS_ERASE
READ_BYTE
Page Erase
0xB3
0xBF
0x1D
Starting Address of
Page
Mass Erase
Read Byte
Confirmation Code
N/A (The entire Flash
Memory will be erased)
Address High, Address Data Byte if Security not
Low
set. 0xFF if Security set.
Option Register if address
= 0xFFFF, regardless of
Security
BLOCKR
Block Read
0xA3
Address High, Address n Data Bytes if Security
Low, Byte Count (n)
High, Byte Count (n)
Low
not set.
n Bytes of 0xFF if
Security set.
0 ≤ n ≤ 32767
WRITE_BYTE
BLOCKW
Write Byte
Block Write
0x71
0x8F
Address High, Address N/A
Low, Data Byte
Address High, Address N/A
Low, Byte Count (0 ≤ n
≤ 16), n Data Bytes
EXIT
EXIT
N/A
0xD3
N/A
N/A (Device will Reset)
N/A
INVALID
Any other invalid
command will be
ignored
Note: The user must ensure that Block Writes do not cross a 64 byte boundary within one operation.
11.8 USER ISP AND VIRTUAL E2
•
•
Copy a block of data from RAM into flash program
memory.
The following commands will support transferring blocks of
data from RAM to flash program memory, and vice-versa.
The user is expected to enforce application security in this
case.
Copy a block of data from program flash memory to RAM.
The following table lists the User ISP/Virtual E2 commands,
required parameters and return data, if applicable. The com-
mand entry point is used as an argument to the JSRB
instruction. Table 12 lists the Ram locations and Peripheral
Registers, used for User ISP and Virtual E2, and their ex-
pected contents. Please refer to the COP8 FLASH ISP User
Manual for additional information and programming ex-
amples on the use of User ISP and Virtual E2.
•
Erase the entire flash program memory (mass erase).
NOTE: Execution of this command will force the device
into the MICROWIRE/PLUS ISP mode.
•
•
•
Erase a page of flash memory at a specified address.
Read a byte from a specified address.
Write a byte to a specified address.
27
www.national.com