VADC Versatile Analog to Digital Converter. XMC Microcontrollers August 2014



Similar documents
DAC Digital To Analog Converter

XMC in Motor Control Applications. XMC Microcontrollers January 2015

AN4646 Application note

Atmel Norway XMEGA Introduction

MONOCHROME RGB YCbCr VIDEO DIGITIZER

Embedded Component Based Programming with DAVE 3

AN LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode

Single Phase Two-Channel Interleaved PFC Operating in CrM

Chapter 13. PIC Family Microcontroller

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

USER GUIDE EDBG. Description

XMC1000 / XMC4000 Motor Control Application Kit

Single Phase Two-Channel Interleaved PFC Operating in CrM Using the MC56F82xxx Family of Digital Signal Controllers

Low-Power Pin Sampling Techniques Using Kinetis L Series

TLI4946. Datasheet TLI4946K, TLI4946-2K, TLI4946-2L. Sense and Control. May 2009

About this document. 32-bit Microcontroller Series for Industrial Applications AP Application Note

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

Freescale Semiconductor, Inc. Product Brief Integrated Portable System Processor DragonBall ΤΜ

DEVELOPMENT OF DEVICES AND METHODS FOR PHASE AND AC LINEARITY MEASUREMENTS IN DIGITIZERS

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

LLRF. Digital RF Stabilization System

Hello, and welcome to this presentation of the STM32L4 reset and clock controller.

ontroller LSI with Built-in High- Performance Graphic Functions for Automotive Applications

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

Microcontroller Code Example Explanation and Words of Wisdom For Senior Design

Scanning Comparator (ScanComp) Features. General Description. Input/Output Connections. When to Use a Scanning Comparator. clock - Digital Input* 1.

Serial Communications

AVR125: ADC of tinyavr in Single Ended Mode. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

HT46R14A Single Phase AC Induction Motor Frequency Converter Application

PAC52XX Clock Control Firmware Design

MANUAL FOR RX700 LR and NR

This Errata Sheet describes product deviations with respect to the user documentation listed below.

STM32 F-2 series High-performance Cortex-M3 MCUs

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

Measuring Resistance Using Digital I/O

POCKET SCOPE 2. The idea 2. Design criteria 3

AVR1301: Using the XMEGA DAC. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR126: ADC of megaavr in Single Ended Mode. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AN2680 Application note

DS1621 Digital Thermometer and Thermostat

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

76-77 GHz RF Transmitter Front-end for W-band Radar Applications

Application Note, Rev.1.0, September 2008 TLE8366. Application Information. Automotive Power

AN3252 Application note

Analog to Digital Converter

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Tire pressure monitoring

Bluetooth Audio Data Transfer between Bluetooth chipset (PMB6752&PMB6625) and TriCore Host TC1920

Microcontroller-based experiments for a control systems course in electrical engineering technology

Objectives. Lecture 4. How do computers communicate? How do computers communicate? Local asynchronous communication. How do computers communicate?

X M C V e r s a t i l e A n a l o g t o D i g i t a l C o n v e r t e r ( V A D C ) About this document

DS1104 R&D Controller Board

The modular concept of the MPA-3 system is designed to enable easy accommodation to a huge variety of experimental requirements.

Surveillance System Using Wireless Sensor Networks

AC/DC Power Supply Reference Design. Advanced SMPS Applications using the dspic DSC SMPS Family

The Autolab control command is located in the Measurement General group of commands.

XC83x AP Application Note. Microcontrollers. intouch Application Kit - LED Matrix Display V1.0,

Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the

Application Note, V 2.2, Nov AP32091 TC1766. Design Guideline for TC1766 Microcontroller Board Layout. Microcontrollers. Never stop thinking.

Lesson 16 Analog-to-Digital Converter (ADC)

Flexible Active Shutter Control Interface using the MC1323x

MP3 Player CSEE 4840 SPRING 2010 PROJECT DESIGN.

