T89C51RD2
ISP Commands Summary
API Call Description
Table 40. ISP Commands Summary
Command Command Name
00h
Program Data
03h
Write Function
04h
Display Function
05h
Read Function
Data[0]
Data[1] Command Effect
Program Nb Data Byte.
Bootloader will accept up to 16 (10h)
data Bytes. The data Bytes should be
128 Byte page Flash boundary.
04h
00h
Erase SBV
00h
Program SSB level 1
05h
01h
Program SSB level 2
00h
Program BSB (value to write in
data[2])
06h
01h
Program SBV (value to write in
data[2])
07h
-
Full Chip Erase
Data[0:1] = start address Display Data
Data [2:3] = end address
Data[4] = 00h -> Display data Blank Check
Data[4] = 01h -> Blank check
00h
Manufacturer ID
01h
00h
02h
Device ID #1
Device ID #2
03h
Device ID #3
00h
Read SSB
01h
07h
02h
Read BSB
Read SBV
03h
Read Hardware Byte Copy
08h
00h
Read Bootloader Version
00h
0Eh
01h
Read Device Boot ID1
Read Device Boot ID2
Several Application Program Interface (API) calls are available for use by an application
program to permit selective erasing and programming of Flash pages. All calls are made
through a common interface, PGM_MTP. The programming functions are selected by
setting up the microcontroller’s registers before making a call to PGM_MTP at FFF0h.
Results are returned in the registers.
When several Bytes have to be programmed, it is highly recommended to use the Atmel
API “PROGRAM DATA PAGE” call. Indeed, this API call writes up to 128 Bytes in a sin-
gle command.
All routines for software access are provided in the C Flash driver available at Atmel’s
web site.
73
4243G–8051–05/03