80C51 MCUs T89C51AC2. Errata Sheet

Similar documents
T89C51CC01 T89C51CC01UA T89C51CC01CA. Errata Sheet. CAN Microcontrollers

Application Note Microcontrollers. C Flash Drivers for T89C51RC/RB/IC2 and AT89C51RC/RB/IC2 for Keil Compilers

8-bit RISC Microcontroller. Application Note. AVR 305: Half Duplex Compact Software UART

AT89C5131 Starter Kit... Software User Guide

TSC695. Application Note. Annulled Cycle Management on the TSC695. References

8-bit Microcontroller. Application Note. AVR031: Getting Started with ImageCraft C for AVR

AT17 Series FPGA. Configuration Memory. Application Note. In-System Programming Circuits for AT17 Series Configurators with Atmel and Xilinx FPGAs

Application Note. Microcontrollers. Using Keil FlashMon Emulator with AT89C51CC01/03 AT89C51CC01/ Summary. 2. Background overview

8051 Microcontrollers. Application Note. Migration from AT89C5131 & AT89C5131A-L to AT89C5131A-M

Migration From AT89C51SND1C to AT83C51SDN1C. Application Note. MP3 Microcontrollers

CAN Microcontrollers. Application Note. Migrating from T89C51CC01 to AT89C51CC03. Feature Comparison

AT89C51CC03 UART Bootloader

FPGA Configuration EEPROM Memory. Application Note. Programming Atmel s EEPROMs: AT17LV020(A) vs. AT17LV002(A) Introduction.

8-bit Microcontroller. Application Note. AVR030: Getting Started with C for AVR

T89C51AC2 UART Bootloader

MP3 Player Reference Design Based on AT89C51SND1 Microcontroller... User Guide

MARC4. Application Note. Hints and Tips for Hard- and Software Developments with MARC4 Microcontrollers

AT89C51SND1 UART Bootloader

T89C5115 UART Bootloader

Section 1 ATAVRAUTOEK1 Getting Started

AT17(A) Series FPGA Configuration Memory. Application Note

FPGA Configurator Programming Kit (Enhanced) ATDH2200E. Features. Description

CAN, 80C51, AVR, Microcontroller. Application Note

AT91 ARM Thumb Microcontrollers. Application Note. AT91M55800A Clock Switching Considerations using Advanced Power Management Controller.

Rad Hard FPGA. AT40KEL-DK Design Kit Content. Description. Kit Content. Reference Material. Support

AT91 ARM Thumb Microcontrollers. Application Note. AT91 Host Flash Loader. 1. Package Contents. 2. Definition of Terms. 3.

8-bit Microcontroller. Application Note. AVR320: Software SPI Master

AT94K Series Field Programmable System Level Integrated Circuit. Application Note. FPSLIC Baud Rate Generator

AT89ISP Programmer Cable Introduction AT89ISP Programmer Cable Parallel Port Settings Application Note AT89ISP Software AT89ISP Cable polarized

ATAVRAUTO User Guide

AVR32 UC3 Software Framework... User Manual

8-bit Microcontroller. Application Note. AVR201: Using the AVR Hardware Multiplier

AT17F Series. Application Note. Programming Circuits for AT17F Series Configurators with Xilinx FPGAs. 1. Introduction

Interfacing the internal serial EEPROM

T89C51CC01 CAN Bootloader

System Designer. Programmable SLI AT94K/AT94S Series. Features. Description

System Designer. Programmable SLI AT94K/AT94S Series. Features. Description

AT89STK-09 Starter Kit for AT83C26... User Guide

Two-wire Serial EEPROM Smart Card Modules 128K (16,384 x 8) 256 (32,768 x 8) AT24C128SC AT24C256SC. Features. Description VCC NC

ATAVRAUTO User Guide

Programmable SLI AT40K AT40KAL AT94K. Application Note. Implementing a Single-coefficient Multiplier

hex file. The example described in this application note is written for the AT94K using the FPSLIC Starter Kit. Creating a New Project

T89C51CC02 CAN Bootloader

8-bit Microcontroller. Application Note. AVR033: Getting Started with the CodeVisionAVR C Compiler

Two-wire Serial EEPROM Smart Card Modules 1K (128 x 8) 2K (256 x 8) 4K (512 x 8) 8K (1024 x 8) 16K (2048 x 8)

