Atmel AVR32847: Migration from/to the UC3L0 64/32/16 from/to the UC3L0 256/ bit Atmel Microcontrollers. Application Note.

Similar documents
APPLICATION NOTE. Atmel AT03160: Migrating Bootloader from ATxmega128A1 to other Atmel XMEGA Devices. Atmel AVR XMEGA. Features.

APPLICATION NOTE. AT03324: Atmel REB212BSMA-EK Quick Start Guide. Atmel MCU Wireless. Introduction

APPLICATION NOTE. Atmel AVR1638: XMEGA RTC Calibration. 8-bit Atmel Microcontrollers. Features. Introduction

Atmel AVR1619: XMEGA-B1 Xplained Demonstration. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

AVR1518: XMEGA-A1 Xplained Training - XMEGA Clock System. 8-bit Atmel Microcontrollers. Application Note. Prerequisites.

APPLICATION NOTE. Atmel AT03304: SAM D20 I 2 C Slave Bootloader SAM D20. Description. Features

Hardware Prerequisites Atmel Xplained Pro Evaluation Kit Atmel WINC1500 extension USB Micro Cable (TypeA / MicroB)

APPLICATION NOTE. Atmel AT01080: XMEGA E Schematic Checklist. Atmel AVR XMEGA E. Features. Introduction

Atmel QT600 Quick Start Guide Touch Solutions

OLED display with pixels resolution Ambient light sensor CPU load Analog filter Quadrature Encoder with push button Digital I/O

STK521. User Guide B AVR 01/12

APPLICATION NOTE. Atmel AT02260: Driving AT42QT1085. Atmel QTouch. Features. Description

Atmel AVR1926: XMEGA-B1 Xplained Getting Started Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

APPLICATION NOTE. Atmel AVR536: Migration from ATmega644 to ATmega644A. 8-bit Atmel Microcontrollers. Introduction

APPLICATION NOTE. Atmel AVR3009: Driving QTouch Device with I 2 C Interface. Atmel QTouch. Introduction

APPLICATION NOTE. Atmel AVR2131: Lightweight Mesh Getting Started Guide. Atmel MCU Wireless. Features. Description

AVR32917: picopower Board getting started. 32-bit Microcontrollers. Application Note. Preliminary. Features. 1 Introduction

Atmel LF-RFID Kit Comparison Chart. Application Note. Atmel LF-RFID Kit Comparison Chart. 1. Description

Atmel AVR1924: XMEGA-A1 Xplained Hardware User's Guide. 8-bit Atmel Microcontrollers. Application Note. Preliminary. Features.

AVR4018: Inertial Two (ATAVRSBIN2) Hardware User's Guide. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Atmel AT697F. Rad-Hard 32-bit SPARC v8 Processor ERRATA SHEET. Active Errata List

USER GUIDE. Wireless Production Test Reference Protocol Specification Document. Atmel MCU Wireless. Description

AVR1503: Xplain training - XMEGA Programmable Multi Interrupt Controller 8-bit Microcontrollers Application Note Prerequisites

APPLICATION NOTE. Atmel AVR057: Internal RC Oscillator Calibration for ATtiny4/5/9/10/20/40. 8-bit Atmel Microcontrollers. Features.

Atmel ATMXT143E touchscreen controller Capacitive touch ITO 320 x 240 pixel LCD display with SPI interface LED backlight

APPLICATION NOTE. Atmel AVR116: Wear Leveling on DataFlash. 32-bit Atmel Microcontrollers. Features. Description. Wear leveling

Atmel AVR ATxmega384C3 microcontroller OLED display with 128x32 pixels resolution Analog sensors. Ambient light sensor Temperature sensor

APPLICATION NOTE. Atmel AT03782: Using Low Power Modes in SAM4N Microcontroller. Atmel 32-bit Microcontroller. Features.

Section 5 SERCOM. Tasks SPI. In this section you will learn:

32Kbytes on-chip SRAM. Viterbi decoding and CRC PRIME compliant 128-bit AES encryption Channel sensing and collision pre-detection

AVR1501: Xplain training XMEGA Timer/Counter 8-bit Microcontrollers Application Note Prerequisites 1 Introduction

AVR42789: Writing to Flash on the New tinyavr Platform Using Assembly

AVR1303: Use and configuration of IR communication module. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Atmel CryptoAuthentication Starter Kit

AVR1315: Accessing the XMEGA EEPROM. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1922: Xplain Board Controller Firmware 8-bit Microcontrollers Application Note Features 1 Introduction

Atmel AT697F. Rad-Hard 32-bit SPARC v8 Processor ERRATA SHEET. Active Errata List

Atmel AVR473: ATAVRSB202 Hardware User Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

OLED display Sensors readout. Light sensor Temperature sensor

