Click here to load reader
Sep 01, 2018
Embedded Systems 1 22.11.2016
HS Dsseldorf (c) U.Schaarschmidt 1
Embedded Systems I
Ulrich Schaarschmidt
FH Dsseldorf, WS 2016/17
Themen am 22.11.2016: 8/16 Bit Mikrocontroller von Atmel XMEGA
neue Baugruppen (z.B. ADC, DMA, DAC) anhand von
Beispielen (1. Teil)
Bitte OHP-/Tafel-Notizen selbst mitschreiben! ES1_16_V7
22.11.2016 (c) U.G. Schaarschmidt, HS D 2
Literaturhinweise
Inneltek, nn.:
Atmel AVR XMEGA
Workshop am 05.11.09
Atmel, nn.:
Atmel Traning: XMEGA Basics
Workshop am 05.11.09
Atmel, nn.:
Atmel Training DMAC
Workshop am 05.11.09
Atmel, nn.:
Atmel Traning: XMEGA Event System Hands-on
Workshop am 05.11.09
Atmel, nn.:
AVR_AVR32_ Quick Reference Guide.pdf
Embedded Systems 1 22.11.2016
HS Dsseldorf (c) U.Schaarschmidt 2
22.11.2016 (c) U.G. Schaarschmidt, HS D 3
Literaturhinweise
Atmel, nn.:
Atmel AVR XMEGA A Manual
Atmel Datenblatt
Atmel, nn.: AVR XMEGA (TM ) PMIC Introduction
XMEGA Training: Programmable Multilevel Interrupt Controller
Atmel, nn.:
Getting Started With the XMEGA Event System
Atmel AN AVR1001
Atmel, nn.:
AVR XMEGA Analog to Digital Converter Introduction
XMEGA Training: Analog to Digital Converter (ADC)
Atmel, nn.: XMEGA-ADC-Hands-on.pdf
Quellenhinweise
Cullen, Gerard; Editor, Staff of Geist Technology:
Low-Cost Web Servers (Web-Enable Almost Anything for Almost
Nothing)
www.geisttek.com
www.atmel.com/dyn/products/datasheets.asp?family_id=682
http://de.wikipedia.org/wiki/Atmel_AVR32
http://www.avrfreaks.net/wiki/
http://www.avrtv.com/2007/06/29/avrtv-special-002/
http://myavr.de/
http://www.t2-project.org/architectures/avr32/?architectures/avr32.html
Tanenbaum, Andrew S.: Computerarchitektur; 5. Aufl. 2006 Pearson
Studium
22.11.2016 (c) U.G. Schaarschmidt, HS D 4
http://www.geisttek.com/http://www.atmel.com/dyn/products/datasheets.asp?family_id=682http://de.wikipedia.org/wiki/Atmel_AVR32http://www.avrfreaks.net/wiki/http://www.avrtv.com/2007/06/29/avrtv-special-002/http://www.avrtv.com/2007/06/29/avrtv-special-002/http://www.avrtv.com/2007/06/29/avrtv-special-002/http://www.avrtv.com/2007/06/29/avrtv-special-002/http://www.avrtv.com/2007/06/29/avrtv-special-002/http://myavr.de/http://www.t2-project.org/architectures/avr32/?architectures/avr32.htmlhttp://www.t2-project.org/architectures/avr32/?architectures/avr32.htmlhttp://www.t2-project.org/architectures/avr32/?architectures/avr32.html
Embedded Systems 1 22.11.2016
HS Dsseldorf (c) U.Schaarschmidt 3
Spezielle Atmel - Websites
http://www.atmel.com/avr
Selection Guides, Data Sheets and Errata Sheets
Application Notes and Reference Library
Atmel and Third Party ToolsS
Software, User Guides
Consultants, Distributors and Atmel Representatives
http://support.atmel.no
Official Atmel MCU technical support center with FAQ and email notification
service
http://www.avrtv.com
Official AVR podcasts
http://www.avrfreaks.net
AVR Experts Discussion Forum, Selection Guides for Tools and Products, Third
Party Tools Information, FAQs
22.11.2016 (c) U.G. Schaarschmidt, HS D 5
Xplain evaluation board
ATxmega128A1
Switches (8x)
LEDs (8x)
32kHz RTC crystal
NTC resistor
Speaker
Potmeter
64Mbit SDRAM
4Mbit Dataflash
AT90USB1287
Gateway to USB
JTAG connector
USB-powered
22.11.2016 6 (c) U.G. Schaarschmidt, HS D
Embedded Systems 1 22.11.2016
HS Dsseldorf (c) U.Schaarschmidt 4
AVR XMEGA Key Benefits
picoPower technology for ultra low power consumption
True 1.6 volt operation and CPU speed up to 32 MHz
Event System and DMA Controller
High speed, high resolution 12-bit ADC and DAC
Crypto engine, Timers/Counters and fast
communication interfaces
Accurate and flexible Clock System with dynamic clock
switching
22.11.2016 (c) U.G. Schaarschmidt, HS D 7
Einige Key Benefits
herausgehoben und erlutert
Pico Power wird auf den folgenden Folien
erlutert.
DMA -> Direct Memory Access direkter
Zugriff auf das Speichersystem OHNE die
CPU zu belasten (d.h., dass die CPU
schlafen (Energie sparen) oder etwas
ganz anderes machen/rechnen kann).
22.11.2016 (c) U.G. Schaarschmidt, HS D 8
Embedded Systems 1 22.11.2016
HS Dsseldorf (c) U.Schaarschmidt 5
DMA direct memory access
22.11.2016 (c) U.G. Schaarschmidt, HS D 9
DMA-Controller
22.11.2016 (c) U.G. Schaarschmidt, HS D 10
[ http://www.atmel.com/products/microcontrollers/avr/xmega_technical_details.aspx ]
http://www.atmel.com/products/microcontrollers/avr/xmega_technical_details.aspxhttp://www.atmel.com/products/microcontrollers/avr/xmega_technical_details.aspxhttp://www.atmel.com/products/microcontrollers/avr/xmega_technical_details.aspx
Embedded Systems 1 22.11.2016
HS Dsseldorf (c) U.Schaarschmidt 6
Xmega - Event-System
22.11.2016 (c) U.G. Schaarschmidt, HS D 11
[AVR1005: Getting started with XMEGA]
Event-System
22.11.2016 (c) U.G. Schaarschmidt, HS D 12
8 Event Routing Channels
CPU and DMA independent operation
Embedded Systems 1 22.11.2016
HS Dsseldorf (c) U.Schaarschmidt 7
picoPower - Best MCU power budget
Atmels picoPower technology reduces
power consumption in both sleep and
active mode. With picoPower technology
the embedded designer can reduce the
applications power consumption while
maintaining performance.
22.11.2016 (c) U.G. Schaarschmidt, HS D 13
True 1.6 Volt Operation
AVR XMEGA offers true 1.6 Volt
operation. All functions including ADC,
DAC, Flash- and EEPROM memories are
all operating down to 1.6V. This allows
safe operation directly from a 1.8V 10%
power supply. It also enables deeper
battery discharge to increase battery life.
22.11.2016 (c) U.G. Schaarschmidt, HS D 14
Embedded Systems 1 22.11.2016
HS Dsseldorf (c) U.Schaarschmidt 8
Minimized Leakage Current Ultra
Low Power 32 kHz Crystal Oscillator
AVR XMEGA leakage current is only 100
nA while still maintaining full RAM and
register retention. This reduces power
consumption for applications spending
most time in sleep mode.
AVR XMEGAs Real Time Counter
consumes only 500 nA while running from
a 32.768 kHz Crystal Oscillator.
22.11.2016 (c) U.G. Schaarschmidt, HS D 15
AVR XMEGA
TM Demo
SRAM
Buffer
Timer Trigger
Event System Event Channel 0 Event Channel 1
... Event Channel 7
PORT
DMA
Trigger
Source
A timer triggers a DMA transfer from a SRAM buffer to
a port in an endless loop without CPU load.
22.11.2016 16 (c) U.G. Schaarschmidt, HS D
Embedded Systems 1 22.11.2016
HS Dsseldorf (c) U.Schaarschmidt 9
Stromverbrauch durch differenzierte
Sleep-Modes reduzieren
Minimized Leakage Current
AVR XMEGA leakage current is only 100 nA while still maintaining
full RAM and register retention. This reduces power consumption
for applications spending most time in sleep mode.
Ultra Low Power 32 kHz Crystal Oscillator
AVR XMEGAs Real Time Counter consumes only 500 nA while
running from a 32.768 kHz Crystal Oscillator.
Sleep modes
XMEGA has five different sleep modes to turn off unused modules
and reduce the power consumption in the application. Many
sleep modes makes it easy to find the perfect fit for the application.
The granularity is further enhanced by the innovative Power
Reduction Register technology.
22.11.2016 (c) U.G. Schaarschmidt, HS D 17
Stromverbrauch durch differenzierte
Sleep-Modes reduzieren
in idle sleep mode all peripherals operate while the CPU is
sleeping to reduce the power consumption. with up to 50%, while
event handling, communication and data input/output still run.
in power-save mode, XMEGA uses 650nA to run the Real Time
Counter and have full SRAM and register retention offering industry
leading low power numbers. Enabling Watchdog and Brown Out
adds only 1uA.
in power-down mode, XMEGA uses only 100nA with SRAM and
register retetion, and 5us wake-up time from pin change on any i/O
pin and TWi address match.
Standby and extended standby sleep modes are identical to
power-down and power-save, except the external oscillator is kept
running to reduce wake-up time.
22.11.2016 (c) U.G. Schaarschmidt, HS D 18
Embedded Systems 1 22.11.2016
HS Dsseldorf (c) U.Schaarschmidt 10
XMEGA Betriebsmodi
zum Energiesparen
22.11.2016 (c) U.G. Schaarschmidt, HS D 19
XMEGA Betriebsmodi
zum Energiesparen
22.11.2016 (c) U.G. Schaarschmidt, HS D 20
Embedded Systems 1 22.11.2016
HS Dsseldorf (c) U.Schaarschmidt 11
XMEGA Betriebsmodi
zum Energiesparen
22.11.2016 (c) U.G. S