DatasheetDirect.com. Visit to get your free datasheets. This datasheet has been downloaded by

ARM7TDMI - based Microcontroller AT91RM3400. Errata Sheet

8-bit RISC Microcontroller. Application Note. AVR151: Setup And Use of The SPI

2-wire Serial EEPROM Smart Card Modules AT24C32SC AT24C64SC

256 (32K x 8) High-speed Parallel EEPROM AT28HC256N. Features. Description. Pin Configurations

Trusted Platform Module AT97SC3203S. SMBus Two-Wire Interface. Summary

3-Wire Serial EEPROM AT93C46C

UART. Embedded RISC Microcontroller Core Peripheral

CryptoRF EEPROM Memory 8 Kbits

8-bit Microcontroller. Application Note. AVR033: Getting Started with the CodeVisionAVR C Compiler

Interrupt Controlled UART

SAM Boot Assistant (SAM-BA)... User Guide

AVR501: Replacing ATtiny15 with ATtiny25. 8-bit Microcontrollers. Application Note PRELIMINARY. Features. 1 Introduction

2-Wire Serial EEPROM AT24C01. Features. Description. Pin Configurations. 1K (128 x 8)

2-wire Serial EEPROM AT24C21. 2-Wire, 1K Serial EEPROM. Features. Description. Not Recommended for New Designs. Pin Configurations.

1-megabit (64K x 16) 3-volt Only Flash Memory AT49LV1024 AT49LV1025

8051 Microcontrollers. Application Note. Migration from T89C51RD2 to AT89C51RD2/ED2. Feature Comparison

1-megabit (64K x 16) 3-volt Only Flash Memory AT49BV1024A AT49LV1024A

AT89STK-10 Starter Kit... Hardware User Guide

Bluetooth General Information White Paper

When is Data Susceptible to Corruption

Preparations. Creating a New Project

AT89C5122. Application Note. Preventing Windows XP from Displaying Unknown device Message at Startup

1-megabit (64K x 16) 5-volt Only Flash Memory AT49F1024 AT49F1025

64K (8K x 8) Parallel EEPROM with Page Write and Software Data Protection AT28C64B. Features. Description. Pin Configurations

32-bit Secure. AT91SC CT-USB Summary. Microcontrollers. Features

8-bit Microcontroller. Application Note. AVR032: Linker Command Files for the IAR ICCA90 Compiler

8-bit Microcontroller. Application Note. AVR410: RC5 IR Remote Control Receiver

256K (32K x 8) 5-volt Only Flash Memory AT29C256

Flash Microcontrollers. Application Note. Migrating from AT89C2051/C4051 to AT89LP2052/LP4052

DIP Top View VCC A12 A14 A13 A6 A5 A4 A3 A2 A1 A0 A8 A9 A11 A10 I/O7 I/O6 I/O0 I/O1 I/O2 I/O5 I/O4 I/O3 GND. TSOP Top View Type 1 A11 A9 A8 A13 A14

256K (32K x 8) 5-volt Only Flash Memory AT29C256

512K (64K x 8) 5-volt Only Flash Memory AT29C512

AT89C51CC03 UART Bootloader

DIP Top View A18 A16 A15 A12 A7 A6 A5 A4 A3 A2 A1 A0 I/O0 I/O1 I/O2 GND VCC A17 A14 A13 A8 A9 A11 A10 I/O7 I/O6 I/O5 I/O4 I/O3 VCC A18 A17

1-megabit (128K x 8) 5-volt Only Flash Memory AT29C010A

4-megabit (512K x 8) 5-volt Only 256-byte Sector Flash Memory AT29C040A

2-megabit (256K x 8) 3-volt Only Flash Memory AT29LV020

2-megabit (256K x 8) 5-volt Only Flash Memory AT29C020

CryptoMemory 64 Kbit AT88SC6416C. Summary. Features. Table 1. Pin Configuration

4-megabit (512K x 8) 3-volt Only 256-byte Sector Flash Memory AT29LV040A

Secure Microcontrollers for Smart Cards. AT90SC Summary

64K (8K x 8) High Speed Parallel EEPROM with Page Write and Software Data Protection AT28HC64BF

a Serial Peripheral Interace (SPI). Embedded RISC Microcontroller Core Peripheral

AT85DVK-07 Demonstration Firmware... User s Manual

