AVR221: Discrete PID Controller on tinyavr and megaavr devices. Introduction. AVR 8-bit Microcontrollers APPLICATION NOTE

Size: px
Start display at page:

Download "AVR221: Discrete PID Controller on tinyavr and megaavr devices. Introduction. AVR 8-bit Microcontrollers APPLICATION NOTE"

Transcription

1 AVR 8-bit Microcontrollers AVR221: Discrete PID Controller on tinyavr and megaavr devices APPLICATION NOTE Introduction This application note describes a simple implementation of a discrete Proportional- Integral-Derivative (PID) controller. When working with applications where control of the system output due to changes in the reference value or state is needed, implementation of a control algorithm may be necessary. Examples of such applications are motor control, control of temperature, pressure, flow rate, speed, force, or other variables. The PID controller can be used to control any measurable variable, as long as this variable can be affected by manipulating some other process variables. Many control solutions have been used over the time, but the PID controller has become the industry standard due to its simplicity and good performance. For further information about the PID controller and its implications, the reader should consult other sources, e.g. PID Controllers by K. J. Astrom & T. Hagglund (1995). Figure -1. Typical PID Regulator Response to Step Change in Reference Input p pi pid ref

2 Features Simple discrete PID controller algorithm Supported by all Atmel AVR devices PID function uses 534 bytes of code memory and 877 CPU cycles (IAR - low size optimization) 2

3 Table of Contents Introduction...1 Features PID Controller Proportional Term Integral Term Derivative Term Proportional, Integral, and Derivative Terms Together Tuning the Parameters Discrete PID Controller Algorithm Background Implementation Integral Windup Further Development Literature References Revision History...13

4 1. PID Controller In the figure below a schematic of a system with a PID controller is shown. The PID controller compares the measured process value y with a reference setpoint value, y 0. The difference or error, e, is then processed to calculate a new process input, u. This input will try to adjust the measured process value back to the desired setpoint. The alternative to a closed loop control scheme such as the PID controller is an open loop controller. Open loop control (no feedback) is in many cases not satisfactory, and is often impossible due to the system properties. By adding feedback from the system output, performance can be improved. Figure 1-1. Closed Loop System with PID Controller y0 e - PID u System y Unlike simple control algorithms, the PID controller is capable of manipulating the process inputs based on the history and rate of change of the signal. This gives a more accurate and stable control method. The basic idea is that the controller reads the system state by a sensor. Then it subtracts the measurement from a desired reference to generate the error value. The error will be managed in three ways; to handle the present through the proportional term, recover from the past using the integral term, and to anticipate the future through the derivate term. The figure below shows the PID controller schematics, where T p, T i, and T d denote the time constants of the proportional, integral, and derivative terms respectively. Figure 1-2. PID Controller Schematic T d d dt e K p u T i 1.1. Proportional Term The proportional term (P) gives a system control input proportional with the error. Using only P control gives a stationary error in all cases except when the system control input is zero and the system process value equals the desired value. In the figure below the stationary error in the system process value appears after a change in the desired value (ref). Using a too large P term gives an unstable system. 4

5 Figure 1-3. Step Response P Controller 12 p ref Integral Term The integral term (I) gives an addition from the sum of the previous errors to the system control input. The summing of the error will continue until the system process value equals the desired value, and this results in no stationary error when the reference is stable. The most common use of the I term is normally together with the P term, called a PI controller. Using only the I term gives slow response and often an oscillating system. The figure below shows the step responses to a I and PI controller. As seen the PI controller response have no stationary error and the I controller response is very slow. Figure 1-4. Step Response I and PI Controller p i pi ref Derivative Term The derivative term (D) gives an addition from the rate of change in the error to the system control input. A rapid change in the error will give an addition to the system control input. This improves the response to a sudden change in the system state or reference value. The D term is typically used with the P or PI as a PD or PID controller. A too large D term usually gives an unstable system. The figure below shows D and PD controller responses. The response of the PD controller gives a faster rising system process value 5

6 than the P controller. Note that the D term essentially behaves as a high-pass filter on the error signal and thus easily introduces instability in a system and make it more sensitive to noise. Figure 1-5. Step Response D and PD Controller p d pd ref Proportional, Integral, and Derivative Terms Together Using all the terms together, as a PID controller usually gives the best performance. The figure below compares the P, PI, and PID controllers. PI improves the P by removing the stationary error, and the PID improves the PI by faster response and no overshoot. Figure 1-6. Step Response P, PI, and PID Controller p pi pid ref Tuning the Parameters The best way to find the needed PID parameters is from a mathematical model of the system, parameters can then be calculated to get the desired response. Often a detailed mathematical description of the system is unavailable, experimental tuning of the PID parameters has to be performed. Finding the terms for the PID controller can be a challenging task. Good knowledge about the systems properties and the 6

7 way the different terms work is essential. The optimum behavior on a process change or setpoint change depends on the application at hand. Some processes must not allow overshoot of the process variable from the setpoint. Other processes must minimize the energy consumption in reaching the setpoint. Generally, stability is the strongest requirement. The process must not oscillate for any combinations or setpoints. Furthermore, the stabilizing effect must appear within certain time limits. Several methods for tuning the PID loop exist. The choice of method will depend largely on whether the process can be taken off-line for tuning or not. Ziegler-Nichols method is a well-known online tuning strategy. The first step in this method is setting the I and D gains to zero, increasing the P gain until a sustained and stable oscillation (as close as possible) is obtained on the output. Then the critical gain K c and the oscillation period P c is recorded and the P, I, and D values adjusted accordingly using the table below. Table 1-1. Ziegler-Nichols Parameters Controller Kp Ti Td P 0.5 * Kc PD 0.65 * Kc 0.12 * Pc PI 0.45 * Kc 0.85 * Pc PID 0.65 * Kc 0.5 * Pc 0.12 * Pc Further tuning of the parameters is often necessary to optimize the performance of the PID controller. The reader should note that there are systems where the PID controller will not work very well, or will only work on a small area around a given system state. Non-linear systems can be such, but generally problems often arise with PID control when systems are unstable and the effect of the input depends on the system state Discrete PID Controller A discrete PID controller will read the error, calculate and output the control input at a given time interval, at the sample period T. The sample time should be less than the shortest time constant in the system Algorithm Background Unlike simple control algorithms, the PID controller is capable of manipulating the process inputs based on the history and rate of change of the signal. This gives a more accurate and stable control method. Figure 1-2 shows the PID controller schematics, where Tp, Ti, and Td denotes the time constants of the proportional, integral, and derivative terms respectively. The transfer function of this system is: = = This gives u with respect to e in the time domain: = d + Approximating the integral and the derivative terms to get the discrete form, using: 0 d = 0 1 = 7

