AT89C51CC03 Atmel Corporation, AT89C51CC03 Datasheet - Page 21
AT89C51CC03
Manufacturer Part Number
AT89C51CC03
Description
Manufacturer
Atmel Corporation
Datasheets
1.AT89C51CC03.pdf
(7 pages)
2.AT89C51CC03.pdf
(198 pages)
3.AT89C51CC03.pdf
(32 pages)
4.AT89C51CC03.pdf
(27 pages)
Specifications of AT89C51CC03
Flash (kbytes)
64 Kbytes
Max. Operating Frequency
40 MHz
Cpu
8051-12C
Max I/o Pins
37
Spi
1
Uart
1
Can
1
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
62.5
Sram (kbytes)
2.25
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:
AT89C51CC03C-IM
Manufacturer:
AT
Quantity:
17
Company:
Part Number:
AT89C51CC03CA-IM
Manufacturer:
TI
Quantity:
18
Company:
Part Number:
AT89C51CC03CA-JM
Manufacturer:
ATEML
Quantity:
42
Company:
Part Number:
AT89C51CC03CA-RDTUM
Manufacturer:
COSMO
Quantity:
6 000
Company:
Part Number:
AT89C51CC03CA-RLTUM
Manufacturer:
ADI
Quantity:
141
Erasing the Flash
Requests From Host
Answers From
Bootloader
4251B–CAN–03/08
The flow described below allows the user to erase the Flash memory.
This operation can be executed only with a device previously opened in communication.
Two modes of Flash erasing are possible:
•
•
The Full Chip erase command erases the whole Flash (64 Kbytes) and sets some Configuration
Bytes at their default values:
•
•
•
The Block erase command erases only a part of the Flash.
Three Blocks are defined in the AT89C51CC03:
•
•
•
•
•
•
To start the erasing operation, the Host sends a “write” CAN message (Id_write_command).
As the Program Configuration Information flows, the erase block command has two possible
answers:
•
•
The full chip erase is always executed whatever the Software Security Byte value is.
On a full chip erase command an acknowledge “command ok” is sent.
Full Chip erase
Block erase
BSB = FFh
SBV = FFh
SSB = FFh (NO_SECURITY)
block0 (From 0000h to 1FFFh)
block1 (From 2000h to 3FFFh)
block2 (From 4000h to 7FFFh)
block3 (From 8000h to BFFFh)
block4 (From C000h to FFFFh)
If the chip is protected from program access an “Error” CAN message is sent (see
Section “Error Message Description”).
Otherwise an acknowledge is sent.
ID_WRITE_COMMAND
ID_WRITE_COMMAND
Identifier
Identifier
Length
AT89C51CC03 CAN Bootloader
2
Length
1
data[0]
00h
data[0]
00h
data[1]
C0h
FFh
00h
20h
40h
80h
Erase block2 (16k to 32k)
Erase block3 (32k to 48k)
Erase block4 (48k to 64k)
Erase block1 (8k to 16k)
Erase block0 (0k to 8k)
Command ok
Description
Full chip erase
Description
21