cop8cde9 National Semiconductor Corporation, cop8cde9 Datasheet - Page 25

no-image

cop8cde9

Manufacturer Part Number
cop8cde9
Description
8-bit Cmos Flash Microcontroller With 8k Memory, Virtual Eeprom, 10-bit A/d And Brownout Reset
Manufacturer
National Semiconductor Corporation
Datasheet
PGMTIM_SET
PAGE_ERASE
MASS_ERASE
READ_BYTE
BLOCKR
WRITE_BYTE
BLOCKW
EXIT
INVALID
5.0 In-System Programming
Note: The user must ensure that Block Writes do not cross a 64 byte boundary within one operation.
5.8 USER ISP AND VIRTUAL E
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.
• Read Option register.
• Read a byte from a specified address.
• Write a byte to a specified address.
• Read multiple bytes starting at a specified address.
• Erase the entire flash program memory (mass erase).
• Erase a page of flash memory at a specified address.
• Read a byte from a specified address.
• Write a byte to a specified address.
(Continued)
NOTE: Execution of this command will force the device
into the MICROWIRE/PLUS ISP mode.
Command
Write Pulse Timing
Register
Page Erase
Mass Erase
Read Byte
Block Read
Write Byte
Block Write
EXIT
N/A
Function
2
TABLE 11. MICROWIRE/PLUS ISP Commands
Value (Hex)
Command
0x3B
0xB3
0xBF
0x1D
0xA3
0xD3
0x71
0x8F
25
The following table lists the MICROWIRE/PLUS ISP com-
mands and provides information on required parameters and
return values.
The following table lists the User ISP/Virtual E
required parameters and return data, if applicable. The com-
mand entry point is used as an argument to the JSRB
instruction. Table 13 lists the Ram locations and Peripheral
Registers, used for User ISP and Virtual E
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 E
• Write multiple bytes starting at a specified address.
• Exit ISP and return execution to flash program memory.
• Copy a block of data from RAM into flash program
• Copy a block of data from program flash memory to RAM.
memory.
Value
Starting Address of
Page
Confirmation Code
Address High, Address
Low
Address High, Address
Low, Byte Count (n)
High, Byte Count (n)
Low
0
Address High, Address
Low, Data Byte
Address High, Address
Low, Byte Count (0
N/A
Any other invalid
command will be
ignored
16), n Data Bytes
n
Parameters
32767
n
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
Return Data
2
, and their ex-
2
.
2
commands,
www.national.com

Related parts for cop8cde9