T89C51CC02CA-TDSIM Atmel, T89C51CC02CA-TDSIM Datasheet - Page 22

IC 8051 MCU FLASH 16K 24SOIC

T89C51CC02CA-TDSIM

Manufacturer Part Number
T89C51CC02CA-TDSIM
Description
IC 8051 MCU FLASH 16K 24SOIC
Manufacturer
Atmel
Series
AT89C CANr

Specifications of T89C51CC02CA-TDSIM

Core Processor
8051
Core Size
8-Bit
Speed
40MHz
Connectivity
CAN, UART/USART
Peripherals
POR, PWM, WDT
Number Of I /o
20
Program Memory Size
16KB (16K x 8)
Program Memory Type
FLASH
Eeprom Size
2K x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
24-SOIC (7.5mm Width)
For Use With
AT89STK-06 - KIT DEMOBOARD 8051 MCU W/CAN
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
T89C51CC02CATDSIM
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 T89C51CC02CA-TDSIM