Appendix-b – Rainbow Electronics AT89C5132 User Manual
Page 30

30
AT89C5132
4256A–USB–06/03
Appendix-B
Table 17. API Summary
Function Name
Bootloader
Execution
api_command
api_dph
api_dpl
api_value
__api_rd_code_byte
no
__api_wr_code_byte
yes
0Dh
–
–
–
__api_wr_code_page
yes
0Dh
–
–
–
__api_erase block0
yes
00h
00h
–
–
__api_erase block1
yes
00h
20h
–
–
__api_erase block2
yes
00h
40h
–
–
__api_erase block3
yes
00h
80h
–
–
__api_rd_HSB
yes
08h
–
00h
return value
__api_clr_BLJB
yes
07h
–
–
(HSB & BFh) | 40h
__api_set_BLJB
yes
07h
–
–
HSB & BFh
__api_clr_X2
yes
07h
–
–
(HSB & 7Fh) | 80h
__api_set_X2
yes
07h
–
–
HSB & 7Fh
__api_rd_BSB
yes
05h
–
00h
return value
__api_wr_BSB
yes
04h
–
00h
value
__api_rd_SBV
yes
05h
–
01h
return value
__api_wr_SBV
yes
04h
–
01h
value
__api_erase_SBV
yes
04h
–
01h
FFh
__api_rd_SSB
yes
05h
–
05h
return value
__api_wr_SSB
yes
04h
–
05h
value
__api_rd_EB
yes
05h
–
06h
return value
__api_wr_EB
yes
04h
–
06h
value
__api_rd_manufacturer
yes
05h
–
30h
return value
__api_rd_device_id1
yes
05h
–
31h
return value
__api_rd_device_id2
yes
05h
–
60h
return value
__api_rd_device_id3
yes
05h
–
61h
return value
__api_rd_bootloader_version
yes
0Eh
–
00h
return value
__api_start_bootloader
no
–
–
–
–
__api_start_isp
no
–
–
–
–