MCU Software Development- A Step by Step Guide (Using a Real Eval Board) Class 2: An Introduction to the Atmel AVR XMEGA and Explained Eval Board 9/23/2014.

Slides:



Advertisements
Similar presentations
MC68HC11 System Overview. System block diagram (A8 version)
Advertisements

Lizard Labs Peripheral Reflex System
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
Oscilloscope Watch Teardown. Agenda History and General overview Hardware design: – Block diagram and general overview – Choice of the microcontroller.
Getting Started with a Cortex-M3 Board
Asst. Prof. Dr. Alper ŞİŞMAN
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
ATMEL AVR 8 bit RISC MICROCONTROLLERS
Introduction to the Orbit Edu Board Ahmad Rahmati Teaching Assistant, ELEC424 Rice Efficient Computing Group Sep 12, 2007.
Silicon Labs ToolStick Development Platform
The 6713 DSP Starter Kit (DSK) is a low-cost platform which lets customers evaluate and develop applications for the Texas Instruments C67X DSP family.
Holtek 32-bit MCU Promotion
NetBurner MOD 5282 Network Development Kit MCF 5282 Integrated ColdFire 32 bit Microcontoller 2 DB-9 connectors for serial I/O supports: RS-232, RS-485,
Arduino Josh Villbrandt February 4, Digital Circuits Analog versus digital – What’s the difference? – How to represent an analog signal in a computer?
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
Electronics for PS and LHC transformers Grzegorz Kasprowicz Supervisor: David Belohrad AB-BDI-PI Technical student report.
System Clocks.
1 AVR Session 2 Master : Dr.jafari Authors: M.H Edrisi, hadi.edrisi yyyy aaaa hhhh oooo oooo.... cccc oooo mmmm.
Clock Options and Sleep Modes. Clock Sources Flash Fuse bits can be programmed to choose one of the following Clock sources: 1. External RC Osc. f = 1/(3RC).
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
Renesas Electronics America © 2011 Renesas Electronics Corporation. All rights reserved. V850/Jx4 Series Ultra Low Power 32 bit MCUs March 2012.
ATMEL AVR 8 bit RISC MICROCONTROLLERS a general comparison.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
EA PROJETO EM ELETRÔNICA APLICADA Bruno Mourão Siqueira.
TI MSP430 MICROCONTROLLERS BY ADITYA PATHAK. THE MSP FAMILY Ultra-low power; mixed signal processors Widely used in battery operated applications Uses.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
AT91 Products Overview. 2 The Atmel AT91 Series of microcontrollers are based upon the powerful ARM7TDMI processor. Atmel has taken these cores, added.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
Components of a typical full-featured microcontroller.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
Case Study #1 Microcontroller System. What is a microcontroller? A microcontroller can be considered a self-contained system with a processor, memory.
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
Lizard Labs Peripheral Reflex System
Cypress Roadmap: Platform PSoC®
Popular Microcontrollers and their Selection by Lachit Dutta
Microcontrollers, Basics Tips and Tricks with PIC MCUs
Government Engg College Bhuj E. C. Engg. Department
ATMEL AVR 8 bit RISC MICROCONTROLLERS
Microcontrollers, Basics Fundamentals of Designing with Microcontrollers 16 January 2012 Jonathan A. Titus.
Microcontrollers & GPIO
Automatic human detector garbage can.
Class 1: An Introduction to MCU Software Development
Cypress Roadmap: CapSense® Controllers
DesignDRIVE Position Manager SIN/COS
‘SONAR’ using Arduino & ultrasonic distance sensor
Project Title EVM IN PIC Under the Guidance of Submitted by.
RAILWAY TRACK SNAP NOTIFICATION
Getting Started with Programmable Logic
Introduction to the Orbit Edu Board
The Arduino Microcontroller: Atmel AVR Atmega 328
Subject Name: Microcontroller Subject Code: 10ES42
Class 3: Understanding Software Development
Introduction to Microprocessors and Microcontrollers
Future Designs, Inc. Your Development Partner
ریز پردازنده. ریز پردازنده مراجع درس میکروکنترلرهای AVR برنامه نویسی اسمبلی و C محمدعلی مزیدی، سپهر نعیمی و سرمد نعیمی مرجع کامل میکروکنترلرهای AVR.
Introduction to the Atmel AVR Butterfly
Journey: Introduction to Embedded Systems
Getting the Most Out of Low Power MCUs
Designing with ARM Cortex-M4 (and a Real Dev Board)
Cypress Roadmap: CapSense® Controllers
CSCI1600: Embedded and Real Time Software
Controlling Sensors Efficiently with MCUs
MSP432™ MCUs Training Part 6: Analog Peripherals
AVR – ATmega103(ATMEL) Architecture & Summary
8051 Micro Controller.
CSCI1600: Embedded and Real Time Software
Wireless Embedded Systems
Introduction to Arduino
Presentation transcript:

