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

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

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

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

Atmel QT600 Quick Start Guide Touch Solutions

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

STK521. User Guide B AVR 01/12

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

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

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

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

ATDH2200E Programming Kit... User Guide

AVR469: MC301 Hardware User Guide. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

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

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

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

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

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

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

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

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

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

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

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

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

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

AVR ONE!... Quick-start Guide. EVK Windows 32103C AVR ONE! 02/10

AVR32015: AVR32 Studio getting started. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

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

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

Atmel CryptoAuthentication Starter Kit

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

Getting Started with the SAM4L-EK Demo

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

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

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

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

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

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

ATAVRAUTO User Guide

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

CAN, 80C51, AVR, Microcontroller. Application Note

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

AVR32 UC3 Software Framework... User Manual

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

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

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

AT73C246-EK1 Evaluation Kit... User Guide

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

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

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

1-megabit (128K x 8) Paged Parallel EEPROM AT28C010

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

ATAVRAUTO User Guide

USER GUIDE EDBG. Description

AVR2015: RZRAVEN Quick Start Guide. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

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

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

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

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

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

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

Interfacing the internal serial EEPROM

AVR515: Migrating from ATmega48/88/168 and ATmega48P/88P/168P/328P to ATtiny48/88. 8-bit Microcontrollers. Application Note. Features.

AVR32817: Getting Started with the 32-bit AVR UC3 Software Framework lwip TCP/IP Stack. 32-bit Microcontrollers. Application Note.

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

AT89C51CC03 UART Bootloader

USER GUIDE. ZigBit USB Stick User Guide. Introduction

Section 1 ATAVRAUTOEK1 Getting Started

EDBG. Description. Programmers and Debuggers USER GUIDE

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

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

QTouch 8-key Touch Sensor IC AT42QT1085. Summary

OLED display Sensors readout. Light sensor Temperature sensor

LBAT90USB162 Atmel. LBAT90USB162 Development Board User s Manual

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

Power Management and Analog Companions (PMAAC) Application Note. AT73C240 Power-On and Power-Off Sequences. 1. Scope. 2. Operating Conditions

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

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

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

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

64K (8K x 8) Battery-Voltage Parallel EEPROM with Page Write and Software Data Protection AT28BV64B

USER GUIDE. ATmega168 Xplained Mini User Guide. Introduction

ATA2270-EK1. User Guide

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

AT91 ARM Thumb Microcontrollers. Application Note. Migrating to an AT91SAM9G20-based System from an AT91SAM9260-based System. 1. Scope. 2.

512K (64K x 8) 3-volt Only Flash Memory AT29LV512

Transcription:

AVR32917: picopower Board getting started Features Introduction to the picopower Board Includes the evaluation demo application 1 Introduction Atmel 's picopower technology provides power saving modes while maintaining MCU performance. picopower enabled microcontrollers incorporate a number of techniques for reducing the power consumption in both active and sleep modes and still react quickly from any sleep mode. The purpose of the picopower Board is to get familiar with the general power-saving features of AVR and AVR32 microcontrollers. 32-bit Microcontrollers Application Note Preliminary This document describes the picopower function of ATmega48PA, ATxmega32A4 and AT32UC3L064. Figure 1-1: The picopower Board. Rev.

2 picopower Board 2.1 Featured modes of operation The picopower Board features 4 modes for each device. For ATmega48PA and ATxmega32A4, the modes are: Active mode Idle mode Power Save mode Power Down mode For AT32UC3L064, the modes are: Active mode Idle mode Static mode with RTC Static mode without RTC To switch the operation mode, you need only press the button below the device. A LED will light up once a key is pressed, and remain lit up until the key is released. The related device will enter the corresponding operation mode once the LED turns off. For example, if you press the button below the device ATmega48PA once and the Idle LED blinks, the ATmega48PA will have entered Idle mode. Press the button again, and the Power Save LED will blink once as the device switches to this mode. The details of the different operating modes for each device are presented in Table 2-1 to Table 2-3. Table 2-1: Details of ATmega48PA operating modes. Operating mode in Operating mode Datasheet CPU All peripherals 32kHz crystal Clock Frequency Active Active ON OFF OFF 1MHz 1 Idle Idle OFF OFF OFF 1MHz 1 Power Save Power Save OFF OFF ON N/C Power Down Power Down OFF OFF OFF N/C Notes : 1. The 1MHz clock needs to be calibrated according to AVR053: Calibration of internal RC oscillator in order to get the exact consumption value. The consumption for ATmega48PA presented here is based on this calibration. 2 AVR32917