8 Where n is the discrete step at time t. This gives the controller: = = 0 Where: = = To avoid that changes in the desired process value makes any unwanted rapid changes in the control input, the controller is improved by basing the derivative term on the process value only: = = 0 8

9 2. Implementation A working implementation in C is included with this application note. Full documentation of the source code and compilation information is found by opening the readme.html file included with the source code. Figure 2-1. Block Diagram of Demo Application pid.c / pid.h main() PID_timer p_factor, i_factor d_factor setpoint, processvalue control input Init_PID() PID() pid LAST_PROCESS_VALUE SUM_ ERROR P_FACTOR I_FACTOR D_ FACTOR MA X_ERROR MA X_SUM_ ERROR In the figure above a simplified block diagram of the demo application is shown. The PID controller uses a struct to store its status and parameters. This struct is initialized in main, and only a pointer to it is passed to the Init_PID() and PID() functions. The PID() function must be called for each time interval T, this is done by a timer who sets the PID_timer flag when the time interval has passed. When the PID_timer flag is set the main routine reads the desired process value (setpoint) and system process value, calls PID() and outputs the result to the control input. To increase the accuracy the p_factor, i_factor, and d_factor are scaled with a factor 1:128. The result of the PID algorithm is later scaled back by dividing by 128. The value 128 is used to allow for optimizing in the compiler. = 128 Furthermore the effect of the IFactor and DFactor will depend on the sample time T. = 128 = Integral Windup When the process input, u, reaches a high enough value, it is limited in some way. Either by the numeric range internally in the PID controller, the output range of the controller, or constraints in amplifiers or the process itself. This will happen if there is a large enough difference in the measured process value and the reference set point value, typically because the process has a larger disturbance/load than the system is capable of handling. If the controller uses an integral term, this situation can be a problematic. The integral term will sum up as long as the situation last, and when the larger disturbance/load disappear, the PID controller will overcompensate the process input until the integral sum is back to normal. 9

10 This problem can be avoided in several ways. In this implementation the maximum integral sum is limited by not allowing it to become larger than MAX_I_TERM. The correct size of the MAX_I_TERM will depend on the system and sample time used. 10

11 3. Further Development The PID controller presented here is a simplified example. The controller should work fine, but it might be necessary to make the controller even more robust (limit runaway/overflow) in certain applications. Adding saturation correction on the integral term, basing the proportional term on only the system process value can be necessary. In the calculating of IFactor and DFactor the sample time T is a part of the equation. If the sample time T used is much smaller or larger than 1 second, the accuracy for either IFactor or DFactor will be poor. Consider rewriting the PID algorithm and scaling so accuracy for the integral and derivative terms are kept. 11

12 4. Literature References K. J. Astrom & T. Hagglund, 1995: PID Controllers: Theory, Design, and Tuning. International Society for Measurement and Con. 12

13 5. Revision History Doc Rev. Date Comments 2558B 08/2016 New template and some minor changes 2558A 05/2006 Initial document release 13

14 Atmel Corporation 1600 Technology Drive, San Jose, CA USA T: (+1)(408) F: (+1)(408) Atmel Corporation. / Rev.: Atmel, Atmel logo and combinations thereof, Enabling Unlimited Possibilities, AVR, tinyavr, megaavr, and others are registered trademarks or trademarks of Atmel Corporation in U.S. and other countries. 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 products 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. SAFETY-CRITICAL, MILITARY, AND AUTOMOTIVE APPLICATIONS DISCLAIMER: Atmel products are not designed for and will not be used in connection with any applications where the failure of such products would reasonably be expected to result in significant personal injury or death ( Safety-Critical Applications ) without an Atmel officer's specific written consent. Safety-Critical Applications include, without limitation, life support devices and systems, equipment or systems for the operation of nuclear facilities and weapons systems. Atmel products are not designed nor intended for use in military or aerospace applications or environments unless specifically designated by Atmel as military-grade. Atmel products are not designed nor intended for use in automotive applications unless specifically designated by Atmel as automotive-grade.

AVR186: Best Practices for the PCB Layout of Oscillators. Introduction. Vdd. Vss. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR186: Best Practices for the PCB Layout of Oscillators. Introduction. Vdd. Vss. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR186: Best Practices for the PCB Layout of Oscillators APPLICATION NOTE Introduction The Pierce oscillator (most common case) implemented in microcontrollers is built up around

More information

AVR182: Zero Cross Detector. Introduction. AVR ATmega163. AVR 8-bit Microcontrollers APPLICATION NOTE V CC. Serial Input Resistor. Mains.

AVR182: Zero Cross Detector. Introduction. AVR ATmega163. AVR 8-bit Microcontrollers APPLICATION NOTE V CC. Serial Input Resistor. Mains. AVR 8-bit Microcontrollers AVR182: Zero Cross Detector APPLICATION NOTE Introduction One of the many issues with developing modern applications is to keep the spikes and EMI at a minimum, especially when

More information

APPLICATION NOTE. Authentication Counting. Atmel CryptoAuthentication. Features. Introduction

APPLICATION NOTE. Authentication Counting. Atmel CryptoAuthentication. Features. Introduction APPLICATION NOTE Authentication Counting Atmel CryptoAuthentication Features How to achieve high endurance counters in excess of 800,000 counts. How to disable the Atmel CryptoAuthentication ATSHA204A

More information

AVR306: Using the AVR USART on tinyavr and megaavr devices. Introduction. Features. 8-bit AVR Microcontrollers APPLICATION NOTE

AVR306: Using the AVR USART on tinyavr and megaavr devices. Introduction. Features. 8-bit AVR Microcontrollers APPLICATION NOTE 8-bit AVR Microcontrollers AVR306: Using the AVR USART on tinyavr and megaavr devices APPLICATION NOTE Introduction This application note provides code examples to use the USART/UART on AVR devices in

More information

AVR136: Low-Jitter Multi-Channel Software PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR136: Low-Jitter Multi-Channel Software PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR136: Low-Jitter Multi-Channel Software PWM APPLICATION NOTE Introduction Generation of stable and accurate pulse width modulated (PWM) signals on an Atmel AVR Microcontroller

More information

APPLICATION NOTE. AVR1310: Using the XMEGA Watchdog Timer. 8-bit AVR XMEGA Microcontroller. Introduction. Features

