Migration From AT89C51SND1C to AT83C51SDN1C. Application Note. MP3 Microcontrollers

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

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

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

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

AT89C5131 Starter Kit... Software User Guide

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

Section 1 ATAVRAUTOEK1 Getting Started

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

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

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

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

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

AT17(A) Series FPGA Configuration Memory. Application Note

AT89C51CC03 UART Bootloader

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

AT89C51SND1 UART Bootloader

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

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

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

T89C5115 UART Bootloader

ATAVRAUTO User Guide

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

T89C51AC2 UART Bootloader

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

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

AVR32 UC3 Software Framework... User Manual

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

CAN, 80C51, AVR, Microcontroller. Application Note

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

80C51 MCUs T89C51AC2. Errata Sheet

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

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

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

Interfacing the internal serial EEPROM

ATAVRAUTO User Guide

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

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

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

T89C51CC01 CAN Bootloader

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

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

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)

T89C51CC02 CAN Bootloader

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

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

AT89STK-10 Starter Kit... Hardware User Guide

3-Wire Serial EEPROM AT93C46C

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

2-wire Serial EEPROM Smart Card Modules AT24C32SC AT24C64SC

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

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.

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

CryptoRF EEPROM Memory 8 Kbits

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

GemCore Serial Lite PRO AT83C21GC. Summary

Bluetooth General Information White Paper

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

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

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

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

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

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

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

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

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

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

ARM7TDMI - based Microcontroller AT91RM3400. Errata Sheet

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

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

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

AT85DVK-07 Demonstration Firmware... User s Manual

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

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

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

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

Preparations. Creating a New Project

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

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

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

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

UART. Embedded RISC Microcontroller Core Peripheral

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

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

2-wire Serial EEPROM AT24C01A AT24C02 AT24C04 AT24C08 AT24C16

When is Data Susceptible to Corruption

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

1-megabit (128K x 8) Single 2.7-volt. Flash Memory AT49BV001A AT49BV001AN AT49BV001AT AT49BV001ANT. Battery-Voltage. Features.

CryptoMemory 256 Kbit AT88SC25616C. Summary

Two-Wire Serial EEPROM AT24C164 (1)

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

AT17LV(A) Series FPGA Configuration Memory. Application Note. Programming Specification for AT17LV(A) Series FPGA Configuration Memories

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

Atmel FPGA Integrated Development System (IDS)

AT89C5131A Starter Kit... Hardware User Guide

Interrupt Controlled UART

2-wire Serial EEPROMs AT24C128 AT24C256

Transcription:

Migration From AT89C51SND1C to AT83C51SDN1C This application note details the differences between AT89C51SND1C and AT83C51SDN1C products, and gives some tips and tricks to the user when migrating from Flash to ROM product from a hardware and firmware point of view. MP3 Microcontrollers Application Note Rev. 1

Memory Architecture AT83C51SDN1C Memory Architecture The AT83C51SND1C product provides the internal program/code memory in ROM memory while the AT89C51SND1C product provides it in Flash memory. Figure 1. ROM Memory Architecture FFFFh 64K Bytes ROM Memory User 0000h As shown in Figure 1 the AT83C51SDN1C ROM memory is composed of only one user space detailed as follows. User Space This space is composed of a 64K Bytes ROM memory programmed during the manufacturing process. It contains the user s application code. AT89C51SND1C Memory Architecture Figure 2. Flash Memory Architecture FFFFh Hardware Security Extra Row FFFFh F000h 4K Bytes Flash Memory Boot 64K Bytes Flash Memory User 0000h As shown in Figure 2 the AT89C51SND1C Flash memory is composed of four spaces detailed as follows. User Space This space is composed of a 64K Bytes Flash memory organized in 512 pages of 128 Bytes. It contains the user s application code. This space can be read or written by both software and hardware modes. Boot Space This space is composed of a 4K Bytes Flash memory. It contains the bootloader for In- System Programming and the routines for In Application Programming. This space can only be read or written by hardware mode using a parallel programming tool. Hardware Security Space This space is composed of one Byte: the Hardware Security Byte (HSB) divided in 2 separate nibbles. The MSN contains the X2 mode configuration bit and the Bootloader 2 AT8xC51SND1C Application Note

