DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

AT89C51AC2(2005) Просмотр технического описания (PDF) - Atmel Corporation

Номер в каталоге
Компоненты Описание
производитель
AT89C51AC2
(Rev.:2005)
Atmel
Atmel Corporation Atmel
AT89C51AC2 Datasheet PDF : 29 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
A/T89C51AC2 UART Bootloader
Programming the Flash or
EEPROM Data
Requests from Host
The flow described below shows how to program data in the Flash memory or in the
EEPROM data memory.
The bootloader programs on a page of 128 bytes basis when it is possible.
The host must take care that:
• The data to program transmitted within a frame are in the same page.
Command Name
Program Flash
Program EEPROM
Data
Record
Type
00h
07h
Load
Offset
start
address
start
address
Record
Length
nb of Data
nb of Data
Data[0]
x
x
...
Data[127]
...
x
...
x
Answers from Bootloader
Flow Description
Host
The bootloader answers with:
• ‘.’ & ‘CR’ & ’LF’ when the data are programmed
• ‘X’ & ‘CR’ & ‘LF’ if the checksum is wrong
• ‘P’ & ‘CR’ & ‘LF’ if the Security is set
Bootloader
Send Write Command
Write Command
Wait Write Command
OR
Wait Checksum Error
COMMAND ABORTED
’X’ & CR & LF
OR
Wait Security Error
COMMAND ABORTED
’P’ & CR & LF
Wait COMMAND_OK
COMMAND FINISHED
’.’ & CR & LF
Checksum error
Send Checksum error
NO_SECURITY
Send Security error
Wait Programming
Send COMMAND_OK
Example
Programming Data (write 55h at address 0010h in the Flash)
HOST
BOOTLOADER
: 01 0010 00 55 9A
: 01 0010 00 55 9A . CR LF
11
4231C–CAN–03/05

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]