AVR1512: XMEGA-A1 Xplained training - XMEGA Basics. 8-bit Atmel Microcontrollers. Application Note. Prerequisites. 1 Introduction

AVR32752: Using the AVR32 UC3 Static Memory Controller. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR532: Migration from ATmega48/88/168 to ATmega48A/88A/168A. 8-bit Microcontrollers. Application Note. 1 Introduction

Atmel AT32UC3A3256 microcontroller 64MBit SDRAM Analog input (to ADC) Temperature sensor RC filter

a clock signal and a bi-directional data signal (SCL, SDA)

AVR32901: EVKLCD100/EVKLCD101 Hardware User's Guide. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

Getting Started with the SAM4L-EK Demo

AVR1508: Xplain training - XMEGA DAC 8-bit Microcontrollers Application Note Features 1 Introduction

AVR32 UC3 Software Framework... User Manual

AVR097: Migration between ATmega128 and ATmega1281/ATmega bit Microcontrollers. Application Note. Features. 1 Introduction

AT03975: Getting Started with SAM L21. Descripton. Features. SMART ARM-Based Microcontroller APPLICATION NOTE

Atmel AVR ATxmega384C3 microcontroller OLED display with pixels resolution Analog sensors. Ambient light sensor Temperature sensor

AT697E. Application Note. Checking AT697E Code for Occurrence of LDF/FPOPd Instructions Sequence with a dependency on an Odd-Numbered Register

APPLICATION NOTE. AT11008: Migration from ATxmega16D4/32D4 Revision E to Revision I. Atmel AVR XMEGA. Introduction. Features

One-channel Toggle-mode Touch Sensor IC with Power Management Functions AT42QT1012. Summary

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

Native route discovery algorithm

AVR based 125kHz RFID Evaluation Kit (Re)Programming Guide ATA2270-EK1. Overview. Fuse Settings: ISP Programming

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

AVR32401: AVR32 AP7 Linux Interfacing DataFlash. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

8-bit Microcontroller with 16K Bytes In-System Programmable Flash. ATtiny87 ATtiny167 Automotive

USER GUIDE EDBG. Description

AT06467: Getting started with SAM D09/D10/D11. Features. Description. SMART ARM-based Microcontrollers APPLICATION NOTE

AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Features. Introduction. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR42772: Data Logger Demo Application on XMEGA A1U Xplained Pro. Introduction. Features. AVR XMEGA Microcontrollers APPLICATION NOTE

8-megabyte, 4-megabyte, and 2-megabyte 2.7-volt Only DataFlash Cards AT45DCB008D AT45DCB004D AT45DCB002D. Not Recommended for New Design

AT60142H/HT. Rad-Hard 512Kx8 Very Low Power CMOS SRAM ERRATA-SHEET. Active Errata List. Errata History. Abbreviations. 1.

AT03262: SAM D/R/L/C System Pin Multiplexer (SYSTEM PINMUX) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

EDBG. Description. Programmers and Debuggers USER GUIDE

CAN, 80C51, AVR, Microcontroller. Application Note

APPLICATION NOTE. AT06863: SAM4L Peripheral Event Controller (PEVC) SAM4L Peripheral Event Controller (PEVC) ASF PROGRAMMERS MANUAL

ATAES132A Firmware Development Library. Introduction. Features. Atmel CryptoAuthentication USER GUIDE

AT11512: SAM L Brown Out Detector (BOD) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

QTouch 8-key Touch Sensor IC AT42QT1085. Summary

32Kbytes on-chip SRAM Up to 256Kbytes external SRAM

Embedded AVR Microcontroller Including RF Transmitter and Immobilizer LF Functionality for Remote Keyless Entry ATA5795. Summary.

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

SAM4 Reset Controller (RSTC)

ATDH2200E Programming Kit... User Guide

ATECC108/ATSHA204 USER GUIDE. Atmel Firmware Library. Features. Introduction

AT09381: SAM D - Debugging Watchdog Timer Reset. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

Asynchronous SRAM Operating Voltage: 5V Read Access Time: 40 ns Write Cycle Time: 30 ns Very Low Power Consumption (Pre-RAD)

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

AT91 ARM Thumb Microcontrollers. Application Note. Using the ECC Controller on AT91SAM9260/9263 and AT91SAM7SE Microcontrollers. 1.

8-bit Microcontroller with 2K/4K/8K Bytes In-System Programmable Flash. Appendix A. Preliminary. ATtiny261 ATtiny461 ATtiny861 Automotive

APPLICATION NOTE. Atmel AT03261: SAM D20 System Interrupt Driver (SYSTEM INTERRUPT) SAM D20 System Interrupt Driver (SYSTEM INTERRUPT)

USER GUIDE. ZigBit USB Stick User Guide. Introduction

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

AT91 ARM Thumb-based Microcontroller. Application Note. AT91SAM7X and AT91SAM7XC Microcontroller Series Schematic Check List. 1.

