AT89C51CC02 Atmel Corporation, AT89C51CC02 Datasheet - Page 11
AT89C51CC02
Manufacturer Part Number
AT89C51CC02
Description
Manufacturer
Atmel Corporation
Datasheets
1.AT89C51CC02.pdf
(7 pages)
2.AT89C51CC02.pdf
(159 pages)
3.AT89C51CC02.pdf
(33 pages)
4.AT89C51CC02.pdf
(29 pages)
Specifications of AT89C51CC02
Flash (kbytes)
16 Kbytes
Max. Operating Frequency
40 MHz
Cpu
8051-12C
Max I/o Pins
20
Uart
1
Can
1
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
62.5
Sram (kbytes)
0.5
Eeprom (bytes)
2048
Self Program Memory
API
Operating Voltage (vcc)
3.0 to 5.5
Timers
4
Isp
UART/CAN
Watchdog
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
AT89C51CC02CA-SISUM
Manufacturer:
Atmel
Quantity:
972
Part Number:
AT89C51CC02CA-SISUM
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
AT89C51CC02CA-TISUM
Manufacturer:
Atmel
Quantity:
1 492
Company:
Part Number:
AT89C51CC02CA-UM
Manufacturer:
AD
Quantity:
10
Company:
Part Number:
AT89C51CC02UA-RATUM
Manufacturer:
Atmel
Quantity:
1 845
Company:
Part Number:
AT89C51CC02UA-UM
Manufacturer:
NEDI
Quantity:
4
Programming the
Flash or EEPROM
Data
Requests from Host
Answers from
Bootloader
Flow Description
Example
4223C–CAN–03/08
Program EEPROM Data
Command Name
Program Flash
COMMAND FINISHED
Wait COMMAND_OK
Send Write Command
OR
Host
OR
COMMAND ABORTED
Wait Checksum Error
COMMAND ABORTED
Wait Security Error
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 boot loader answers with:
•
•
•
The data to program transmitted within a frame are in the same page.
‘.’ & ‘CR’ & ’LF’ when the data are programmed
‘X’ & ‘CR’ & ‘LF’ if the checksum is wrong
‘P’ & ‘CR’ & ‘LF’ if the Security is set
Record type
00h
07h
Programming Data (write 55h at address 0010h in the Flash)
HOST
BOOTLOADER
start address
start address
Load Offset
’X’ & CR & LF
Write Command
’P’ & CR & LF
’.’ & CR & LF
: 01 0010 00 55 9A
: 01 0010 00 55 9A . CR LF
T89C51CC02 UART Bootloader
nb of Data
nb of Data
Record
length
Send Checksum error
Send Security error
Data[0]
x
x
Bootloader
Wait Write Command
Send COMMAND_OK
Wait Programming
Checksum Error
NO_SECURITY
...
...
...
Data[127]
x
x
11