AT8xC51SND1C Application Note Jump and can be written by software while the LSN contains the lock system level to protect the memory content against piracy and can only be written by hardware. Extra Row Space User Constraints No Boot Space or Extra Row Space Hardware Security Space This space is composed of 2 Bytes: The Software Boot Vector (SBV). This Byte is used by the software bootloader to build the boot address. The Software Security Byte (SSB). This Byte is used to lock the execution of some bootloader commands. Due to its ROM technology, the AT83C51SND1C product does not allow In-System and In-Application Programming and therefore, does not implement any boot space, hardware security space and extra row space. Attempting to enable the boot memory through software or hardware boot condition will result in no effect. Then, jumping to the boot entry address (F000h) will jump in internal user ROM. Software boot condition ENBOOT bit in AUXR1 register (see Table 1) is not implemented in AT83C51SDN1C product. Note: User must take care not to write to ENBOOT bit. ISP pin (see Figure 3) is not implemented in AT83C51SDN1C product. Note: User must take care to leave this pin unconnected. Since the HSB register (see Table 3) is not implemented, the AT83C51SND1C product does not provide any programmable hardware security system. Internal ROM content is always secured because there is no way to read it externally. Moreover the AT83C51SND1C product does not implement X2B bit in HSB disallowing to start automatically in X2 mode. Note: User must take care to always set the X2 bit in CKCON register by firmware in the application start-up routine if needed. Version Register The AT83C51SND1C product NVERS register (see Table 2) is set to 0XXX XXXXb (ROM product) while it is set to 1XXX XXXXb in the AT89C51SND1C product. Note: User must take care of NVERS register usage in its code to avoid any infinite loop that may have been implemented to secure firmware from old product versions usage. 3

Pinout Figure 3. AT8xC51SND1C 80-pin QFP Package P0.3/AD3 P0.4/AD4 P0.5/AD5 P0.6/AD6 P0.7/AD7 P2.0/A8 P2.1/A9 1 2 3 4 5 6 7 8 P4.5 P4.4 P2.2/A10 P2.3/A11 P2.4/A12 P2.5/A13 P2.6/A14 P2.7/A15 9 10 11 12 13 14 15 16 17 18 19 20 AT89C51SND1C-RO (Flash) AT83C51SDN1C-RO (ROM) MCLK MDAT MCMD RST SCLK DSEL DCLK DOUT P3.0/RXD P3.1/TXD P3.2/INT0 P3.3/INT1 P3.4/T0 P0.0/AD0 P0.1/AD1 P0.2/AD2 P1.6/SCL P1.7/SDA P FILT P X2 X1 TST U U P3.5/T1 P3.6/WR P3.7/RD A A AREFP AREFN AIN0 AIN1 P4.3/SS P4.2/SCK P4.1/MOSI P4.0/MISO ALE ISP/NC (1) P1.0/KIN0 P1.1/KIN1 P1.2/KIN2 P1.3/KIN3 P1.4 P1.5 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 D+ D- P5.2 P5.3 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 P5.1 P5.0 P4.7 P4.6 Note: 1. ISP for AT89C51SND1C, NC for AT83C51SDN1C. Do not connect this pin when using AT83C51SDN1C. 4 AT8xC51SND1C Application Note

AT8xC51SND1C Application Note Registers Table 1. AUXR1 Register AUXR1 (S:A2h) Auxiliary Register 1 7 6 5 4 3 2 1 0 - - ENBOOT - GF3 0 - DPS Number Mnemonic Description 7-6 - The value read from these bits are indeterminate. Do not set these bits. 5 ENBOOT (1) Set this bit to map the boot Flash in the code space between at addresses F000h to FFFFh. Enable Boot Flash Clear this bit to disable boot Flash. 4-3 GF3 2 0 The value read from this bit is indeterminate. Do not set this bit. General Flag This bit is a general-purpose user flag. Always Zero This bit is stuck to logic 0 to allow INC AUXR1 instruction without affecting GF3 flag. 1 - for Data Pointer Extension. 0 DPS Data Pointer Select Set to select second data pointer: DPTR1. Clear to select first data pointer: DPTR0. Reset Value = XXXX 00X0b Note: 1. This bit is not implemented in AT83C51SDN1C product. Do not set this bit. Table 2. NVERS Register (Read Only) NVERS (S:FBh) Version Register 7 6 5 4 3 2 1 0 V7 V6 V5 V4 V3 V2 V1 V0 Number Mnemonic Description 7-0 V0:7 Value of these bits depends on hardware version. Reset Value = 0XXX XXXXb (AT83C51SDN1C) or 1XXX XXXXb (AT89C51SND1C) 5

Table 3. HSB Byte Hardware Security Byte 7 6 5 4 3 2 1 0 X2B BLJB - - - LB2 LB1 LB0 Number Mnemonic Description 7 X2B (1) Program this bit to start in X2 mode. X2 Unprogram (erase) this bit to start in standard mode. 6 BLJB 5-4 - 3 2-0 LB2:0 Bootloader Jump Program this bit to execute the bootloader at address F000h on next reset. Unprogram (erase) this bit to execute user s application at address 0000h on next reset. The value read from these bits is always unprogrammed. Do not program these bits. The value read from this bit is always unprogrammed. Do not program this bit. Hardware Lock s Refer to for bits description. Reset Value = XXUU UXXX, UUUU UUUU after an hardware full chip erase. Notes: 1. On AT89C51SND1C X2B initializes the X2 bit in CKCON during the reset phase. 2. s 0 to 3 (MSN) can only be programmed by hardware mode. 6 AT8xC51SND1C Application Note

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. No 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. Atmel Corporation 2003. All rights reserved. Atmel, the Atmel logo, and combinations 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. /xm