Non Volatile Rad Hard Reprogrammable FPGA. ATF280 SRAM-based FPGA AT69170 Serial EEPROM. 2x SRAM-based FPGA designed for Space use - ATF280

High-performance Electrically Erasable Programmable Logic Device

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

Atmel AVR944: Atmel LED Driver Library for 8- bit AVR. 8-bit Atmel. Microcontroller. Application Note. Features. 1 Introduction

QT3 Xplained Pro. Preface. Atmel QTouch USER GUIDE

APPLICATION NOTE. AT6486: Using DIVAS on SAMC Microcontroller. SMART ARM-Based Microcontroller. Introduction. Features

USER GUIDE. Atmel QT1 Xplained Pro. Preface

AT10942: SAM Configurable Custom Logic (CCL) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

USER GUIDE. Atmel QT6 Xplained Pro. Preface

Ethernet1 Xplained Pro

APPLICATION NOTE. AT04470: Differences between SAM D21 Variants A, B, and L. 32-bit Microcontroller. Introduction

APPLICATION NOTE. Atmel QT4 Xplained Pro User Guide ATAN0114. Preface

Transcription:

Atmel AVR32847: Migration from/to the UC3L0 64/32/16 from/to the UC3L0 256/128 Features Features comparison Porting considerations and tools Pinout comparison 1 Introduction This application note is a guide to assist Atmel AT32UC3L0 64/32/16 devices users in converting existing designs to the Atmel AT32UC3L0 256/128 devices and vice versa. For detailed information on these products; please refer to the datasheets available on the Atmel website. 32-bit Atmel Microcontrollers Application Note Rev.

2 Features comparison Atmel AT32UC3L0 64/32/16 and AT32UC3L0 256/128 share the same features set, except for a few features that the AT32UC3L0 256/128 extends. Table 2-1. Feature differences between the AT32UC3L0 64/32/16 and 256/128 devices. Feature AT32UC3L0 64/32/16 AT32UC3L0 256/128 Flash size 64/32/16kB 256/128kB Flash page size 256 bytes 512 bytes PLL No Yes (PLL0) PDCA: number of channels 12 16 Number of generic clock 6 10 3 Pinout comparison AT32UC3L0 64/32/16 devices and AT32UC3L0 256/128 devices are pin-to-pin compatible. 2 Atmel AVR32847

Atmel AVR32847 4 Porting considerations There are three major items to consider when migrating from one device to another: Device differences Software design for compatibility Support of the devices in the tools 4.1 Device porting considerations and software design 4.1.1 Hardware module versions 4.1.2 Flash page size 4.1.3 Flash serial number 4.1.4 ADCIFB For each hardware module, the parameter register (PR) and version registers (VR) may differ from one device to another, for example: On Atmel AT32UC3L0 64/32/16 FLASHCDW revision is 1.0.2(.0) o FLASHC.VFR = 0x102 o FLASHC.FVR = 0x305 On Atmel AT32UC3L0 256/128 FLASHCDW revision is 1.2.0(.0) o FLASHC.VFR = 0x120 o FLASHC.FVR = 0x409 Conditions for a successful migration: Review all source code that was relying on module parameter and version register values. The AT32UC3L0 64/32/16 flash page (FLASH_W) size is 256 bytes The AT32UC3L0 256/128 flash page (FLASH_W) size is 512 bytes Conditions for a successful migration: Review all source code that was relying on a hard coded page size value. Use the toolchain flash page size definition: AVR 32_FLASHCDW_PAGE_SIZE to design portable software. Each AT32UC3L0 64/32/16 has a unique 120 bits serial number readable from address 0x80800284 to 0x80800292 Each AT32UC3L0 256/128 has a unique 120 bits serial number readable from address 0x8080020C to 0x8080021A Conditions for a successful migration: Use the correct device address when accessing the flash serial number. The time constant of the sample on hold formula in ADC (ADCIFB) ACR (ADC configuration register) register on AT32UC3L0 256/128 is 2, but on AT32UC3L0 64/32/16 the time constant is 3. AT32UC3L0 256/128: TSAMPLE&HOLD= (SHTIM+2) x TCLK_ADC AT32UC3L0 64/32/16: TSAMPLE&HOLD= (SHTIM+3) x TCLK_ADC Conditions for a successful migration: Use the correct sample on hold formula depending on the device used. 3

