Datasheet
17
4266C–CAN–03/08
AT89C51CC03 UART Bootloader
• block2 (From 4000h to 7FFFh)
• block3 (From 8000h to BFFFh)
• block4 (From C000h to FFFFh)
Requests from Host
Answers from
Bootloader
As the Program Configuration Information flows, the erase block command has three possible
answers:
• ‘.’ & ‘CR’ & ’LF’ when the data are programmed
• ‘X’ & ‘CR’ & ‘LF’ if the checksum is wrong
• ‘P’ & ‘CR’ & ‘LF’ if the Security is set
Flow Description
Command Name
Record
Type
Load
Offset
Record
Length Data[0] Data[1]
Erase block0 (0k to 8k)
03h x
02h 01h
00h
Erase block1 (8k to 16k) 20h
Erase block2 (16k to 32k) 40h
Erase block3 (32k to 48k) 80h
Erase block4 (48k to 64k) C0h
Full chip erase 01h 07h -
Host
Bootloader
Erase Command
’X’ & CR & LF
NO_SECURITY
Wait Erase Command
Checksum error
Wait Erasing
Send Security error
Send COMMAND_OK
Send Erase Command
Wait Checksum Error
Wait COMMAND_OK
Wait Security Error
OR
COMMAND ABORTED
COMMAND FINISHED
Send Checksum error
COMMAND ABORTED
’P’ & CR & LF
OR
’.’ & CR & LF