English
Language : 

AT89C51AC3_14 Datasheet, PDF (21/27 Pages) ATMEL Corporation – Based on the Intel Hex-type Records
AT89C51AC3 UART Bootloader
API Commands
Read/Program Flash
and EEPROM Data
Memory
Several types of APIs are available:
• Read/Program Flash and EEPROM Data memory
• Read Configuration and Manufacturer Information
• Program Configuration Information
• Erase Flash
• Start bootloader
All routines to access EEPROM Data are managed directly from the application without using
bootloader resources.
To read the Flash memory the bootloader is not involved.
For more details on these routines see the AT89C51AC3 datasheet sections “Program/Code
Memory” and “EEPROM Data Memory”
Two routines are available to program the Flash:
– __api_wr_code_byte
– __api_wr_code_page
Read Configuration
and Manufacturer
Information
• The application program load the column latches of the Flash then call the
__api_wr_code_byte or __api_wr_code_page see datasheet in section “Program/Code
Memory”.
• Parameter settings
API_name
R1
DPTR0
DPTR1
__api_wr_code_byte
Address in
02h
Flash
memory to
-
write
__api_wr_code_page
09h
Address of
the first Byte
to program in
the Flash
memory
Address in
XRAM of the
first data to
program
• instruction: LCALL FFF0h.
Note: No special resources are used by the bootloader during this operation
Acc
Value to write
Number of Byte
to program
• Parameter settings
API_name
__api_rd_HSB
__api_rd_BSB
__api_rd_SBV
__api_rd_SSB
__api_rd_EB
__api_rd_manufacturer
__api_rd_device_id1
R1
DPTR0
DPTR1
Acc
0Bh
0000h
x
return HSB
07h
0001h
x
return BSB
07h
0002h
x
return SBV
07h
0000h
x
return SSB
07h
0006h
x
return EB
00h
0000h
x
return
manufacturer id
00h
0001h
x
return id1
21
4386B–8051–03/08