4.1.5 Frequency meter (FREQM) 4 Atmel AVR32847 The FREQM clock sources for clock measurement (CLK_MSR) 15:17 on the Atmel AT32UC3L0 64/32/16 are now clock 19:21 on the Atmel AT32UC3L0 56/128. Table 4-1. Clock sources for CLK_MSR register. CLKSEL on AT32UC3L0 256/128 4.1.6 Peripheral DMA controller (PDCA) 4.1.7 System control interface (SCIF) PLL CLKSEL on AT32UC3L0 256/128 Clock / Oscillator Description 19 15 RC120M AW clock Output clock from RC120M to AW 20 16 RC120M Output clock from RC120M to main clock mux 21 17 RC32K Output clock from RC32K Conditions for a successful migration: Refer to the FREQM module configuration section in the datasheet for a full description of the clock sources for CLK_MSR and use the toolchain FREQM definitions: AVR32_FREQM_RC120M, AVR32_FREQM_RC32K, AVR32_FREQM_RC120M_AW. The AT32UC3L0 64/32/16 devices have 12 PDCA channels The AT32UC3L0 256/128 devices have 16 PDCA channels Conditions for a successful migration: Use only 12 channels on AT32UC3L0 256/128 devices if a migration to the AT32UC3L0 64/32/16 is planned. The phase locked loop (PLL) feature is only present on the AT32UC3L0 256/128 devices. Conditions for a successful migration: Do not use the PLL on AT32UC3L0 256/128 devices if a migration to the AT32UC3L0 64/32/16 is planned. 4.1.8 System control interface (SCIF) generic clock There are six generic clocks on the AT32UC3L0 64/32/16 and 10 on the AT32UC3L0 256/128. Conditions for a successful migration: Use maximum six generic clocks on the AT32UC3L0 256/128 if a migration to the AT32UC3L0 64/32/16 is planned. 4.1.9 Boot loader configuration The UART boot loader uses two words in the flash user page to store its configuration: On AT32UC3L0 64/32/16: o Configuration word 1 at address 0x808000FC o Configuration word 2 at address 0x808000F8 On AT32UC3L0 256/128: o Configuration word 1 at address 0x808001FC o Configuration word 2 at address 0x808001F8 Conditions for a successful migration: Refer to the device datasheet, Section Flash, sub section Module Configuration: Boot loader configuration and make sure the boot loader configuration words are used at the correct addresses.

Atmel AVR32847 4.1.10 Electrical characteristics 4.1.11 Errata 4.2 Tools considerations 4.2.1 IAR Embedded Workbench 4.2.2 AVR Studio 5 Power consumptions in active and different sleep modes are slightly higher on Atmel AT32UC3L0 256/128 compared to the Atmel AT32UC3L0 64/32/16 devices. Conditions for a successful migration: Refer to each device datasheet, Section Electrical Characteristic and make sure the application is properly designed. When porting from AT32UC3L0 64/32/16 to 256/128, keep a safety buffer in the power budget. When porting from the AT32UC3L0 256/128 to 64/32/16, there is nothing to mention. Errata list is device revision specific. Conditions for a successful migration: Refer to each device datasheet; Section Errata to make sure the application is properly designed. Selecting the correct part number in tools will affect: Device header files: The register address map will adjust to your part number Linker file: The flash and RAM memory map Interrupt map, GPIO alternate feature map In project properties: General options -> Target -> Device: Select the correct UC3L0 part number (uc3l0{256,128,64,32,16}) Linker -> Config: If a specific linker file is specified (overriding default settings), make sure that the proper device one is selected In project properties: Device: Select the correct UC3L0 part number (AT32UC3L0 256/128/64/32/16}) Toolchain -> AVR32/GNU C Linker -> Miscellaneous: If a specific linker file is specified, make sure that the proper device one is selected 4.2.3 Standalone Makefile/GNU Toolchain Using standalone makefile / config.mk: Open the associated config.mk and check the following parameter: PART = uc3l0 256/128/64/32/16 adjust the correct part number FLASH = internal@0x80000000,xkb: adjust the correct flash size INC_PATH (include path), CSRCS (list of C files) and ASRCS (list of assembly files) variables should be adjusted to match the part driver LINKER_SCRIPT: Adjust the correct linker script path if needed 5

Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131 USA Tel: (+1)(408) 441-0311 Fax: (+1)(408) 487-2600 www.atmel.com Atmel Asia Limited Unit 01-5 & 16, 19F BEA Tower, Milennium City 5 418 Kwun Tong Road Kwun Tong, Kowloon HONG KONG Tel: (+852) 2245-6100 Fax: (+852) 2722-1369 Atmel Munich GmbH Business Campus Parkring 4 D-85748 Garching b. Munich GERMANY Tel: (+49) 89-31970-0 Fax: (+49) 89-3194621 Atmel Japan 16F, Shin Osaki Kangyo Bldg. 1-6-4 Osaki Shinagawa-ku Tokyo 104-0032 JAPAN Tel: (+81) 3-6417-0300 Fax: (+81) 3-6417-0370 2011 Atmel Corporation. All rights reserved. Atmel, Atmel logo and combinations thereof, AVR, AVR Studio, and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others. 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 THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, 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. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.