2-wire Serial EEPROM AT24C1024. Features. Description. Pin Configurations. 1M (131,072 x 8)

Battery-Voltage. 4-megabit (512K x 8/ 256K x 16) Single 2.7-volt. Flash Memory AT49BV4096A AT49LV4096A

Two-Wire Serial EEPROM AT24C164 (1)

1-megabit (128K x 8) 5-volt Only Flash Memory AT49F001A AT49F001AN AT49F001AT AT49F001ANT. Features. Description. Pin Configurations

CryptoMemory 256 Kbit AT88SC25616C. Summary

Programming Flash Devices

2-wire Serial EEPROM AT24C01A AT24C02 AT24C04 AT24C08 AT24C16

4-megabit (512K x 8) Single 2.7-volt Battery-Voltage Flash Memory AT49BV040 AT49LV040

Product Description. Application Note. AVR360: XmodemCRC Receive Utility for the AVR. Features. Theory of Operation. Introduction

4-megabit (512K x 8) Single 2.7-volt Battery-Voltage Flash Memory AT49BV040A

Transcription:

Active T89C51AC2 Errata List Flash/EEPROM First Read After Write Disturbed Timer 2 Baud Rate Generator IT When TF2 is Set by Software Timer 2 Baud Rate Generator Long Start Time UART RB8 Lost with JBC on SCON Register ADC Interrupt Controller/ADC Idle Mode/Loops In High Priority Interrupt Flash/EEPROM First Read After Load Disturbed C51 Core Bad Exit of Power-down in X2 Mode Timer0/1 Extra interrupt EEPROM Lock-up during ISP write. T89C51AC2 Errata History Lot Number Errata List A00151 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 80C51 MCUs T89C51AC2 A00369 1, 3, 4, 5, 6, 7, 8, 9,10, 11, 12, 13 A00367, A00368, A00396 to A00529 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13 A00510, all lots from A00588 1, 6, 7, 8, 9, 10, 11, 12, 13 Errata Sheet T89C51AC2 Errata Description 1. Flash/EEPROM First Read After Write Disturbed After a write of more than 32 bytes in the EEPROM and 16 bytes in the User Flash memory, the read of the first byte may be disturbed if it occurs just after the write. Do not load/write more than 32 bytes at a time for EEPROM memory. Do not load/write more than 16 bytes at a time for User Flash memory, OR perform a dummy read before reading the first byte, OR wait 10 ms before reading the first byte. 2. Buffer ise Large bounces and high noise are generated when buffers are switching (both rising and falling edges). ne. 3. Double IT on External Falling Edge on INT1 or INT0 in X2 Mode When the CPU is in X2 mode and Timer1 or Timer 0 in X1 mode (CKCON = 0x7F), IEx flag is not cleared by hardware after servicing interrupt. In this case, the CPU executes the ISR a second time. The workaround is to clear IEx bit in Interrupt subroutine. INT1_ISR : ; Interrupt sub routine CLR IE1... Rev. 1

4. Movc Instruction on Boot Memory from Boot Memory Does t Work Movc instruction is performed when a program running on the boot memory tries to read its own code by the Movc instruction. ne. 5. Power OFF Flag Power ON Flag does not work. ne. 6. Timer 2 Baud Rate Generator IT When TF2 is Set by Software When Timer 2 is used in baud rate generator mode, setting TF2 by software does not generate an interrupt. Use Timer 1 instead of Timer 2 to generate baud rate and interrupt. 7. Timer 2 Baud Rate Generator Long Start Time When Timer 2 is used as baud rate generator, TH2 is not loaded with RCAP2H at the beginning, then UART is not operational before 10000 machine cycles. Add the initialization of TH2 and TL2 in the initialization of Timer 2. 8. UART RB8 Lost With JBC on SCON Register May lose RB8 value, if RB8 changes from 1 to 0 during JBC instruction on SCON register. Clear RB8 at the beginning of the code and after each time it goes to 1. 9. ADC Interrupt Controller/ADC Idle Mode/Loops In High Priority Interrupt The problem occurs during an A/D conversion in idle mode if a hardware interrupt occurs followed by a second interrupt with higher priority before the end of the A/D conversion. If the above configuration occurs, the highest priority interrupt is served immediately after the A/D conversion. At the end of the highest priority interrupt service, the processor will not serve the hardware reset interrupt pending. It will also not serve any new interrupt requests with a priority lower than the high level priority last served. Disable all interrupts (Interrupt Global Enable Bit) before starting an A/D conversion in idle mode, then re-enable all interrupts immediately after. 10. Flash/EEPROM First Read After Load Disturbed This Read After Load problem does not occur with Atmel Bootloader (workaround 2 is lmplemented). In the "In-Application Programming" mode from the Flash, if the user software application loads the Column Latch Area prior to call the programming sequence in the Bootloader, the "Read after load" issue leads to a wrong Opcode Fetch during the column latch load sequence. Two workarounds are possible: 2

