English
Language : 

COP8AME9 Datasheet, PDF (27/83 Pages) National Semiconductor (TI) – 8-Bit CMOS Flash Microcontroller with 8k Memory, Dual Op Amps, Virtual EEROM, Temperature Sensor,10-Bit A/D and Brownout Reset
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.
Command
PGMTIM_SET
PAGE_ERASE
MASS_ERASE
READ_BYTE
TABLE 10. MICROWIRE/PLUS ISP Commands
Function
Write Pulse Timing
Register
Page Erase
Mass Erase
Command
Value (Hex)
0x3B
0xB3
0xBF
Parameters
Value
Starting Address of
Page
Confirmation Code
Read Byte
0x1D
Address High, Address
Low
BLOCKR
Block Read
0xA3
Address High, Address
Low, Byte Count (n)
High, Byte Count (n)
Low
0 ≤ n ≤ 32767
WRITE_BYTE
Write Byte
0x71
Address High, Address
Low, Data Byte
BLOCKW
Block Write
0x8F
Address High, Address
Low, Byte Count (0 ≤ n
≤ 16), n Data Bytes
EXIT
EXIT
0xD3
N/A
INVALID
N/A
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.
Return Data
N/A
N/A
N/A (The entire Flash
Memory will be erased)
Data Byte if Security not
set. 0xFF if Security set.
Option Register if address
= 0xFFFF, regardless of
Security
n Data Bytes if Security
not set.
n Bytes of 0xFF if
Security set.
N/A
N/A
N/A (Device will Reset)
N/A
11.8 USER ISP AND VIRTUAL E2
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.
• 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.
• Copy a block of data from RAM into flash program
memory.
• 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.
27
www.national.com