MCU Software Development- A Step by Step Guide (Using a Real Eval Board) Class 2: An Introduction to the Atmel AVR XMEGA and Explained Eval Board 9/23/2014 Warren Miller

This Week’s Agenda 9/22/14 An Intro to MCU Software Development 9/23/14 An Intro to the Atmel XMEGA & Eval Bd 9/24/14 Understanding Software Development 9/25/14 Digging Deeper into the Tools 9/26/14 An Example Design- in Detail

Course Description Are you interested in learning how to develop software for MCUs? Need a refresher on the newest trends in MCU software tools? Would using a real development board as part of the learning process help? You are in luck! This class will use the Atmel AVR XMEGA Xplained evaluation kit and free downloadable software to take you step-by-step thru the modern MCU software development process.

Class #2 An Introduction to the Atmel AVR XMEGA and Explained Eval Board A quick overview of the Atmel XMEGA MCU Family A quick overview of the Atmel XMEGA A3BU Explained Eval Board This class will use the Atmel XMEGA MCU family and the associated evaluation board as an example target for our software development efforts. The interactions between the CPU and many common peripherals will set the stage for designing software efficiently with a wide range MCUs.

Todays Goals and Objectives Understand the architectural features of the Atmel XMEGA MCU Family Understand the key elements of the Atmel AVR XMEGA Eval Kit Hardware Software Example designs Getting started

Atmel XMEGA Family of MCUs A Series: High Performance B Series: LCD Control C Series: USB D Series: Low Power E Series: Small Size The Atmel AVR XMEGA A series is most performance oriented series within the family. It boasts features that cannot be found in any other series. It's perfect for the most demanding applications. The Atmel AVR XMEGA B series is first AVR XMEGA microcontroller (MCU) series to integrate a LCD controller to help reduce design complexity and lower overall system cost. The Atmel AVR XMEGA C series is the entry-level USB-enabled 8/16-bit microcontrollers within the family The Atmel AVR XMEGA D series is the entry-level 8/16-bit microcontrollers targeting power-conscious applications. The Atmel AVR XMEGA E series is the first AVR XMEGA series with 32 pins that are available in the smallest 4mm x 4mm QFN packaging targeting space constrained applications.

Atmel XMEGA CPU and Peripherals CPU and Memory DMA, Interrupt RTC, CRC Analog, Crypto Cap Touch, LCD Timer/Cntr, PWM Communications And more