A NOP instruction has to be inserted after the load instruction in the application. MOVX @DPTR,A ;Load Column latches NOP ; ADDED INSTRUCTION Load of the column latch in the bootloader area. 11. C51 Core Bad Exit of Power-down in X2 Mode When exiting power-down mode by interrupt while CPU is in X2 mode, it leads to bad execution of the first instruction run when CPU restarts. Set the CPU in X1 mode directly before entering power-down mode. 12. Timer0/1 Extra interrupt. When the Timer0 is in X1 mode and Timer1 in X2 mode and vice versa, extra interrupt may randomly occurred for Timer0 or Timer1. Use the same mode for the two timers. 13. EEPROM Lock-up during ISP write. Program lock-up can be experienced when using Atmel FLIP software or a custom In system Programming tools to write in the internal EEPROM. This problem occurs with clock frequency > 12MHz in X2 mode or 24MHz in X1 mode. Neither the code Flash nor the EEPROM are corrupted by the lock-up. Although the EEPROM cannot be written by the bootloader. This problem does not affect the capability to erase, read and write into the code Flash and the additional bytes with In- System Programming as Atmel FLIP. This problem is bootloader related and doesn t affect the capability for the user to read and write into the EEPROM. This problem is technology dependant. The likelihood of experiencing the problem is low at Clock frequency > 24 MHz in X1 mode and null below. A reset can be applied to recover from the lock-up. The following process can be done to work around the problem. 3

Start the bootloader - With hardware condition Download a Init EEPROM program in flash memory Start this init EEPROM program - With "start application" command Re-Start the bootloader - With hardware condition Download a Final program in flash memory - With "start application" command C Init EEPROM program example: #define SIZE_EEPROM 12 unsigned char code tab_eep[size_eeprom]={0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88,0x99,0xaa}; void main (void) { unsigned char xdata * address; unsigned char cpt; address =0x00; for (cpt=0; cpt<size_eeprom; cpt++) { EECON = 0x02; // enable eeprom access *(address + cpt) = tab_eep[cpt]; EECON = 0x50; EECON = 0xA0; while (EECON&0x01); } } Assembler Init EEPROM program example: SIZE_EEPROM EQU 00Ah CSEG AT 0000H 4

Mov R1, #SIZE_EEPROM Mov DPTR, #0h Load_eeprom: MovEECON, #02h ; set bit EEE for access to the column latches MovA, #Tab_eep Movc A, @A + DPTR Movx @DPTR, A Mov EECON, #050h Mov EECON, #0A0h WAIT_FBUSY: Mov A, EECON AnlA, #001h Xrl A, #001h JzWAIT_FBUSY Inc DPTR Djnz R1, Load_eeprom End_loop: jmp End_loop Tab_eep: DB 012h, 023h, 045h, 067h, 089h, 0ABh, 0CDh, 0EFh 5

Active UART Bootloader Errata List Timer 2 and UART Are t Stopped Watchdog and Flash API Starting the Bootloader Execution Autobaud False Start Bit Detection Flash API api_wr_code_page with 0 Data in Length Parameter Field UART Bootloader Errata History Version Number Errata List 1.2 (1.1.2 displayed by FLIP) 1, 2, 3, 4 1.4 1, 2, 3, 5 UART Bootloader Errata Description 1. Timer 2 and UART Are t Stopped When the bootloader receives the command Start Application (LJMP 0), the Timer 2 and the UART are not stopped. The application must have in its setup function a reset of Timer 2 and UART. mov SCON, #00h mov T2CON, #00h mov RCAP2L, #00h mov RCAP2H, #00h mov TL2, #00h mov TH2, #00h 2. Watchdog and Flash API Starting the Bootloader Execution When an application call api_start_bootloader or api_start_isp routines while the watchdog is enabled, when the watchdog overflow it will restart the application instead of the bootloader Set BLJB(=1) before calling the api_start_bootloader or api_start_isp if the watchdog is used. 3. Autobaud False Start Bit Detection UART autobaud sequence does not work on some special UARTs. Some laptops have the UART TX line set to 0 when unused (COM port closed), this results in a false baud rate calculation on the U character. The autobaud sequence checks for a 0 state (not a falling edge) on the Rx line of the UART microcontroller to detect the start bit of the U synchro character. As this line is 0 by default when COM port is closed, the autobaud routine starts its baudrate calculation at the opening sequence of the UART. 6