Table 2-2: Details of ATxmega32A4 operating modes. Operating mode AVR32917 Operating mode in Datasheet CPU All peripherals 32kHz crystal Clock Frequency Active Active ON OFF OFF 2MHz Idle Idle OFF OFF OFF 2MHz Power Save Power Save OFF OFF ON N/C Power Down Power Down OFF OFF OFF N/C Table 2-3: Details of AT32UC3L064 operating modes. Operating mode in Operating mode Datasheet CPU All peripherals 32kHz crystal Clock Frequency Active Active ON OFF ON 50MHz Idle Idle OFF OFF ON 50MHz Power Save Static with RTC OFF OFF ON N/C Power Down Static without RTC OFF OFF OFF N/C 2.2 Hardware schematics The schematics for the picopower Board are shown in Figure 2-1 and are also printed on the bottom side of the picopower Board. Figure 2-1: Schematics of picopower Board. 2.3 Operating voltage For powering the devices, the picopower Board features a USB mini connector. Two regulators generate 3.3V and 1.8V individually from the USB 5V supply. 3.3V is supplied to all three devices, and is the only voltage needed for the ATmega48PA and ATxmega32A4. The AT32UC3L064 can be powered by either 3.3V or 1.8V, depending on the mode of operation. 3

2.4 Current measurement The two pin Jumper for UC3L064 connects the power supply to the VDDIO and VDDCORE pins on the device. VDDCORE should only be powered by 1.8V. Any voltage exceeding this limitation can cause physical damage to the device. WARNING: The 1.8V jumper must only be set if the 1.8V power supply is connected. The 1.8V jumper must be open while the 3.3V is connected or the device may be damaged. To measure the current consumption on ATmega48PA or ATxmega32A4, remove the cap from the related Jumper and connect an Ampere meter to the two pins, as shown in Figure 2-2. Figure 2-2: Ampere meter connection for ATmega48PA and ATxmega32A4. Press the key below the device to make sure which mode the device is in. The device enters the corresponding mode once the key is released and LED turns off. To measure the current consumption on AT32UC3L064, connect the Ampere meter as shown in Figure 2-3. Since different power supply connections are needed for the normal sleep mode and shutdown mode, both regulated voltages are shown. The purpose of the three pin jumper is to support all modes of operation on the same platform. For the shutdown mode, the power configuration should be 3.3V Supply Mode with 1.8V Regulated I/O Line (refer to 3.5.3.3 of UC3L datasheet), but for all other modes, only use 1.8V as the power supply for the lowest power consumption (refer to 32.5 of UC3L datasheet for details regarding operation conditions). 4 AVR32917

AVR32917 Figure 2-3: Ampere meter connection for AT32UC3L064. 2.5 Power Consumption The figures in the following subsections are extracts from the corresponding datasheets and can be used as reference for measurements. The figures show the typical current consumption in the different operating modes. 2.5.1 ATmega48PA Figure 2-4: ATmega48PA in Active mode (device running at 1MHz). 5

Figure 2-5: ATmega48PA in Idle mode (device running at 1MHz). Figure 2-6: ATmega48PA in Power Down mode. 6 AVR32917

AVR32917 Figure 2-7: ATmega48PA in Power Save mode. 2.5.2 ATxmega32A4 Figure 2-8: ATxmega32A4 in Active mode (device running at 2MHz). 7

Figure 2-9: ATxmega32A4 in Idle mode( device running at 2MHz). Figure 2-10: ATxmega32A4 in Power Save mode. 8 AVR32917

AVR32917 Figure 2-11: ATxmega32A4 in Power Down mode. 2.5.3 AT32UC3L064 Figure 2-12: Current consumption for AT32UC3L064 in different modes. 3 Firmware 3.1 General The main purpose of the firmware is to enter different sleep modes based on the current status. The status is updated when the key is pressed. For ATmega48PA and ATxmega32A4, the key press triggers a pin interrupt. The status is updated in the ISR, and the sleep mode is then set accordingly in the main loop. For AT32UC3L064, the key press resets the chip. The status variable is stored in RAM and the reset does not clear it, so each reset will cause a change of sleep mode. 9