ABB i-bus EIB Logic Module LM/S 1.1

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015

Production Flash Programming Best Practices for Kinetis K- and L-series MCUs

RGB Wall Washer Using ILD4035

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Security & Chip Card ICs SLE 44R35S / Mifare

The new 32-bit MSP432 MCU platform from Texas

AND9035/D. BELASIGNA 250 and 300 for Low-Bandwidth Applications APPLICATION NOTE

Non-Isolated Analog Voltage/Current Output module IC695ALG704 provides four configurable voltage or current output channels. Isolated +24 VDC Power

Chapter 11 I/O Management and Disk Scheduling

AN2658 Application note

Hello, and welcome to this presentation of the STM32 SDMMC controller module. It covers the main features of the controller which is used to connect

Best Practises for LabVIEW FPGA Design Flow. uk.ni.com ireland.ni.com

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

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

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Lab Experiment 1: The LPC 2148 Education Board

Implementing SPI Communication Between MSP430 G2452 and LTC ADC

Glitch Free Frequency Shifting Simplifies Timing Design in Consumer Applications

find model parameters, to validate models, and to develop inputs for models. c 1994 Raj Jain 7.1

M.S Ramaiah School of Advanced Studies - Bangalore. On completion of this session, the delegate will understand and be able to appriciate:

I2C PRESSURE MONITORING THROUGH USB PROTOCOL.

Analog-to-Digital Converters

DS1821 Programmable Digital Thermostat and Thermometer

Designing an Induction Cooker Using the S08PT Family

APPLICATION. si32library. Callback CMSIS HARDWARE. Figure 1. Firmware Layer Block Diagram

How To Use An Ionsonic Microscope

AVR1321: Using the Atmel AVR XMEGA 32-bit Real Time Counter and Battery Backup System. 8-bit Microcontrollers. Application Note.

Application Note, V1.0, Mar 2007 AP16098 XC164. Main Control for 5KVA Single-Phase On-Line UPS Reference Design with XC164CM.

CSE2102 Digital Design II - Topics CSE Digital Design II

Intel architecture. Platform Basics. White Paper Todd Langley Systems Engineer/ Architect Intel Corporation. September 2010

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

Building a Basic Communication Network using XBee DigiMesh. Keywords: XBee, Networking, Zigbee, Digimesh, Mesh, Python, Smart Home

Bandwidth Calculations for SA-1100 Processor LCD Displays

AN3998 Application note

CS4525 Power Calculator

Computer Organization and Components

Febex Data Acquisition System

Transcription:

Versatile Analog to Digital Converter XMC Microcontrollers August 2014

TRIGGER AND GATING EVENT GENERATION Versatile Analog to Digital Converter Highlights QUEUE SOURCE SCAN SOURCE ARBITRATION BCKGND SOURCE Group3 Group2 Group1 Group 0 The converts analog signals into digital values. Up to 12 bits resolution at 1 MSamples/sec enables highly accurate signal measurement for currents, voltages, temperatures, etc ch7 ch6 ch5 ch4 ch3 ch2 ch1 ch0 8:1 Sample A/D RESULT HANDLING Key Feature _Block_Diagram_Basic.jpg Flexible sequencing scheme 2 independent sample and hold unit Triggering and gating conversions Customer Benefits 3 sophisticated and flexible request sources for requesting conversions Simultaneous sampling Triggering and gating conversions 2

Flexible sequencing (1/2) 3 request sources allows a sophisticated sequencing Queue source up to 8 channels in 8 stages FIFO with any channel combination possible Refill, source event generation and trigger can be configured individually for any entry in the queue Queue Source Queue Source ReFill Trigger Channel Selection Trigger Interrupt ReFill Channel SelectionTrigger I none none none none ch1 ch1 ch5 ch3 ch0 none none none ch5 ch3 ch1 ch1 TA TB 3