ADC and DAC ADC (12 bit, 2Msps) DAC (12 bit, 1Msps) Up to 4 channels 1 or 2 per device DAC (12 bit, 1Msps) 10 mA output Pure capacitive, Resistance, Combined Atmel® AVR® XMEGA® devices employ advanced analog-to-digital converters (ADCs) that deliver both high speed and high resolution. These ADCs offer up to four conversion channels with different result registers, which can have different setup and configuration processes. This provides easier use since different software modules can access and use an ADC independently. 1 or 2 ADCs in each device 12-bit resolution Up to 2MSPS per ADC Differential and single-ended input Built-in gain stage Offset and gain correction Averaging Over-sampling and decimation Integrated temperature sensor Selected AVR XMEGA devices feature digital-to-analog converters (DACs), which provide two independent channels that can each convert up to 1MSPS. 0 – 4 DAC channels in each device Up to 1MSPS per DAC channel The DAC can drive: Pure capacitive load Pure resistive load Combined load 10 mA output drive strength The ADC and DAC can use both accurate internal and external reference options. Reference buffers inside AVR XMEGA devices eliminate the need for high output current from the external reference.

Event System and Custom Logic Inter peripheral signaling Predictable response Real-time offload Custom Logic Registers, Latches Gates, Mux Custom Protocols The Event System facilitates inter-peripheral signaling for short and 100% predictable response time. This ensures real-time control, and also offloads the CPU because each time an event is used, one interrupt with context switch is eliminated. The figure below and to the left shows the traditional approach—where the peripherals interrupt the CPU when they need to signal something. The figure below and to the right shows the AVR XMEGA approach—where the Event System offloads these tasks from the CPU. Most of the peripherals and the DMA controller are connected to the Event System. The AVR XMEGA E series features an asynchronous peripheral Event System instead. AVR XMEGA E devices feature an innovative XMEGA Custom Logic module (XCL) consisting of two independent 8-bit timers/counters and two lookup tables used for defining glue logic. It is designed to reduce bill of material (BOM) and PCB size as the XCL can replace external circuitry such as delay elements, RS-latches, D-latches, D-flip-flops logic, AND, NAND, OR, NOR, XOR, XNOR, NOT, MUX logic gates. In addition, it can, together with the USART, enable customized communication protocols.

Cap Touch and Power Supervisor Cap Touch Sensing with Qtouch Up to 64 sense channels APIs for Channels/Sensors Power Supervisor POR BOD WDT The Atmel QTouch® Library provides a simple-to-use solution for realizing touch-sensitive interfaces on AVR XMEGA devices. AVR XMEGA microcontrollers provide up to 64 sense channels for capacitive buttons, sliders and wheels. Touch sensing can be added to any application by linking the appropriate QTouch Library for the AVR XMEGA microcontroller. This is done by using a simple set of APIs to define the touch channels and sensors, and then calling the touch-sensing APIs to retrieve the channel information and determine the touch sensor states. All AVR XMEGA devices offer various dedicated functions that can and should be used to ensure safe and reliable operation. Power-on reset (POR) ensures proper power-on and power-down cycling for the device. It works when the supply voltage is very low, and makes sure the device is reset before RAM and register content is lost. Brown-out detection (BOD) monitors the supply voltage and puts the device in reset if the supply voltage drops below the required level. The voltage level to monitor is programmable to various levels between 1.6V and 3.0V, so it will match the minimum application supply voltage. This ensures that program execution does not continue when the supply voltage is too low to guarantee correct operation. The watchdog timer (WDT) monitors program operation and makes it possible to recover from program error situations such as run-away or dead-lock code. The external oscillator failure detection (XOSCFD) function monitors the external clock source and PLL, and will issue an interrupt and switch to the 2MHz internal oscillator if the clock fails. It makes it possible to safely recover from situations where the external clock source fails.

Timer/Counter and Clock/Power Mgmt Up to 8 T/Cs Up to 32 PWMs (4ns) Dead time, Fault protection Clock/Power Mgmt Internal Osc External Osc/Xtal Failure detection Run-time calibration All AVR XMEGA timer/counter modules include pulse-width modulation (PWM) and input capture functionality. There are up to eight timers/counters and 32 PWM channels in one device. Using a high-resolution extension module, it is possible to achieve PWM resolution down to 4 nS. The timers/counters also support more advanced uses that include PWM with high and low side output and dead-time insertion, as well as fault protection modes. The input capture function includes pulse width and frequency measurements, and when two 16-bit timers/counters are cascaded, this also enables 32-bit input capture. The AVR XMEGA clock system includes accurate internal oscillators, as well as external crystal and clock options. Dynamic clock switching and clock scaling can be done to tune accuracy and power consumption to fit the application needs. With a built-in external oscillator, failure detection and automatic run-time calibration of the internal oscillators, the AVR XMEGA offers a safe, reliable and flexible clock system.

