AT89C51CC03 Atmel Corporation, AT89C51CC03 Datasheet

no-image

AT89C51CC03

Manufacturer Part Number
AT89C51CC03
Description
Manufacturer
Atmel Corporation
Datasheets

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
Part Number:
AT89C51CC03C-7CTIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51CC03C-IM
Manufacturer:
AT
Quantity:
17
Part Number:
AT89C51CC03C-RDRIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51CC03C-RLRIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51CC03C-RLTIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51CC03C-S3RIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51CC03CA-IM
Manufacturer:
TI
Quantity:
18
Part Number:
AT89C51CC03CA-JM
Manufacturer:
ATEML
Quantity:
42
Part Number:
AT89C51CC03CA-RDTUM
Manufacturer:
COSMO
Quantity:
6 000
Part Number:
AT89C51CC03CA-RLTUM
Manufacturer:
ADI
Quantity:
141
Features
Description
This document describes the UART bootloader functionalities as well as the serial
protocol to efficiently perform operations on the on chip Flash (EEPROM) memories.
Additional information on the AT89C51CC03 product can be found in the
AT89C51CC03 datasheet and the AT89C51CC03 errata sheet available on the Atmel
web site.
The bootloader software package (source code and binary) currently used for produc-
tion is available from the Atmel web site.
Bootloader Revision
Revision 1.0.1
Revision 1.2.0
Protocol
In-System Programming
In-Application Programming/Self Programming
– UART Used as Physical Layer
– Based on the Intel Hex-type Records
– Autobaud
– Read/Write Flash and EEPROM Memories
– Read Device ID
– Full-chip Erase
– Read/Write Configuration Bytes
– Security Setting From ISP Command
– Remote Application Start Command
– Read/Write Flash and EEPROM Memories
– Read Device ID
– Block Erase
– Read/Write Configuration Bytes
– Bootloader Start
Purpose of Modifications
First release
Standardization of tasks in source
program.
Date
01/08/2003
20/03/2007
CAN
Microcontrollers
AT89C51CC03
UART
Bootloader
4266C–CAN–03/08

Related parts for AT89C51CC03

AT89C51CC03 Summary of contents

Page 1

... Description This document describes the UART bootloader functionalities as well as the serial protocol to efficiently perform operations on the on chip Flash (EEPROM) memories. Additional information on the AT89C51CC03 product can be found in the AT89C51CC03 datasheet and the AT89C51CC03 errata sheet available on the Atmel web site. The bootloader software package (source code and binary) currently used for produc- tion is available from the Atmel web site ...

Page 2

... Functional The AT89C51CC03 Bootloader facilitates In-System Programming and In-Application Programming. Description In-System In-System Programming allows the user to program or reprogram a microcontroller on-chip Programming Flash memory without removing it from the system and without the need of a pre-programmed application. Capability The UART bootloader can manage a communication with a host through the serial network. It can also access and perform requested operations on the on-chip Flash Memory ...

Page 3

... Value of Hardware The 4 LSB can only be read by software and written by hardware in parallel mode (with parallel Security Byte programmer devices). Bit Position Note: 4266C–CAN–03/08 AT89C51CC03 UART Bootloader Description Boot Status Byte Software Boot Vector Software Security Byte Extra Byte Mnemonic ...

Page 4

... The Software Boot Vector (SBV) forces the execution of a user bootloader starting at address [SBV]00h in the application area (FM0). Vector The way to start this user bootloader is described in the section “Boot Process”. Application AT89C51CC03 UART Bootloader 4 Level 0 Level 1 Any access allowed Read only access allowed ...

Page 5

... As PSEN is an output port in normal operating mode (running user application or bootloader code) after reset recommended to release PSEN after falling edge of reset signal. The hard- ware conditions are sampled at reset signal falling edge, thus they can be released at any time when reset input is low. 4266C–CAN–03/08 AT89C51CC03 UART Bootloader 5 ...

Page 6

... Regular Boot Process 0000h lica tio n AT89C51CC03 UART Bootloader 6 bit egister initialized w ith inverted ardw are C ondition LJB = 800h ...

Page 7

... Data/Info: – • Checksum: – 4266C–CAN–03/08 AT89C51CC03 UART Bootloader Record Mark ‘:’ Record length Load Offset 1 byte 1 byte Record Mark is the start of frame. This field must contain ’:’. Record length specifies the number of Bytes of information or data which follows the Record Type field of the record ...

Page 8

... Table 2. Autobaud Performances Frequency (MHz) Baudrate (kHz) 2400 4800 9600 19200 38400 57600 115200 Frequency (MHz) Baudrate (kHz) 2400 4800 9600 19200 AT89C51CC03 UART Bootloader 8 Host Init Communication If (not received "U") Else Communication Opened 1.8432 2 2.4576 ...

Page 9

... All commands are sent using the same flow. Each frame sent by the host is echoed by the bootloader. Figure 3. Command Flow Host Sends first character of the Frame Sends frame (made of 2 ASCII characters per Byte) Echo analysis 4266C–CAN–03/08 AT89C51CC03 UART Bootloader 8 10 11.0592 12 14.746 - - OK OK ...

Page 10