Flexible sequencing (2/2) Scan source up to 8 channels. Converts from higher number selected until lowest channel number selected. Background source a scan source that is able to request conversions in all channels in the microcontroller. It is typically the lowest priority source idle Trigger Scan Scan Source Channel Selection ch7 ch6 ch5 ch4 ch3 ch2 ch1 ch0 Scan Trigger Interrupt Cancel-inject Background Trigger Source Channel Selection ch15 ch14 ch13 ch12 ch4 ch3 ch2 ch1 ch0 Scan repeat ch7 ch4 ch3 idle ch7 ch4 ch2 ch1 ch1 ch2 ch1 ch5 ch4 Trigger Scan Trigger Queue Trigger Background Source Trigger Interrupt ch3 ch6 4

2 independent sample and hold units The arbitration winner is sampled in the A/D. The sequencer will recognize the group and will allocate in the corresponding result handling. Channel Number Page-14.jpg Sample GROUP 0... Sample and Hold Unit Result Handling Event Generation Queue Src Scan Src Arbiter A/D Sequen cer Background Src... Sample and Hold Unit Result Handling Event Generation Scan Src Queue Src GROUP 1 Arbiter Sample Channel Number 5

Triggering and gating conversions Conversion can be triggered by external events, continuously or by software events Full connectivity to other modules for application relevant triggering-gating One signal can trigger different groups to allow simultaneous sampling A gating mechanism hinders the triggering of a conversion as long as the gating signal is not released 6

POSIF Event Generation DAC Gating LEDTS System Integration DMA LEDTS NVIC ERU CCU8 CCU4 POSIF ERU BCCU LEDTS Trigger Gating Target applications Motor Control Intelligent Lighting Power Conversion General Purpose Event Generation NVIC CCU4 POSIF ERU BCCU XMC1100 XMC1200 XMC1300 * *: only background source available The is intelligently connected to other peripherals in the microcontroller, such as CCU8, BCCU or NVIC for triggering-gating on the input side and event generation such as interrupt events in the output side. This provides a perfect starting point for real time applications where the hardware triggering of conversions or signalization of events (i.e. overcurrents) have to happen in a deterministic way with minimum jitter 7

Application Example Fast Compare Fast Compare Mode Overview Fast compare mode generates a fast result of a single bit. This bit indicates if the result is above or below a certain preprogrammed reference value. Some hysteresis (delta) can be built around this threshold in order to avoid oscillations In Brief Fast comparison of an analog voltage with a threshold 8

Application Example Limit Checker Overview The limit checker permits the control of an analog signal so that when the signal increases or decreases above or below some configurable value, an event can be trigger and an action can be executed. In Brief As an example, a limit checker can detect an overvoltage and generate a stop signal to a timer to avoid damage on the hardware Place some boundaries to create 3 bands in the analog range in order to control the result limits. 9

Application Example External multiplexers Overview The EMUX controller is able to provide the selecting signals for an external multiplexer. This is synchronized to channel conversion so when the EMUX channel (CH3 in picture) is converted, the EMUX controller detects this and executes a configurable sequencing of the selected signals In Brief includes an External Multiplexer controller 10

Application Example Blanking time Overview Some signals might present oscillations after stepping to a different value. During this oscillation, the value sampled by a continuous converting, is not relevant and can be gated through a timer until the signal is settled In Brief Gate a continuous running conversion when the information is not relevant for the application 11

Application Example FIFO on high sampling rate conversions Overview In Brief Use a FIFO structure to store results in a safe way Some applications require extreme fast conversions. On the other hand, the CPU load (control loop for example) might load the CPU in a way that can limit how fast the results of the conversions are read. In these cases, the FIFO result structure will help to conserve results safely, avoiding overwriting, without having to force the CPU to read or slow down the converting rate. Up to a 16 stages FIFO can be built by means of concatenating result registers. Data reduction mechanisms (filtering, accumulation) as well as event generation is still valid and applicable. 12