Low Power Sleep Modes Active, Idle Sleep, Power Save, Power Down All AVR XMEGA timer/counter modules include pulse-width modulation (PWM) and input capture functionality. There are up to eight timers/counters and 32 PWM channels in one device. Using a high-resolution extension module, it is possible to achieve PWM resolution down to 4 nS. The timers/counters also support more advanced uses that include PWM with high and low side output and dead-time insertion, as well as fault protection modes. The input capture function includes pulse width and frequency measurements, and when two 16-bit timers/counters are cascaded, this also enables 32-bit input capture. The AVR XMEGA clock system includes accurate internal oscillators, as well as external crystal and clock options. Dynamic clock switching and clock scaling can be done to tune accuracy and power consumption to fit the application needs. With a built-in external oscillator, failure detection and automatic run-time calibration of the internal oscillators, the AVR XMEGA offers a safe, reliable and flexible clock system.

AVR XMEGA-A3BU Xplained Kit Key Features Atmel® AVR® ATxmega256A3BU microcontroller FSTN LCD display with 128x32 pixels resolution Battery backup Analog sensors Ambient light sensor Temperature sensor Analog filter Digital I/O Three mechanical buttons Two user LEDs One power LED , One status LED Four expansion headers Touch One Atmel AVR QTouch® button • Memory Atmel AVR AT45DB642D DataFlash® serial flash Footprints for external memory Key Features STM32F303VCT6 microcontroller featuring 256 KB Flash, 48 KB RAM in an LQFP100 package On-board ST-LINK/V2 with selection mode switch to use the kit as a standaloneST-LINK/V2 (with SWD connector for programming and debugging) Board power supply: through USB bus or from an external 3 V or 5 V supply voltage External application power supply: 3 V and 5 V L3GD20, ST MEMS motion sensor, 3-axis digital output gyroscope LSM303DLHC, ST MEMS system-in-package featuring a 3D digital linear acceleration sensor and a 3D digital magnetic sensor Ten LEDs: LD1 (red) for 3.3 V power on LD2 (red/green) for USB communication Eight user LEDS, LD3/10 (red), LD4/9 (blue), LD5/8 (orange) and LD6/7 (green) Two pushbuttons (user and reset) USB USER with Mini-B connector Extension header for all LQFP100 I/Os for quick connection to prototyping board and easy probing

Other Kits Xplained Pro Professional evaluation boards featuring auto-identification in Atmel Studio, on-board debugger and standardized extension connectors. Xplained Mini Ultra low-cost platform for evaluating low pin-count parts. Features on-board debugger, access to all device pins, and auto-identification in Atmel Studio.

Demo Design

For Next Time Download and Install the Design Software Review the various windows available in the IDE Run the example design Make a simple change and test it out

Additional Resources Atmel AVR XMEGA Details Web Page http://www.atmel.com/products/microcontrollers/avr/xmega_technical_details.aspx Atmel AVR XMEGA-A3BU Xplained Web Page http://www.atmel.com/tools/XMEGA-A3BUXPLAINED.aspx Order your kit from Digi-Key to follow along in the class- Optional, not a class requirement http://www.digikey.com/product-detail/en/ATXMEGAA3BU-XPLD/ATXMEGAA3BU-XPLD-ND/2770519

This Week’s Agenda 9/22/14 An Intro to MCU Software Development 9/23/14 An Intro to the Atmel XMEGA Eval 9/24/14 Understanding Software Development 9/25/14 Digging Deeper into the Tools 9/26/14 An Example Design- in Detail