Datasheet

25
4266C–CAN–03/08
AT89C51CC03 UART Bootloader
APPENDIX-B
Table 4. API Summary
Function Name
Bootloader
Execution R1 DPTR0 DPTR1 Acc
__api_rd_code_byte no
__api_wr_code_byte yes 02h
Address in
Flash memory
to write
- Value to write
__api_wr_code_page yes 09h
Address of the
first Byte to
program in the
Flash memory
Address in
XRAM of the
first data to
program
Number of Byte to
program
__api_erase_block0 yes 01h 0000h x x
__api_erase_block1 yes 01h 2000h x x
__api_erase_block2 yes 01h 4000h x x
__api_erase_block3 yes 01h 8000h x x
__api_erase_block4 yes 01h C000h x x
__api_rd_HSB yes 0Bh 0000h x return value
__api_set_X2 yes 0Ah 0008h x 00h
__api_clr_X2 yes 0Ah 0008h x 01h
__api_set_BLJB yes 0Ah 0004h x 00h
__api_clr_BLJB yes 0Ah 0004h x 01h
__api_rd_BSB yes 07h 0001h x return value
__api_wr_BSB yes 06h 0000h x value
__api_rd_SBV yes 07h 0002h x return value
__api_wr_SBV yes 06h 0001h x value
__api_erase_SBV yes 06h 0001h x FCh
__api_rd_SSB yes 07h 0000h x return value
__api_wr_SSB_level0 yes 05h 00FFh x x
__api_wr_SSB_level1 yes 05h 00FEh x x
__api_wr_SSB_level2 yes 05h 00FCh x x
__api_rd_EB yes 07h 0006h x return value
__api_wr_EB yes 06h 0006h x value
__api_rd_manufacturer yes 00h 0000h x return value
__api_rd_device_id1 yes 00h 0001h x return value
__api_rd_device_id2 yes 00h 0002h x return value
__api_rd_device_id3 yes 00h 0003h x return value
__api_rd_bootloader_version yes 0Fh 0000h x return value
__api_eeprom_busy no