Application Example Synchronous conversions (1/2) Overview In many occasions, algorithms request the usage of several analog values that are measured at the same time. In Brief Sample several signals synchronously. As an example, one could compute the power, for example at a load, by multiplying the current and voltage on it. This calculation would only make sense in case both signals were measured at the exact same point in time. XMC1000 allows to measure 2 signals in parallel. The master will request a conversion in its groups. This will automatically lead the request of the same channel number in the slave group. The rest of the features can be used such as result handling, event generation, limit check, etc. 13

Application Example Synchronous conversions (2/2) CR 2 CR 1 CCU8x Timer Trigger Trigger Tr Tr Tr Tr Tr Conversion Sequence Conversion Sequence Conversion Sequence Conversion Sequence Conversion Sequence Conversion Sequence Conversion Sequence Queue Source Master Group Slave Group Rf Channel3 Channel3 Rf Channel4 Channel4 Tr Rf Channel0 Channel0 Synchronous conversions: possible sequencing 14

Table of contents 1 Result post processing 2 Service request generation 3 Flexible reference voltage scheme 4 Input channel gain 5 Safety features 15

Result post processing Up to 16 result registers per group for 8 channels Additional Global result register accessible from any group in the microcontroller A data reduction mechanism can execute filtering (FIRs, IIRs), differentiation, or accumulation without loading the CPU Wait for read mode blocks new writes in a result register before the content has been read to avoid loss of data Result events signalize the existence of a new result 16

Service request generation (1/2) 3 different types of service requests can be generated: Request source event: channel converted in queue source or sequence finished in a scan source Channel event: indicates a channel conversion has finished or in case of limit checker, indicates the corresponding event Result event: a new result is available The events can be linked to a NVIC node for code execution or to a signal for connectivity to other peripherals 17

To Other Peripherals Service request generation (2/2) Queue Req. Source Scan Req. Source SOURCE EVENTS 2 different kind of request lines are available: Channel0 Channel1 Channel7 Result0 Result1 Result2 _GLOBAL GLOBRES CHANNEL EVENTS RESULT EVENTS GLOBAL RESULT EVENT _G3 _G2 _G1 _G0 G0SR[0...3] G1SR[0...3] G3SR[0...3] C0SR[0...3] Group specific are only accessible from the group where the event is generated. Background source events are not included here. Common request lines. Can be accessed from any group and even from the background source events. GLOBAL SOURCE EVENT Page-2.jpg 18

Flexible reference voltage scheme Use a flexible reference scheme: internal or external reference possible. Use alternate reference to have an additional reference level for special measurements Keep 5 V ADC reference even when supplying XMC with lower voltages (1.8 V till 3 V) 19

Input Channel Gain A gain stage can be applied to all analog channels in XMC to compensate low amplitude signals. The input voltage is multiplied then by a value 1, 3, 6, 12 that can be set differently for different channels 20

Safety features offers a set of safety functionalities including: Broken wire detection for detecting the malfunction of a tracewire Multiplexer diagnostics can test the existing connection between pins and the internal converter input 21

Support material: Collaterals and Brochures Product Briefs Selection Guides Application Brochures Presentations Press Releases, Ads www.infineon.com/xmc Technical Material Application Notes Technical Articles Simulation Models Datasheets, MCDS Files PCB Design Data www.infineon.com/xmc Kits and Boards DAVE TM Software and Tool Ecosystem Videos Technical Videos Product Information Videos Infineon Media Center XMC Mediathek Contact Forums Product Support Infineon Forums Technical Assistance Center (TAC) 22

Disclaimer The information given in this training materials is given as a hint for the implementation of the Infineon Technologies component only and shall not be regarded as any description or warranty of a certain functionality, condition or quality of the Infineon Technologies component. Infineon Technologies hereby disclaims any and all warranties and liabilities of any kind (including without limitation warranties of noninfringement of intellectual property rights of any third party) with respect to any and all information given in this training material. All the images used in the trainings are free for commercial use or free for use with attribution and were designed by Freepik.