AT89C51RB2/RC2
Figure 41. Command Flow
Host
Bootloader
":"
":"
If (not received ":")
Sends first character of the
Frame
Else
Sends echo and start
reception
Sends frame (made of 2 ASCII
characters per Byte)
Echo analysis
Gets frame, and sends back ec
for each received Byte
Write/Program Commands
This flow is common to the following frames:
•
•
•
•
Flash/EEPROM Programming Data Frame
EOF or Atmel Frame (only Programming Atmel Frame)
Config Byte Programming Data Frame
Baud Rate Frame
Description
Figure 42. Write/Program Flow
Bootloader
Host
Write Command
’X’ & CR & LF
Send Write Command
Wait Write Command
OR
Checksum error
Wait Checksum Error
COMMAND ABORTED
Send Checksum error
NO_SECURITY
OR
’P’ & CR & LF
’.’ & CR & LF
Wait Security Error
Send Security error
COMMAND ABORTED
Wait Programming
Wait COMMAND_OK
COMMAND FINISHED
Send COMMAND_OK
99
4180E–8051–10/06