Datasheet

23
4266C–CAN–03/08
AT89C51CC03 UART Bootloader
Erase Flash The AT89C51CC03 flash memory is divided in several blocks:
Block 0: from address 0000h to 1FFFh
Block 1: from address 2000h to 3FFFh
Block 2: from address 4000h to 7FFFh
These three blocks contain 128 pages.
Parameter settings
instruction: LCALL FFF0h.
Note: 1. See the AT89C51CC03 datasheet for the time that a write operation takes and this time must
multiply by the number of pages.
2. No special resources are used by the bootloader during these operations
Start Bootloader This routine allows to start at the beginning of the bootloader as after a reset. After calling this
routine the regular boot process is performed and the communication must be opened before
any action.
No special parameter setting
Set bit ENBOOT in AUXR1 register
instruction: LJUMP or LCALL at address F800h
API name R1 DPTR0 DPTR1 Acc
__api_erase_block0
01h
0000h x x
__api_erase_block1 2000h x x
__api_erase_block2 4000h x x
__api_erase_block3 8000h x x
__api_erase_block4 C000h x x