AT89C51CC02 Atmel Corporation, AT89C51CC02 Datasheet - Page 15

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
Programming Example
Reading the Flash or
EEPROM Data
Requests from Host
Answers from
Bootloader
4208D–CAN–03/08
The ID_PROG_DATA flow described above allows the user to read data in the Flash memory or
in the EEPROM data memory. A blank check command is possible with this flow.
This operation can be executed only with a device previously opened in communication.
To s ta r t th e r e ad i n g o p er at i on , th e Ho s t s e n d s a “ D i s pl a y D at a ” CA N me s s a g e
(ID_DISPLAY_DATA) with the area memory selected, the start address and the end address
passed in parameter.
The device splits into blocks of 8 bytes the data to transfer to the Host if the number of data to
display is greater than 8 data bytes.
Notes:
The device has two possible answers:
Answer to a read command:
If the chip is protected from read access an “Error” CAN message is sent (see Section “Error
Message Description”, page 23).
Otherwise, for a display command, the device starts to send the data up to 8 by frame to the
host. For a blank check command the device sends a result OK or the first address not
erased.
Programming Data (write 55h from 0000h to 0008h in the flash), with SSB in write security
BOOTLOADER
HOST
Programming Data (write 55h from 0000h to 0008h in the flash)
HOST
BOOTLOADER
HOST
BOOTLOADER
HOST
BOOTLOADER
1.
2. The address_start gives the start address to read.
3. The address_end gives the last address to read.
ID_DISPLAY_DATA
D
- 00h: Display Flash
- 01h: Blank Check on the Flash
- 02h: Display EEPROM data
ata[0] selects the area to read and the operation
Identifier
ID_DISPLAY_DATA
Identifier
Id_prog_start
Id_error
Id_prog_start
Id_prog_start
Id_prog_data
Id_prog_data
Id_prog_data
Id_prog_data
identifier
identifier
Length
5
T89C51CC02 CAN Bootloader
Data[0]
00h
01h
02h
control
control
04
08
01
01
01
01
05
00
Data[1]
Length
Address_start
n
00 00 00
55
02
55
00
00
00
55
00
data
data
Data[2]
// command_new_data
// command_ok
// error_security
55
00
08
55
00
55 55 55 55
08
Data[3]
data[n]
Address_end
x
Data[4]
15

Related parts for AT89C51CC02