AT89C51CC03C-S3RIM Atmel, AT89C51CC03C-S3RIM Datasheet

IC 8051 MCU FLASH 64K 52PLCC

AT89C51CC03C-S3RIM

Manufacturer Part Number
AT89C51CC03C-S3RIM
Description
IC 8051 MCU FLASH 64K 52PLCC
Manufacturer
Atmel
Series
AT89C CANr

Specifications of AT89C51CC03C-S3RIM

Core Processor
8051
Core Size
8-Bit
Speed
40MHz
Connectivity
CAN, SPI, UART/USART
Peripherals
POR, PWM, WDT
Number Of I /o
36
Program Memory Size
64KB (64K x 8)
Program Memory Type
FLASH
Eeprom Size
2K x 8
Ram Size
2.25K 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
52-PLCC
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
AT89C51CC03CS3RTR

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89C51CC03C-S3RIM
Manufacturer:
Atmel
Quantity:
10 000
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 AT89C51CC03C-S3RIM

AT89C51CC03C-S3RIM Summary of contents

Page 1

... 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 ...

Page 3

ISP Communication The purpose of this process is to manage the communication and its protocol between the on- Management chip bootloader and an external device (host). The on-chip bootloader implements a Serial pro- tocol (see Section “Protocol”). This process translates ...

Page 4

Security The bootloader has Software Security Byte (SSB) to protect itself from user access or ISP access. The Software Security Byte (SSB) protects from ISP accesses. The command "Program Soft- ware Security Bit" can only write a higher priority level. ...

Page 5

... FLIP software program running under Windows and LINUX that sup- ports all Atmel C51 Flash microcontrollers. Program This free software program is available on the Atmel web site. In-System The ISP allows the user to program or reprogram a microcontroller’s on-chip Flash memory through the serial line without removing it from the system and without the need of a pre-pro- Programming grammed application ...

Page 6

Regular Boot Process 0000h lica tio n AT89C51CC03 UART Bootloader 6 bit ...

Page 7

Physical Layer The UART used to transmit information has the following configuration: • Character: 8-bit data • Parity: none • Stop: 2 bits • Flow control: none • Baud rate: autobaud is performed by the bootloader to compute the baud ...

Page 8

Protocol Overview An initialization step must be performed after each Reset. After microcontroller reset, the boot- loader waits for an autobaud sequence (see Section “Autobaud Performances”). When the communication is initialized the protocol depends on the record type issued by ...

Page 9

Frequency (MHz) Baudrate (kHz) 38400 57600 115200 Command Data Stream Protocol 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 ...

Page 10

Programming the The flow described below shows how to program data in the Flash memory or in the EEPROM Flash or EEPROM data data memory. The bootloader programs on a page of 128 bytes basis when it is possible. The ...

Page 11

Read the Flash or The flow described below allows the user to read data in the Flash memory or in the EEPROM EEPROM Data data memory. A blank check command is possible with this flow. The device splits into blocks ...

Page 12

Example Flow Description: Read Command Host Send Display Command 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 ...

Page 13

Example Program The flow described below allows the user to program Configuration Information regarding the Configuration bootloader functionality. Information The Boot Process Configuration: BSB SBV Fuse bits (BLJB and X2 bits) (see Section “Mapping and Default Value of Hardware Security ...

Page 14

... 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 F5 BOOTLOADER Writing Frame (write BSB to 55h 0000 HOST BOOTLOADER : 03 0000 ...

Page 15

Read Configuration The flow described below allows the user to read the configuration or manufacturer information. Information or Manufacturer Information Requests from Host Command Name Read Manufacturer Code Read Family Code Read Product Name Read Product Revision Read HSB (Fuse ...

Page 16

... CR & LF ’L’ & CR & LF ’value’ & ’.’ & CR & LF Read function (read SBV 0000 HOST BOOTLOADER : 02 0000 Value . CR LF Atmel Read function (read Bootloader version) HOST : 02 0000 BOOTLOADER : 02 0000 Value . CR LF Bootloader Wait Read Command Checksum error ...

Page 17

BFFFh) • block4 (From C000h to FFFFh) Requests from Host Command Name Erase block0 (0k to 8k) Erase block1 (8k to 16k) Erase block2 (16k to 32k) Erase block3 ...

Page 18

Example AT89C51CC03 UART Bootloader 18 Full Chip Erase HOST : 01 0000 0000 BOOTLOADER Erase Block1(8k to 16k) HOST : 02 0000 0000 ...

Page 19

Start the Application The flow described below allows to start the application directly from the bootloader upon a spe- cific command reception. Two options are possible: • Start the application with a reset pulse generation (using watchdog). When the device ...

Page 20

... 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 software package: C Flash Drivers for the AT89C51CC03UA The Flash_api routines on the package work only with the UART bootloader. ...

Page 21

API Commands Several types of APIs are available: • Read/Program Flash and EEPROM Data memory • Read Configuration and Manufacturer Information • Program Configuration Information • Erase Flash • Start bootloader Read/Program Flash All routines to access EEPROM Data are ...

Page 22

Instruction: LCALL FFF0h. • At the complete API execution by the bootloader, the value to read is in the api_value variable. Note: Program • Parameter settings Configuration Information • instruction: LCALL FFF0h. Note: AT89C51CC03 UART Bootloader 22 API_name ...

Page 23

Erase Flash The AT89C51CC03 flash memory is divided in several blocks: Block 0: from address 0000h to 1FFFh Block 1: from address 2000h to 3FFFh Block 2: from address 4000h to 7FFFh These three blocks contain 128 pages. • Parameter ...

Page 24

APPENDIX-A Table 3. Summary of Frames from Host Command Program Nb Data Byte in Flash. Erase block0 (0000h-1FFFh) Erase block1 (2000h-3FFFh) Erase block2 (4000h-7FFFh) Erase block3 (8000h-BFFFh) Erase block4 (C000h-FFFFh) Start application with a reset pulse generation Start application with ...

Page 25

APPENDIX-B Table 4. API Summary Function Name __api_rd_code_byte __api_wr_code_byte __api_wr_code_page __api_erase_block0 __api_erase_block1 __api_erase_block2 __api_erase_block3 __api_erase_block4 __api_rd_HSB __api_set_X2 __api_clr_X2 __api_set_BLJB __api_clr_BLJB __api_rd_BSB __api_wr_BSB __api_rd_SBV __api_wr_SBV __api_erase_SBV __api_rd_SSB __api_wr_SSB_level0 __api_wr_SSB_level1 __api_wr_SSB_level2 __api_rd_EB __api_wr_EB __api_rd_manufacturer __api_rd_device_id1 __api_rd_device_id2 __api_rd_device_id3 __api_rd_bootloader_version __api_eeprom_busy 4266C–CAN–03/08 AT89C51CC03 UART ...

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

... Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI- TIONS OF SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ...

Related keywords