3.2 Flowcharts Figure 3-1: Flowchart for ATmega48PA and ATxmega32A4. Start Low Power Init Hardware Init LED blink 0.5s Set sleep mode and light LED by judge gstate, then set I/O intput gstate == 0? Run == true? Sleep mode N gstate++ If (gstate > 3) gstate = 0 10 AVR32917

AVR32917 Figure 3-2: Flowchart for AT32UC3L064. Start (Reset) Get ast_value value ast_value=0x00? N Set sram value=0x01 ast_value=0x01? N Enable OSC32 Set sram value=0x02 ast_value=0x02? N Choose RSTPUN mode Config GPIO Enable OSC32 Choose RSTPUN mode Set sram value=0x03 Choose RSTPUN mode ast_value=0x03? Set sram value=0x04 N Set sram value=0x01 LED blink 0.5s Disable AST Config GPIO LED blink 0.5s Config GPIO LED blink 0.5s Choose RSTPUN mode Config GPIO Enable OSC32 Choose RSTPUN mode Flash wait state &HSEN enable Disable AST Enable AST&OSC32 LED blink 0.5s Config GPIO Set DFLL, CPU and PBA clock Flash wait state &HSEN enable Disable Regulator&POR33 Disable AST LED blink 0.5s Disable Regulator&POR33 While(1) Set DFLL, CPU and PBA clock Disable Regulator&POR33 PM_SLEEP(0) PM_SLEEP(5) While(1) If wake up, enter sleep. Disable OSC32 Disable Regulator&POR33 PM_SLEEP(5) Disable AST Flash wait state &HSEN enable Set DFLL, CPU and PBA clock Disable Regulator&POR33 While(1) While(1) 11

4 Operation step 4.1 Installation To compile the code supplied with this application note it is necessary to install the development tools AVR Studio, AVR32 Studio and the GNU Toolchain. 4.2 Programming the devices Open the project corresponding to each device, build the project and generate the ELF files. Then download it into the chip using the related programming headers. Each device has a separate programming header. The ATmega48PA uses ISP, the ATxmega32A4 uses PDI and the AT32UC3L064 uses JTAG. The connection with JTAGICE mkii is shown for the different devices in in Figure 4-1 to Figure 4-3. Figure 4-1: JTAGICE mkii connection for ATmega48PA. 12 AVR32917

AVR32917 Figure 4-2: JTAGICE mkii connection for ATxmega32A4. Figure 4-3: JTAGICE mkii connection for AT32UC3L064. 13

4.3 Measure the current ou can measure the current by following the steps below. ATmega48PA is used here as an example: Take off the jumper cap for the ATmega48PA. Connect an Ampere meter to the two pins of the jumper. Power on the board, and the ATmega48PA will enter Active mode as default. Then, you can record the current value shown on the Ampere meter. Press the key to switch the operating mode to Idle mode, the LED for Idle mode will blink once. Record the value in the Ampere meter and so on. ou will get all the currents for the 4 working modes. Compare the values with the corresponding table in 2.5. Figure 4-4: Measurement setup for ATmega48PA. 14 AVR32917

D Headquarters International Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131 USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600 Atmel Asia Unit 1-5 & 16, 19/F BEA Tower, Millennium City 5 418 Kwun Tong Road Kwun Tong, Kowloon Hong Kong Tel: (852) 2245-6100 Fax: (852) 2722-1369 Atmel Europe Le Krebs 8, Rue Jean-Pierre Timbaud BP 309 78054 Saint-Quentin-en- velines Cedex France Tel: (33) 1-30-60-70-00 Fax: (33) 1-30-60-71-11 Atmel 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 Product Contact Web Site www.atmel.com Technical Support avr@atmel.com Sales Contact www.atmel.com/contacts Literature Request www.atmel.com/literature 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 CONDITIONS OF SALE LOCATED ON ATMEL S WEB SITE, ATMEL ASSUMES NO LIABILIT WHATSOEVER AND DISCLAIMS AN EXPRESS, IMPLIED OR STATUTOR WARRANT RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANT OF MERCHANTABILIT, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR AN DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILIT TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILIT 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 s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life. 2009 Atmel Corporation. All rights reserved. Atmel, Atmel logo and combinations thereof, AVR, AVR logo, picopower and others, are the registered trademarks or trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.