... Security is set Flow Description Host Send Write Command OR Wait Checksum Error COMMAND ABORTED OR Wait Security Error COMMAND ABORTED Wait COMMAND_OK COMMAND FINISHED Example AT89C51CC03 UART Bootloader 10 Record Command Name Type Offset Program Flash 00h address Program EEPROM 07h Data address Write Command ’ ...

Page 11

... Host Send Blank Check Command OR Wait Checksum Error COMMAND ABORTED Wait COMMAND_OK OR COMMAND FINISHED Wait Address not erased COMMAND FINISHED 4266C–CAN–03/08 AT89C51CC03 UART Bootloader Record Load Command Name Type Offset Read Flash Blank check on Flash 04h x Read EEPROM Data The field “ ...

Page 12

... OR Wait Checksum Error COMMAND ABORTED OR Wait Security Error COMMAND ABORTED Wait Display Data All data read COMMAND FINISHED AT89C51CC03 UART Bootloader 12 Blank Check ok HOST : 05 0000 04 0000 7FFF 0000 04 0000 7FFF BOOTLOADER Blank Check ko at address xxxx HOST : 05 0000 04 0000 7FFF 01 78 ...

Page 13

... Security is set 4266C–CAN–03/08 AT89C51CC03 UART Bootloader Display data from address 0000h to 0020h HOST : 05 0000 04 0000 0020 0000 04 0000 0020 00 D7 ...

Page 14

... Wait Checksum Error COMMAND ABORTED OR Wait Security Error COMMAND ABORTED Wait COMMAND_OK COMMAND FINISHED Example AT89C51CC03 UART Bootloader 14 Write Command ’X’ & CR & LF ’P’ & CR & LF ’.’ & CR & LF Programming Atmel function (write SSB to level 2) HOST : 02 0000 0000 ...

Page 15

... Security is set 4266C–CAN–03/08 AT89C51CC03 UART Bootloader Record Load Type Offset Read SSB ...

Page 16

... SSB = FFh (NO_SECURITY) The full chip erase is always executed whatever the Software Security Byte value is. The Block erase command erases only a part of the Flash. Three Blocks are defined in the AT89C51CC03: • block0 (From 0000h to 1FFFh) • block1 (From 2000h to 3FFFh) ...

Page 17

... Send Erase Command OR Wait Checksum Error COMMAND ABORTED OR Wait Security Error COMMAND ABORTED Wait COMMAND_OK COMMAND FINISHED 4266C–CAN–03/08 AT89C51CC03 UART Bootloader Record Load Type Offset 03h Full chip erase Erase Command ’X’ & CR & LF ’P’ & CR & LF ’ ...

Page 18

... Example AT89C51CC03 UART Bootloader 18 Full Chip Erase HOST : 01 0000 0000 BOOTLOADER Erase Block1(8k to 16k) HOST : 02 0000 0000 BOOTLOADER 4266C–CAN–03/08 ...

Page 19

... Requests from Host Command Name Start application with a reset pulse generation Start application with a jump at “address” Answer from Bootloader No answer is returned by the device. Example 4266C–CAN–03/08 AT89C51CC03 UART Bootloader Record Load type Offset 03h x Start Application with reset pulse HOST ...

Page 20

... 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 AT89C51CC03 datasheet. AT89C51CC03 UART Bootloader 20 4266C–CAN–03/08 ...

Page 21

... EEPROM Data bootloader resources. Memory To read the Flash memory the bootloader is not involved. For more details on these routines see the AT89C51CC03 datasheet sections “Program/Code Memory” and “EEPROM Data Memory” Two routines are available to program the Flash: – – ...

Page 22

... See in the AT89C51CC03 datasheet the time that a write operation takes special resources are used by the bootloader during these operations DPTR0 DPTR1 Acc 0002h x return id2 0003h x return id3 0000h ...

Page 23

... API name R1 __api_erase_block0 __api_erase_block1 __api_erase_block2 01h __api_erase_block3 __api_erase_block4 1. See the AT89C51CC03 datasheet for the time that a write operation takes and this time must multiply by the number of pages special resources are used by the bootloader during these operations DPTR0 DPTR1 Acc 0000h x ...

Page 24

... Read Product Revision Read SSB Read BSB Read SBV Read EB Read Hardware Byte Read Device Boot ID1 Read Device Boot ID2 Read Bootloader Version Program Nb Data byte in EEPROM AT89C51CC03 UART Bootloader 24 Record Record Type Length Offset Data[ data start 00h ...

Page 25

... AT89C51CC03 UART Bootloader Bootloader Execution R1 no yes 02h yes 09h yes 01h yes 01h yes 01h yes 01h yes 01h ...

Page 26

... Table 4. API Summary (Continued) Function Name __api_rd_eeprom_byte __api_wr_eeprom_byte __api_start_bootloader Datasheet Revision History 4266C - 03/08 1. Updated Bootloader version. AT89C51CC03 UART Bootloader 26 Bootloader Execution DPTR0 DPTR1 Acc 4266C–CAN–03/08 ...

Page 27

... Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel’s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life. © 2008 Atmel Corporation. All rights reserved. Atmel Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others. International Atmel Asia ...

Related keywords