AT89C51CC02 Atmel Corporation, AT89C51CC02 Datasheet - Page 24
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
In-Application
Programming/S
elf-
programming
API Call
Process
Constraints
24
T89C51CC02 CAN Bootloader
The IAP allows to reprogram a microcontroller’s on-chip Flash memory without removing it from
the system and while the embedded application is running.
The user application can call some Application Programming Interface (API) routines allowing
IAP. These API are executed by the bootloader.
To call the corresponding API, the user must use a set of Flash_api routines which can be linked
with the application.
Example of Flash_api routines are available on the Atmel web site on the application note:
C Flash Drivers for the T89C51CC02CA
The Flash_api routines on the package work only with the CAN bootloader.
The Flash_api routines are listed in Appendix-B.
The application selects an API by setting the 4 variables available when the Flash_api library is
linked to the application.
These four variables are located in RAM at fixed address:
•
•
•
•
All calls are made through a common interface “USER_CALL” at the address FFF0h.
The jump at the USER_CALL must be done by LCALL instruction to be able to comeback in the
application.
Before jump at the USER_CALL, the bit ENBOOT in AUXR1 register must be set.
The interrupts are not disabled by the bootloader.
Interrupts must be disabled by user prior to jump to the USER_CALL, then re-enabled when
returning.
Interrupts must also be disabled before accessing EEPROM data then re-enabled after.
The user must take care of hardware watchdog before launching a Flash operation.
For more information regarding the Flash writing time see the T89C51CC02 datasheet.
api_command: 1Ch
api_value:1Dh
api_dph: 1Eh
api_dpl: 1Fh
4208D–CAN–03/08