AT89C51CC02 Atmel Corporation, AT89C51CC02 Datasheet - Page 22

no-image

AT89C51CC02

Manufacturer Part Number
AT89C51CC02
Description
Manufacturer
Atmel Corporation
Datasheets

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
Part Number:
AT89C51CC02CA-RATUM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51CC02CA-SISUM
Manufacturer:
Atmel
Quantity:
972
Part Number:
AT89C51CC02CA-SISUM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51CC02CA-SISUM
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
AT89C51CC02CA-TISUM
Manufacturer:
Atmel
Quantity:
1 492
Part Number:
AT89C51CC02CA-UM
Manufacturer:
AD
Quantity:
10
Part Number:
AT89C51CC02UA-RATUM
Manufacturer:
Atmel
Quantity:
1 845
Part Number:
AT89C51CC02UA-RATUM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51CC02UA-SISUM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51CC02UA-UM
Manufacturer:
NEDI
Quantity:
4
Erasing the Flash
Requests from Host
Answers from
Bootloader
ID_WRITE_COMMAND Example
22
T89C51CC02 CAN Bootloader
The ID_WRITE_COMMAND 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 (16 Kbytes) and sets some Configuration
Bytes to their default values:
Note:
The Block erase command erases only a part of the Flash.
Two Blocks are defined in the T89C51CC02:
T o s t a r t t h e e r a s i n g o p e r a t i o n , t h e H o s t s e n d s a “ w r i t e ” C A N m e s s a g e
(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)
If the chip is protected from program access an “Error” CAN message is sent (see
Section “Error Message Description”, page 23).
Otherwise an acknowledge is sent.
Full-chip Erase
BOOTLOADER
ID_WRITE_COMMAND
HOST
Take care that the full chip erase execution takes few seconds (128 pages)
ID_WRITE_COMMAND
Identifier
Identifier
Id_write_command
Id_write_command
identifier
Length
2
Length
1
Data[0]
control
00h
02
01
data[0]
00h
00
00
data
Data[1]
00h
20h
FFh
FF
// command_ok
Erase block1 (8K to 16K)
Erase block0 (0K to 8K)
Command OK
Description
Full chip erase
Description
4208D–CAN–03/08

Related parts for AT89C51CC02