A Special Sync can be used with FLIP software. In this case, the open port event and the U sent are dissociated. The user must first open his COM port with the connect button, then reset its hardware and finally push the sync button. 4. Boot Process Compatibility There are some differences between Boot process of bootloader 1.2 and newer versions. Version 1.2: RESET BLJB = 1 BLJB = 0 BLJB Hardware Process FCON = F0h Software Process BSB = 00h SBV = FCh Application User Bootloader Atmel bootloader Version 1.4: RESET BLJB = 1 BLJB = 0 BLJB Hardware Process Software Process FCON = F0h SBV < FCh Application User Bootloader Atmel bootloader Use the fuse bit BLJB to start the application on both versions. 7

5. Flash API api_wr_code_page with 0 Data in Length Parameter Field When the Flash API api_wr_code_page is called with the field nb_data equal 0 then 255 data is written in Flash. Include a test on nb_data before executed api_wr_code_page routine. 8

Atmel Headquarters Corporate Headquarters 2325 Orchard Parkway San Jose, CA 95131 TEL 1(408) 441-0311 FAX 1(408) 487-2600 Europe Atmel Sarl Route des Arsenaux 41 Case Postale 80 CH-1705 Fribourg Switzerland TEL (41) 26-426-5555 FAX (41) 26-426-5500 Asia Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimhatsui East Kowloon Hong Kong TEL (852) 2721-9778 FAX (852) 2722-1369 Japan 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan TEL (81) 3-3523-3551 FAX (81) 3-3523-7581 Atmel Operations Memory 2325 Orchard Parkway San Jose, CA 95131 TEL 1(408) 441-0311 FAX 1(408) 436-4314 Microcontrollers 2325 Orchard Parkway San Jose, CA 95131 TEL 1(408) 441-0311 FAX 1(408) 436-4314 La Chantrerie BP 70602 44306 Nantes Cedex 3, France TEL (33) 2-40-18-18-18 FAX (33) 2-40-18-19-60 ASIC/ASSP/Smart Cards Zone Industrielle 13106 Rousset Cedex, France TEL (33) 4-42-53-60-00 FAX (33) 4-42-53-60-01 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906 TEL 1(719) 576-3300 FAX 1(719) 540-1759 Scottish Enterprise Technology Park Maxwell Building East Kilbride G75 0QR, Scotland TEL (44) 1355-803-000 FAX (44) 1355-242-743 RF/Automotive Theresienstrasse 2 Postfach 3535 74025 Heilbronn, Germany TEL (49) 71-31-67-0 FAX (49) 71-31-67-2340 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906 TEL 1(719) 576-3300 FAX 1(719) 540-1759 Biometrics/Imaging/Hi-Rel MPU/ High Speed Converters/RF Datacom Avenue de Rochepleine BP 123 38521 Saint-Egreve Cedex, France TEL (33) 4-76-58-30-00 FAX (33) 4-76-58-34-80 e-mail literature@atmel.com Web Site http://www.atmel.com Atmel Corporation 2003. Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Company s standard warranty which is detailed in Atmel s Terms and Conditions located on the Company s web site. The Company assumes no responsibility for any errors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time without notice, and does not make any commitment to update the information contained herein. licenses to patents or other intellectual property of Atmel are granted by the Company in connection with the sale of Atmel products, expressly or by implication. Atmel s products are not authorized for use as critical components in life support devices or systems. All rights reserved. Atmel, the Atmel logo, andcombinations thereof are registered trademarks of Atmel Corporation or its subsidiaries. Other terms and product names in this document may be the trademarks of others. Printed on recycled paper. 0M