APPLICATION NOTE. AVR1310: Using the XMEGA Watchdog Timer. 8-bit AVR XMEGA Microcontroller. Introduction. Features APPLICATION NOTE AVR1310: Using the XMEGA Watchdog Timer 8-bit AVR XMEGA Microcontroller Introduction Watchdog Timers are used to ensure that a system can recover from unforeseen failures in firmware or

More information

APPLICATION NOTE. Secure Personalization with Transport Key Authentication. ATSHA204A, ATECC108A, and ATECC508A. Introduction.

APPLICATION NOTE. Secure Personalization with Transport Key Authentication. ATSHA204A, ATECC108A, and ATECC508A. Introduction. APPLICATION NOTE Secure Personalization with Transport Key Authentication ATSHA204A, ATECC108A, and ATECC508A Introduction The Atmel CryptoAuthentication ATSHA204A, ATECC108A, and ATECC508A devices (crypto

More information

AVR1200: Using External Interrupts for megaavr Devices. Introduction. Features. AVR 8-bit Microcontroller APPLICATION NOTE

AVR1200: Using External Interrupts for megaavr Devices. Introduction. Features. AVR 8-bit Microcontroller APPLICATION NOTE AVR 8-bit Microcontroller AVR1200: Using External Interrupts for megaavr Devices APPLICATION NOTE Introduction This application note illustrates the functionality and provides steps to configure the external

More information

AVR201: Using the AVR Hardware Multiplier. Features. Introduction. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR201: Using the AVR Hardware Multiplier. Features. Introduction. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR201: Using the AVR Hardware Multiplier APPLICATION NOTE Features 8- and 16-bit implementations Signed and unsigned routines Fractional signed and unsigned multiply Executable

More information

AVR106: C Functions for Reading and Writing to Flash Memory. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR106: C Functions for Reading and Writing to Flash Memory. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR106: C Functions for Reading and Writing to Flash Memory APPLICATION NOTE Introduction The Atmel AVR devices have a feature called Self programming Program memory. This feature

More information

AT88CK490 Evaluation Kit

AT88CK490 Evaluation Kit AT88CK490 Evaluation Kit CryptoAuthentication USB Dongle HARDWARE USER GUIDE Atmel AT88CK490 CryptoAuthentication Evaluation Kit Introduction The Atmel AT88CK490 CryptoAuthentication Evaluation Kit is

More information

AT Battery Life Calculator for ZigBee End Device. Introduction. Features. Atmel MCU Wireless APPLICATION NOTE

AT Battery Life Calculator for ZigBee End Device. Introduction. Features. Atmel MCU Wireless APPLICATION NOTE Atmel MCU Wireless AT07995 - Battery Life Calculator for ZigBee End Device APPLICATION NOTE Introduction This application note guides customers to evaluate low power consumption of ATmega256RFR2 device

More information

APPLICATION NOTE. Hardware and Software Getting Started. ATmegaS128-STK600. Introduction. Requirements. Objective

APPLICATION NOTE. Hardware and Software Getting Started. ATmegaS128-STK600. Introduction. Requirements. Objective APPLICATION NOTE Hardware and Software Getting Started ATmegaS128-STK600 Introduction This document guides you step by step to setup the hardware and software, to program and run your first code with the

More information

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE Atmel AVR 8-bit Microcontroller AVR151: Setup and Use of the SPI APPLICATION NOTE Introduction This application note describes how to set up and use the on-chip Serial Peripheral Interface (SPI) of the

More information

AVR120: Characterization and Calibration of the ADC on an AVR. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR120: Characterization and Calibration of the ADC on an AVR. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR120: Characterization and Calibration of the ADC on an AVR APPLICATION NOTE Introduction This application note explains various ADC (Analog to Digital Converter) characterization

More information

APPLICATION NOTE. Symmetric Session Encryption Key Exchange ATSHA204A. Introduction

APPLICATION NOTE. Symmetric Session Encryption Key Exchange ATSHA204A. Introduction APPLICATION NOTE Symmetric Session Encryption Key Exchange ATSHA204A Introduction Many systems need to communicate sensitive information over open channels. Examples include traffic light controllers where

More information

AVR131: Using the AVR s High-speed PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR131: Using the AVR s High-speed PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR131: Using the AVR s High-speed PWM APPLICATION NOTE Introduction This application note is an introduction to the use of the high-speed Pulse Width Modulator (PWM) available

More information

USER GUIDE STK600-RC064SAM-72. Description

USER GUIDE STK600-RC064SAM-72. Description USER GUIDE STK600-RC064SAM-72 Description The Atmel STK 600-RC064SAM-72 (STK600-RC72) is a routing card to support the 64-pin version of the Atmel SAM D20 ARM Cortex -M0+ based microcontroller on STK600.

More information

APPLICATION NOTE. AT11491: Peripheral Power Consumption in Standby Mode for SAM D Devices. Atmel SAM D. Introduction

APPLICATION NOTE. AT11491: Peripheral Power Consumption in Standby Mode for SAM D Devices. Atmel SAM D. Introduction APPLICATION NOTE AT11491: Peripheral Power Consumption in Standby Mode for SAM D Devices Atmel SAM D Introduction This application note describes the usage of various peripherals in Standby Sleep mode

More information

AVR42779: Core Independent Ultrasonic Distance Measurement with ATtiny817. Features. Introduction. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR42779: Core Independent Ultrasonic Distance Measurement with ATtiny817. Features. Introduction. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR42779: Core Independent Ultrasonic Distance Measurement with ATtiny817 APPLICATION NOTE Features Ultrasonic transceiver used for transmitting and receiving reflected bursts

More information

AT11805: Capacitive Touch Long Slider Design with PTC. Introduction. Features. Touch Solutions APPLICATION NOTE

AT11805: Capacitive Touch Long Slider Design with PTC. Introduction. Features. Touch Solutions APPLICATION NOTE Touch Solutions AT11805: Capacitive Touch Long Slider Design with PTC APPLICATION NOTE Introduction Slider is a one-dimensional sensor that detects the linear movement of a finger during touch. Sliders

More information

APPLICATION NOTE. AT04189: UART Based SAM-BA Bootloader for SAM D20. Atmel SAM D20. Description. Features

APPLICATION NOTE. AT04189: UART Based SAM-BA Bootloader for SAM D20. Atmel SAM D20. Description. Features APPLICATION NOTE AT04189: UART Based SAM-BA Bootloader for SAM D20 Atmel SAM D20 Description Atmel SAM Boot Assistant (Atmel SAM-BA ) allows In-System Programming (ISP) from UART host without any external

More information

AVR415: RC5 IR Remote Control Transmitter on tinyavr and megaavr. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR415: RC5 IR Remote Control Transmitter on tinyavr and megaavr. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR415: RC5 IR Remote Control Transmitter on tinyavr and megaavr APPLICATION NOTE Introduction Use of IR (infrared) light as a method for wireless communication has become popular

More information

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

APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction. APPLICATION NOTE Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer Introduction Atmel AVR 8-bit Microcontroller This application note describes how to implement a real time counter (RTC)

More information

AVR42783: Using USART to Wake Up ATmega328PB from Sleep Mode. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR42783: Using USART to Wake Up ATmega328PB from Sleep Mode. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR42783: Using USART to Wake Up ATmega328PB from Sleep Mode APPLICATION NOTE Introduction This application note describes how to wake up ATmega328PB (on the ATmega328PB Xplained

More information

Get started with Atmel smart plug reference design kit Smart plug operation manual Smart plug Android app user manual

Get started with Atmel smart plug reference design kit Smart plug operation manual Smart plug Android app user manual APPLICATION NOTE AT15736: Atmel Smart Plug Getting Started Guide ATSAMW25 Introduction This application note aims to help users to get started with the Atmel smart plug reference design kit. Atmel smart

More information

AVR127: Understanding ADC Parameters. Introduction. Features. Atmel 8-bit and 32-bit Microcontrollers APPLICATION NOTE

AVR127: Understanding ADC Parameters. Introduction. Features. Atmel 8-bit and 32-bit Microcontrollers APPLICATION NOTE Atmel 8-bit and 32-bit Microcontrollers AVR127: Understanding ADC Parameters APPLICATION NOTE Introduction This application note explains the basic concepts of analog-to-digital converter (ADC) and the

More information

AT12075: ATmega328PB Xplained Mini Demo. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE

AT12075: ATmega328PB Xplained Mini Demo. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE Atmel AVR 8-bit Microcontrollers AT12075: ATmega328PB Xplained Mini Demo APPLICATION NOTE Introduction This application note describes how to control the brightness of LED (USER LED on the ATmega328PB

More information

APPLICATION NOTE. Encrypted Reads and Writes. Atmel CryptoAuthentication. Introduction. Features

APPLICATION NOTE. Encrypted Reads and Writes. Atmel CryptoAuthentication. Introduction. Features APPLICATION NOTE Encrypted Reads and Writes Atmel CryptoAuthentication Introduction The Atmel CryptoAuthentication product line offers an exceptionally clean way of keeping traffic between the CryptoAuthentication

More information

APPLICATION NOTE. AT07175: SAM-BA Bootloader for SAM D21. Atmel SAM D21. Introduction. Features

APPLICATION NOTE. AT07175: SAM-BA Bootloader for SAM D21. Atmel SAM D21. Introduction. Features APPLICATION NOTE AT07175: SAM-BA Bootloader for SAM D21 Atmel SAM D21 Introduction Atmel SAM Boot Assistant (Atmel SAM-BA ) allows In-System Programming (ISP) from USB or UART host without any external

More information

AT10732: SAM L True Random Number Generator (TRNG) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

AT10732: SAM L True Random Number Generator (TRNG) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE SMART ARM-based Microcontrollers AT10732: SAM L True Random Number Generator (TRNG) Driver APPLICATION NOTE Introduction This driver for Atmel SMART ARM -based microcontrollers provides an interface for

More information

APPLICATION NOTE. Atmel RFID Kits Overview ATAN0075. RFID Kits Introduction

APPLICATION NOTE. Atmel RFID Kits Overview ATAN0075. RFID Kits Introduction APPLICATION NOTE Atmel RFID Kits Overview ATAN0075 RFID Kits Introduction Atmel offers several design and evaluation kits for a fast and easy way to test the LF-RFID technology but also developing the

More information

APPLICATION NOTE. Infrared Receiver ICs T2525/T2526 for Use in IR Receiver Module Applications SELECTION GUIDE T2525/T2526.

APPLICATION NOTE. Infrared Receiver ICs T2525/T2526 for Use in IR Receiver Module Applications SELECTION GUIDE T2525/T2526. APPLICATION NOTE Infrared Receiver ICs T2525/T2526 for Use in IR Receiver Module Applications SELECTION GUIDE T2525/T2526 Introduction The technical requirements of IR receiver ICs are quite high and differ

More information

AVR310: Using the USI module as a TWI Master. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR310: Using the USI module as a TWI Master. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR310: Using the USI module as a TWI Master APPLICATION NOTE Introduction The Two-wire serial Interface (TWI) is compatible with Philips' I 2 C protocol. The bus was developed

More information

ATA8520D Sensitivity Measurement. Features. Description ATAN0141 APPLICATION NOTE

ATA8520D Sensitivity Measurement. Features. Description ATAN0141 APPLICATION NOTE ATAN0141 ATA8520D Sensitivity Measurement APPLICATION NOTE Features Sensitivity Measurement for ATA8520D V1.3 SIGFOX Transceiver [1] Uses ATA8520-EK1-E Application kit [2] and test transmitter (-21.5dBm

More information

APPLICATION NOTE. Upgrading the Atmel CryptoAuthentication/Tempsensor Kit Firmware Using FLIP. Overview. Introduction

APPLICATION NOTE. Upgrading the Atmel CryptoAuthentication/Tempsensor Kit Firmware Using FLIP. Overview. Introduction APPLICATION NOTE Upgrading the Atmel CryptoAuthentication/Tempsensor Kit Firmware Using FLIP Overview Demonstrates how to upgrade the Atmel CryptoAuthentication and Atmel Tempsensor kit firmware via USB.

More information

APPLICATION NOTE. AT16268: JD Smart Cloud Based Smart Plug Getting. Started Guide ATSAMW25. Introduction. Features

APPLICATION NOTE. AT16268: JD Smart Cloud Based Smart Plug Getting. Started Guide ATSAMW25. Introduction. Features APPLICATION NOTE AT16268: JD Smart Cloud Based Smart Plug Getting Started Guide ATSAMW25 Introduction This application note aims to help readers to get started with the Atmel smart plug reference design

More information

AVR351: Runtime calibration and compensation of RC oscillators. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR351: Runtime calibration and compensation of RC oscillators. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR351: Runtime calibration and compensation of oscillators Features Use of the Oscillator Sampling Interface in calibration. Slow oscillator frequency prediction. Ultra Low Power oscillator frequency

More information

SMARTCARD XPRO. Preface. SMART ARM-based Microcontrollers USER GUIDE

SMARTCARD XPRO. Preface. SMART ARM-based Microcontrollers USER GUIDE SMART ARM-based Microcontrollers SMARTCARD XPRO USER GUIDE Preface Atmel SMARTCARD Xplained Pro is an extension board to the Atmel Xplained Pro evaluation platform. Atmel SMARTCARD Xplained Pro is designed

More information

AVR1003: Using the XMEGA Clock System. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR1003: Using the XMEGA Clock System. Features. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR1003: Using the XMEGA Clock System APPLICATION NOTE Features Internal 32kHz, 2MHz, and 32MHz oscillators External crystal oscillator or clock input Internal PLL with multiplication

More information

Atmel SmartConnect USER GUIDE. Introduction. ATWILC3000 Bluetooth Porting Guide

Atmel SmartConnect USER GUIDE. Introduction. ATWILC3000 Bluetooth Porting Guide Atmel SmartConnect ATWILC3000 Bluetooth Porting Guide USER GUIDE Introduction This user guide describes the software deliveries of Atmel ATWILC3000 Wi-Fi /Bluetooth combo chip and the features it provides

More information

AVR922: Add a Serial Number to your USB Device. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR922: Add a Serial Number to your USB Device. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR922: Add a Serial Number to your USB Device Features 20 characters Serial Number Unique ID for your device Enabled/Disabled by software 1 Introduction Adding to the VID (Vendor ID) and the PID (Product

More information

Multifunction Compact Keyboard. Introduction. Prerequisite. Atmel QTouch USER GUIDE

Multifunction Compact Keyboard. Introduction. Prerequisite. Atmel QTouch USER GUIDE Atmel QTouch Multifunction Compact Keyboard USER GUIDE Introduction Multifunction Compact Keyboard is a turnkey solution for a capacitive touch Bluetooth keyboard based on Atmel SMART SAM D21 and ATBTLC1000.

More information

APPLICATION NOTE. AVR1302: Using the XMEGA Analog Comparator. Atmel AVR 8-bit Microcontrollers. Features. Introduction

APPLICATION NOTE. AVR1302: Using the XMEGA Analog Comparator. Atmel AVR 8-bit Microcontrollers. Features. Introduction APPLICATION NOTE AVR1302: Using the XMEGA Analog Comparator Atmel AVR 8-bit Microcontrollers Features Flexible input selection High-speed vs. Low-power option Selectable input hysteresis Comparator 0 Output

More information

CryptoAuth Xplained Pro

CryptoAuth Xplained Pro CryptoAuth Xplained Pro CryptoAuthentication Xplained Pro Extension Board HARDWARE USER GUIDE Atmel CryptoAuth Xplained Pro Extension Board Introduction The Atmel CryptoAuth Xplained Pro (CAXPro) Evaluation

More information

APPLICATION NOTE. AT6493: SAM C21/CAN BUS/Firmware. SMART ARM-Based Microcontroller. Introduction. Features

APPLICATION NOTE. AT6493: SAM C21/CAN BUS/Firmware. SMART ARM-Based Microcontroller. Introduction. Features APPLICATION NOTE AT6493: SAM C21/CAN BUS/Firmware SMART ARM-Based Microcontroller Introduction CAN bus is a message based protocol designed specifically for automotive applications, but is also used in

More information

AVR353: Voltage Reference Calibration and Voltage ADC Usage. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR353: Voltage Reference Calibration and Voltage ADC Usage. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR353: Voltage Reference Calibration and Voltage ADC Usage Features Voltage reference calibration. - 1.100V +/-1mV (typical) and < 90ppm/ C drift from 10 C to +70 C. Interrupt controlled voltage ADC sampling.

More information

Atmel AVR4921: ASF - USB Device Stack Differences between ASF V1 and V2. 8-bit Atmel Microcontrollers. Application Note. Features.

Atmel AVR4921: ASF - USB Device Stack Differences between ASF V1 and V2. 8-bit Atmel Microcontrollers. Application Note. Features. Atmel AVR4921: ASF - USB Device Stack Differences between ASF V1 and V2 Features Advantages Implementation differences Integration Migration from stack V1 to stack V2 8-bit Atmel Microcontrollers Application

More information

APPLICATION NOTE. ATREB233-XPRO Antenna Performance Measurement. VSWR and Radiation Pattern Measurement Report. Features

APPLICATION NOTE. ATREB233-XPRO Antenna Performance Measurement. VSWR and Radiation Pattern Measurement Report. Features APPLICATION NOTE Features ATREB233-XPRO Antenna Performance Measurement VSWR and Radiation Pattern Measurement Report VSWR (Voltage Standing Wave Ratio) Measurements Antenna Radiation Patterns Measurements

More information

Turn Power-Reducing Features into Low-Power Systems

Turn Power-Reducing Features into Low-Power Systems Turn Power-Reducing Features into Low-Power Systems Author: Andreas Eieland, Director of Product Marketing, Atmel System design used to be an exercise in optimizing speed. That has changed. Now systems

More information

AVR42788: SD Card Bootloader for XMEGA A1U. Introduction. Feature. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR42788: SD Card Bootloader for XMEGA A1U. Introduction. Feature. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR42788: SD Card Bootloader for XMEGA A1U APPLICATION NOTE Introduction The SD card bootloader implemented in this application note allows flashing image from an external SD

More information

AT07899: SAM3S/4E/4S Analog Comparator Controller (ACC) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

AT07899: SAM3S/4E/4S Analog Comparator Controller (ACC) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE SMART ARM-based Microcontrollers AT07899: SAM3S/4E/4S Analog Comparator Controller (ACC) Driver APPLICATION NOTE Introduction This driver for Atmel SMART ARM -based microcontrollers provides an interface

More information

AVR1318: Using the XMEGA built-in AES accelerator. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1318: Using the XMEGA built-in AES accelerator. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR1318: Using the XMEGA built-in AES accelerator Features Full compliance with AES (FIPS Publication 197, 2002) - Both encryption and decryption procedures 128-bit Key and State memory XOR load option

More information

AVR352: Using the Coulomb Counting ADC. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR352: Using the Coulomb Counting ADC. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR352: Using the Coulomb Counting ADC Features Modes of operation - Instantaneous and Accumulated conversions - Regular Current Condition Current measurement using shunt resistor Compensation and calibration

More information

AVR32138: How to optimize the ADC usage on AT32UC3A0/1, AT32UC3A3 and AT32UC3B0/1 series. 32-bit Microcontrollers. Application Note.

AVR32138: How to optimize the ADC usage on AT32UC3A0/1, AT32UC3A3 and AT32UC3B0/1 series. 32-bit Microcontrollers. Application Note. AVR32138: How to optimize the ADC usage on AT32UC3A0/1, AT32UC3A3 and AT32UC3B0/1 series 1 Introduction This application note outlines the steps necessary to optimize analog to digital conversions on AT32UC3A0/1,

More information

AVR32701: AVR32AP7 USB Performance. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR32701: AVR32AP7 USB Performance. 32-bit Microcontrollers. Application Note. Features. 1 Introduction AVR32701: AVR32AP7 USB Performance Features Linux USB bulk transfer performance ATSTK1000 (32-bit SDRAM bus width) ATNGW100 (16-bit SDRAM bus width) GadgetFS driver and gadgetfs-test application USB performance

More information

Atmel AVR4920: ASF - USB Device Stack - Compliance and Performance Figures. Atmel Microcontrollers. Application Note. Features.

Atmel AVR4920: ASF - USB Device Stack - Compliance and Performance Figures. Atmel Microcontrollers. Application Note. Features. Atmel AVR4920: ASF - USB Device Stack - Compliance and Performance Figures Features Compliance to USB 2.0 - Chapters 8 and 9 - Classes: HID, MSC, CDC, PHDC Interoperability: OS, classes, self- and bus-powered

More information

AVR1001: Getting Started With the XMEGA Event System. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1001: Getting Started With the XMEGA Event System. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR1001: Getting Started With the XMEGA Event System Features Flexible routing of peripheral events - 8 configurable event channels - Signal filtering Ability to control peripherals independent of CPU

More information

8-bit. Application Note. Microcontrollers. AVR041: EMC Performances Improvement for ATmega32M1. 1. Introduction

8-bit. Application Note. Microcontrollers. AVR041: EMC Performances Improvement for ATmega32M1. 1. Introduction AVR041: EMC Performances Improvement for ATmega32M1 1. Introduction Thanks to a new Atmel IC design methodology, the EMC constraints are taken into account earlier in the IC design phase. This allows a

More information

APPLICATION NOTE. Atmel AVR443: Sensor-based Control of Three Phase Brushless DC Motor. Atmel AVR 8-bit Microcontrollers. Features.

APPLICATION NOTE. Atmel AVR443: Sensor-based Control of Three Phase Brushless DC Motor. Atmel AVR 8-bit Microcontrollers. Features. APPLICATION NOTE Features Atmel AVR443: Sensor-based Control of Three Phase Brushless DC Motor Less than 5µs response time on Hall sensor output change Theoretical maximum of 1600k RPM Over-current sensing

More information

ATWINC3400. Introduction. ATWINC3400 BLE Wi-Fi Scan and Connect Services Guide USER GUIDE

ATWINC3400. Introduction. ATWINC3400 BLE Wi-Fi Scan and Connect Services Guide USER GUIDE ATWINC3400 ATWINC3400 BLE Wi-Fi Scan and Connect Services Guide USER GUIDE Introduction This document describes two Atmel ATWINC3400 BLE services that BLE peripherals, such as mobile phones, may make use

More information

APPLICATION NOTE. AT10828: DALI Slave Stack for SAM D20/D21 ATSAM D MCU. Introduction

APPLICATION NOTE. AT10828: DALI Slave Stack for SAM D20/D21 ATSAM D MCU. Introduction APPLICATION NOTE AT10828: DALI Slave Stack for SAM D20/D21 ATSAM D MCU Introduction DALI stands for Digital Addressable Lighting Interface and targets for lighting control system. There is a specified

More information

AVR998: Guide to IEC60730 Class B Compliance with AVR Microcontrollers. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR998: Guide to IEC60730 Class B Compliance with AVR Microcontrollers. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR998: Guide to IEC60730 Class B Compliance with AVR Microcontrollers APPLICATION NOTE Introduction The IEC60730 is a functional safety standard for household appliances. Microcontrollers

More information

Crystal-less USB Operation. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

Crystal-less USB Operation. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE SMART ARM-based Microcontrollers Crystal-less USB Operation APPLICATION NOTE Introduction The Atmel SMART SAM G55 microcontroller, based on the ARM Cortex -M4 core, features the USB peripheral supporting

More information

APPLICATION NOTE. Atmel AVR32848: Android Accessory Demo. 32-bit Atmel Microcontrollers. Features. Introduction

APPLICATION NOTE. Atmel AVR32848: Android Accessory Demo. 32-bit Atmel Microcontrollers. Features. Introduction APPLICATION NOTE Atmel AVR32848: Android Accessory Demo 32-bit Atmel Microcontrollers Features Control an accessory from an Android device Send data to and from an Android device to an accessory Supported

More information

AVR32120: AVR32 ABDAC audio bitstream DAC driver example. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR32120: AVR32 ABDAC audio bitstream DAC driver example. 32-bit Microcontrollers. Application Note. Features. 1 Introduction AVR32120: AVR32 ABDAC audio bitstream DAC driver example Features 16-bit stereo digital-to-analog converter. 20 Hz to 20 khz frequency range +- 2.5 db. High impedance output. 1 Introduction This application

More information

8-bit Microcontroller. Application Note. AVR292: LIN "Break-in-Data" Feature of LIN/UART Controller. Atmel LIN/UART Controller. 1.

8-bit Microcontroller. Application Note. AVR292: LIN Break-in-Data Feature of LIN/UART Controller. Atmel LIN/UART Controller. 1. AVR292: LIN "Break-in-Data" Feature of LIN/UART Controller 8-bit Microcontroller The LIN (Local Interconnect Network) is a serial communication protocol which efficiently supports the control of mechatronics

More information

Application Note. 8-bit Microcontrollers. AVR270: USB Mouse Demonstration

Application Note. 8-bit Microcontrollers. AVR270: USB Mouse Demonstration AVR270: USB Mouse Demonstration Features Runs with AT90USB Microcontrollers at 8MHz USB Low Power Bus Powered Device (less then 100mA) Supported by any PC running Windows (98SE or later), Linux or Mac

More information

APPLICATION NOTE. Safety Management for Space Environment Application. ATmegaS128. Introduction

APPLICATION NOTE. Safety Management for Space Environment Application. ATmegaS128. Introduction APPLICATION NOTE Safety Management for Space Environment Application ATmegaS128 Introduction The aim of this document is to highlight the key parameters of the ATmegaS128 that should be handled with care

More information

USER GUIDE EDBG. Description

USER GUIDE EDBG. Description USER GUIDE EDBG Description The Atmel Embedded Debugger (EDBG) is an onboard debugger for integration into development kits with Atmel MCUs. In addition to programming and debugging support through Atmel

More information

APPLICATION NOTE. Utilizing a Digital Temperature Sensor in a DDR3 DIMM. 1. Introduction. 2. Real World Examples.

APPLICATION NOTE. Utilizing a Digital Temperature Sensor in a DDR3 DIMM. 1. Introduction. 2. Real World Examples. APPLICATION NOTE Utilizing a Digital Temperature Sensor in a DDR3 DIMM Atmel AT30TSE002B 1. Introduction Modern server grade motherboards utilize DDR3 DIMMs in their memory arrays. The server grade DDR3

More information

APPLICATION NOTE. Atmel AT04389: Connecting SAMD20E to the AT86RF233 Transceiver. Atmel SAMD20. Description. Features

APPLICATION NOTE. Atmel AT04389: Connecting SAMD20E to the AT86RF233 Transceiver. Atmel SAMD20. Description. Features APPLICATION NOTE Atmel AT04389: Connecting SAMD20E to the AT86RF233 Transceiver Description Atmel SAMD20 This application note describes a method to connect an Atmel ATSAMD20E microcontroller to an Atmel

More information

AVR1615: Atmel AVR XMEGA B1 ADC Voltmeter. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

AVR1615: Atmel AVR XMEGA B1 ADC Voltmeter. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction AVR1615: Atmel AVR XMEGA B1 ADC Voltmeter Features Atmel ATxmega128B1 microcontroller - Two Eight-channel, 12-bit, 200ksps Analog to Digital Converters Cyclic architecture Up to 200.000 samples per second

More information

APPLICATION NOTE. AT12405: Low Power Sensor Design with PTC. Atmel MCU Integrated Touch. Introduction

APPLICATION NOTE. AT12405: Low Power Sensor Design with PTC. Atmel MCU Integrated Touch. Introduction APPLICATION NOTE AT12405: Low Power Sensor Design with PTC Atmel MCU Integrated Touch Introduction A ma saved (reduced) is a mah gained the philosophical engineer The challenges for improving battery life

More information

AVR350: Xmodem CRC Receive Utility for AVR. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR350: Xmodem CRC Receive Utility for AVR. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR350: Xmodem CRC Receive Utility for AVR Features Programmable Baud Rate Half Duplex 128-byte Data Packets CRC Data Verification Framing Error Detection OverRun Detection Less than 1K Bytes of Code Space

More information

Atmel AVR291: 8MHz Internal Oscillator Calibration for USB Low Speed on Atmel ATmega32U4RC. 8-bit Atmel Microcontrollers. Application Note.

Atmel AVR291: 8MHz Internal Oscillator Calibration for USB Low Speed on Atmel ATmega32U4RC. 8-bit Atmel Microcontrollers. Application Note. Atmel AVR291: 8MHz Internal Oscillator Calibration for USB Low Speed on Atmel ATmega32U4RC Features Atmel ATmega32U4RC MCU 8MHz internal RC oscillator Temperature range: -20 C to +85 C USB low speed Adjustable

More information

Atmel AVR4903: ASF - USB Device HID Mouse Application. Atmel Microcontrollers. Application Note. Features. 1 Introduction

Atmel AVR4903: ASF - USB Device HID Mouse Application. Atmel Microcontrollers. Application Note. Features. 1 Introduction Atmel AVR4903: ASF - USB Device HID Mouse Application Features USB 2.0 compliance - Chapter 9 compliance - HID compliance - Low-speed (1.5Mb/s) and full-speed (12Mb/s) data rates Standard USB HID mouse

More information

Segment LCD1 Xplained Pro. Preface. SMART ARM-based Microcontrollers USER GUIDE

Segment LCD1 Xplained Pro. Preface. SMART ARM-based Microcontrollers USER GUIDE SMART ARM-based Microcontrollers Segment LCD1 Xplained Pro USER GUIDE Preface Atmel Segment LCD1 Xplained Pro is an extension board to the Atmel Xplained Pro evaluation platform. Segment LCD1 Xplained

More information

AVR1516: XMEGA-A1 Xplained Training - XMEGA Event system

AVR1516: XMEGA-A1 Xplained Training - XMEGA Event system AVR1516: XMEGA-A1 Xplained Training - XMEGA Event system Prerequisites Required knowledge - Basic knowledge of microcontrollers and the C programming language - Completed AVR1512: XMEGA-A1 Xplained Training

More information

AT03265: SAM D10/D11/D20/D21/R/L/C EEPROM Emulator (EEPROM) Service. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

AT03265: SAM D10/D11/D20/D21/R/L/C EEPROM Emulator (EEPROM) Service. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE SMART ARM-based Microcontrollers AT03265: SAM D10/D11/D20/D21/R/L/C EEPROM Emulator (EEPROM) Service APPLICATION NOTE Introduction This driver for Atmel SMART ARM -based microcontrollers provides an emulated

More information

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

AVR1315: Accessing the XMEGA EEPROM. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR1315: Accessing the XMEGA EEPROM Features I/O-mapped access Memory-mapped access Split erase and write operations supported Efficient page-oriented access Driver source code included 1 Introduction

More information

USER GUIDE. Atmel Ethernet1 Xplained Pro. Preface

USER GUIDE. Atmel Ethernet1 Xplained Pro. Preface USER GUIDE Atmel Ethernet1 Xplained Pro Preface Atmel Ethernet1 Xplained Pro is an extension board to the Atmel Xplained Pro evaluation platform. The board enables the user to experiment with Ethernet

More information

AVR305: Half Duplex Compact Software UART. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR305: Half Duplex Compact Software UART. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR305: Half Duplex Compact Software UART Features 32 Words of Code, Only Handles Baud Rates of up to 38.4 kbps with a 1 MHz XTAL Runs on Any AVR Device Only Two Port Pins Required Does Not Use Any Timer

More information

USER GUIDE. Atmel MEMS MIC Xplained Pro. Preface

USER GUIDE. Atmel MEMS MIC Xplained Pro. Preface USER GUIDE Atmel MEMS MIC Xplained Pro Preface Atmel MEMS MIC Xplained Pro is an extension board to the Atmel Xplained Pro evaluation platform. It is designed to acquire audio data through two microphones

More information

AVR4013: picopower Basics. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR4013: picopower Basics. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR4013: picopower Basics Features Sleep modes PRR registers Oscillator calibration USART 1 Introduction In this demonstration we will show you how to extend the battery life of our application by multiple

More information

APPLICATION NOTE. RF System Architecture Considerations ATAN0014. Description

APPLICATION NOTE. RF System Architecture Considerations ATAN0014. Description APPLICATION NOTE RF System Architecture Considerations ATAN0014 Description Highly integrated and advanced radio designs available today, such as the Atmel ATA5830 transceiver and Atmel ATA5780 receiver,

More information

AVR1506: Xplain training - XMEGA clock system 8-bit Microcontrollers Application Note Prerequisites 1 Introduction

AVR1506: Xplain training - XMEGA clock system 8-bit Microcontrollers Application Note Prerequisites 1 Introduction AVR1506: Xplain training - XMEGA clock system Prerequisites Required knowledge Basic knowledge of microcontrollers and the C programming language Completed AVR1500 Xplain Training XMEGA Basics Software

More information

AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS

AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS AVR1309: Using the XMEGA SPI Features Introduction to SPI and the XMEGA SPI module Setup and use of the XMEGA SPI module Implementation of module drivers Polled master Interrupt controlled master Polled

More information

Configuration environment (CE) for the Atmel ATSHA204 and the Atmel ATAES132 CryptoAuthentication device Atmel ATSHA204 device demonstration

Configuration environment (CE) for the Atmel ATSHA204 and the Atmel ATAES132 CryptoAuthentication device Atmel ATSHA204 device demonstration Application Note Atmel Crypto Evaluation Studio Overview Features Configuration environment (CE) for the Atmel ATSHA204 and the Atmel ATAES132 CryptoAuthentication device Atmel ATSHA204 device demonstration

More information

APPLICATION NOTE. AT89LP ADC Implementation. 8 Bit Atmel Microcontrollers. Features. Introduction. Analog To Digital Converter

APPLICATION NOTE. AT89LP ADC Implementation. 8 Bit Atmel Microcontrollers. Features. Introduction. Analog To Digital Converter APPLICATION NOTE AT89LP ADC Implementation 8 Bit Atmel Microcontrollers Features Initializes ADC for 8-bit, Single Ended Mode Application to all AT89LP Microcontrollers with an ADC Module Source Code Provided

More information

AVR1504: Xplain training - XMEGA Event system. 8-bit Microcontrollers. Application Note. Prerequisites. 1 Introduction

AVR1504: Xplain training - XMEGA Event system. 8-bit Microcontrollers. Application Note. Prerequisites. 1 Introduction AVR1504: Xplain training - XMEGA Event system Prerequisites Required knowledge Basic knowledge of microcontrollers and the C programming language Completed AVR1500: Xplain training XMEGA Basics Recommended

More information

AVR1600: Using the XMEGA Quadrature Decoder. 8-bit Microcontrollers. Application Note. Features. 1 Introduction. Sensors

AVR1600: Using the XMEGA Quadrature Decoder. 8-bit Microcontrollers. Application Note. Features. 1 Introduction. Sensors AVR1600: Using the XMEGA Quadrature Decoder Features Quadrature Decoders 16-bit angular resolution Rotation speed and acceleration 1 Introduction Quadrature encoders are used to determine the position

More information

AT13722: USB Dual Role Implementation on SAM V7x E7x S7x. Introduction. References. SMART ARM-based Microcontrollers APPLICATION NOTE

AT13722: USB Dual Role Implementation on SAM V7x E7x S7x. Introduction. References. SMART ARM-based Microcontrollers APPLICATION NOTE SMART ARM-based Microcontrollers AT13722: USB Dual Role Implementation on SAM V7x E7x S7x APPLICATION NOTE Introduction The USB OTG (On-The-Go) is an interface to communicate with portable USB devices.

More information

Run Blazingly Fast Algorithms with Cortex-M7 Tightly Coupled Memories

Run Blazingly Fast Algorithms with Cortex-M7 Tightly Coupled Memories Run Blazingly Fast Algorithms with Cortex-M7 Tightly Coupled Memories Authors: Jacko Wilbrink, Senior Director, Product Marketing, Atmel Lionel Perdigon, Product Marketing Manager, Atmel The ARM Cortex

More information

Choosing a MCU for your next design; 8 bit or 32 bit?

Choosing a MCU for your next design; 8 bit or 32 bit? Choosing a MCU for your next design; 8 bit or 32 bit? Author: Ingar Fredriksen, MCU marketing director, Atmel and Pal Kastnes, MCU Applications Staff Engineer, Atmel The rise in popularity of 32-bit MCU

More information

AVRISP mkii. Features. Programmers and Debuggers USER GUIDE

AVRISP mkii. Features. Programmers and Debuggers USER GUIDE Programmers and Debuggers AVRISP mkii USER GUIDE Features Atmel Studio compatible Supports all Atmel AVR devices with ISP, PDI, or TPI interface Programs both flash and EEPROM Supports fuses and lock bit

More information

AVR311: Using the TWI Module as I2C Slave. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR311: Using the TWI Module as I2C Slave. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR311: Using the TWI Module as I2C Slave APPLICATION NOTE Introduction The Two-wire Serial Interface (TWI) is compatible with Philips I 2 C protocol. The bus allows simple,

More information

AVR2022: AT86RF231 - Software Programming Model. Application Note. Features. 1 Introduction

AVR2022: AT86RF231 - Software Programming Model. Application Note. Features. 1 Introduction AVR2022: AT86RF231 - Software Programming Model Features AT86RF231 programming reference Message Sequence Charts with code examples 1 Introduction The AT86RF231 Software Programming Model (SWPM) shall

More information

APPLICATION NOTE. Atmel AVR1021: Migration from ATxmega64A4/32A4/16A4 to ATxmega64A4U/32A4U/16A4U. Atmel AVR XMEGA. Features.

APPLICATION NOTE. Atmel AVR1021: Migration from ATxmega64A4/32A4/16A4 to ATxmega64A4U/32A4U/16A4U. Atmel AVR XMEGA. Features. APPLICATION NOTE Atmel AVR1021: Migration from ATxmega64A4/32A4/16A4 to ATxmega64A4U/32A4U/16A4U Features Enhancement and added functions Memories System clock and clock options Reset source I/O ports

More information

AVR32934: EVK1104AU Getting Started Guide. 32-bit Atmel Microcontrollers. EVK1104AU Getting Started Guide. Features.

AVR32934: EVK1104AU Getting Started Guide. 32-bit Atmel Microcontrollers. EVK1104AU Getting Started Guide. Features. AVR32934: EVK1104AU Getting Started Guide Features Powering up the board Preparing the board for audio playback Playing music 1 Introduction The EVK1104AU is a reference design and development system for

More information