ADC Description. ECE/CS 5780/6780: Embedded System Design. External Input Pin Descriptions. ADC Block Diagram

Similar documents
ADC Parameters. ECE/CS 5780/6780: Embedded System Design. Common Encoding Schemes. Two-Bit Flash ADC. Sixteen-Bit Dual Slope ADC

EE 308 Spring 2015 The MC9S12 A/D Converter

Lecture 14 Analog to Digital Conversion

Analog-to-Digital Converter. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name

Chapter 12: Analog-to-Digital Converter. EE383: Introduction to Embedded Systems University of Kentucky. Samir Rawashdeh

Menu EEL 3744 EEL A-to-D, D-to-A

Menu EEL 3744 EEL A-to-D, D-to-A, Part 2

Page 1. Midterm #2. OpAmp Review. Inverting & Non-inverting Circuits CS/ECE 6780/5780. Al Davis. Almost ubiquitous analog circuit element since ~1968

Table of Contents. The Parallel Interface Module... 3

LM8322 Mobile I/O Companion Supporting Key-Scan, I/O Expansion, PWM, and ACCESS.bus Host Interface

I2C Encoder. HW v1.2

Capstone Design Course

Review for Final Exam

EE 308 Apr. 24, 2002 Review for Final Exam

ANLAN203. KSZ84xx GPIO Pin Output Functionality. Introduction. Overview of GPIO and TOU

Lab 10. Speed Control of a D.C. motor

P89LPC935 ADC/DAC Tutorial

TFA General description. 2. Features. BTL stereo Class-D audio amplifier with I 2 S input. 2.1 General features

Microcontroller: Timers, ADC

EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER

AN3137 Application note

The rangefinder can be configured using an I2C machine interface. Settings control the

Description and Instructions for the Firmware of Processing FPGA of the ADC250 Boards Version 0x0C0D. 20 February Hai Dong

EE 308 Lab Spring 2009

Review for Final Exam

Register Map and Descriptions

Implementing Fast Telemetry with Power System Management Controllers

8-bit Microcontroller with 4K Bytes In-System Programmable Flash and Boost Converter. ATtiny43U. Preliminary

Parallel Input/Output. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

ADS9850 Signal Generator Module

Low Dropout Regulator with On-Demand Power for DDR Memory VDDQ. Description. Applications. On-Demand Power Control Logic.

USB4. Encoder Data Acquisition USB Device Page 1 of 8. Description. Features

Series PM130 PLUS Powermeters PM130P/PM130E/PM130EH

IP-48ADM16TH. High Density 48-channel, 16-bit A/D Converter. REFERENCE MANUAL Version 1.6 August 2008

16.1 ADC ADC ADC10

EE251: Thursday October 18

Interfacing to Analog World Sensor Interfacing

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

MICROPROCESSORS A (17.383) Fall Lecture Outline

Section bit A/D Converter

Section 35. Output Compare with Dedicated Timer

Pololu TReX Jr Firmware Version 1.2: Configuration Parameter Documentation

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its

XR :1 Sensor Interface AFE. General Description. Typical Application

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny24/44/84. Preliminary

Topics Introduction to Microprocessors

NF1011 Frequency Translator and Jitter Attenuator

8-bit Microcontroller with 1K Bytes In-System Programmable Flash. ATtiny13A

Analog Digital Converter

RedPitaya. FPGA memory map

RB-Dev-03 Devantech CMPS03 Magnetic Compass Module

Course Introduction Purpose: Objectives: Content Learning Time

NuMicro N76E003 Brushless DC Motor Control User Manual

CoolEx User Manual 2008 XDIMAX LTD. Revision 1.0

8-bit Microcontroller with 2K/4K/8K Bytes In-System Programmable Flash. ATtiny24A ATtiny44A ATtiny84A

Real Time Embedded Systems. Lecture 1 January 17, 2012

10-Port Constant-Current LED Drivers and I/O Expanders with PWM Intensity Control

IES Digital Mock Test

The ST7588T is a driver & controller LSI for graphic dot-matrix liquid crystal display systems. It contains 132 segment and 80

EE 435. Lecture 41. ADC Design

8-bit Microcontroller with 512/1024 Bytes In-System Programmable Flash. ATtiny4/5/9/10

EtherCAT Expansion Chassis

Debugging a Boundary-Scan I 2 C Script Test with the BusPro - I and I2C Exerciser Software: A Case Study

FM COUNTER MODULE

The PmodIA is an impedance analyzer built around the Analog Devices AD bit Impedance Converter Network Analyzer.

Iowa State University Electrical and Computer Engineering. E E 452. Electric Machines and Power Electronic Drives

Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. Atmel ATtiny24/44/84. Automotive. Preliminary

High performance, low power AVR 8-bit microcontroller Advanced RISC architecture. Non-volatile program and data memories. Peripheral features

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny24/44/84. Preliminary

TIP500. Optically Isolated 16 Channel 12 Bit ADC. Version 1.1. User Manual. Issue January 2010

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny24/44/84. Preliminary

General-Purpose OTP MCU with 14 I/O LInes

The High-Performance Data Acquisition Circuit

Analog to Digital Conversion

AC : PERSONAL LAB HARDWARE: A SINE WAVE GENERATOR, LOGIC PULSE SIGNAL, AND PROGRAMMABLE SYNCHRONOUS SERIAL INTERFACE FOR ENHANCING EDUCATION

Linear Integrated Circuits

MBI5031 Application Note

CPC5750UTR. Single-Channel Voice Band CODEC INTEGRATED CIRCUITS DIVISION. Features. Description. Ordering Information. CPC5750 Block Diagram

Application Note Tag detector function of MLX90130 / MLX MHz RFID / NFC Transceivers Family

THE PERFORMANCE TEST OF THE AD CONVERTERS EMBEDDED ON SOME MICROCONTROLLERS

COMTECH TECHNOLOGY CO., LTD. DVBS SPECIFICATION

4 x 10 bit Free Run A/D 4 x Hi Comparator 4 x Low Comparator IRQ on Compare MX839. C-BUS Interface & Control Logic

Data Acquisition: A/D & D/A Conversion

16-Port I/O Expander with LED Intensity Control, Interrupt, and Hot-Insertion Protection

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs.

COMMUNICATION MODBUS PROTOCOL MFD44 NEMO-D4Le

2.4 GHz wireless mono audio streamer. Applications

LM12L Bit + Sign Data Acquisition System with Self-Calibration

Microcomputers. Digital Signal Processing

Ultralow Power, 1.8 V, 3 mm 3 mm, 2-Channel Capacitance Converter AD7156

Sensorless PMSM Field-Oriented Control on Kinetis KV and KE

FLD00042 I 2 C Digital Ambient Light Sensor

Application Circuits 3. 3V R2. C4 100n G PI O. 0 G PI O S e t u p d a ta G PI O. 5 G PI O M o t i o n I n t G PI O. 4 G PI O.

FUNCTIONAL BLOCK DIAGRAM SDA SCL SMBALERT. SMBus SERIAL BUS INTERFACE ADDRESS SELECTION PWM CONFIG AUTOMATIC FAN SPEED CONTROL REGISTERS

PRELIMINARY. Unless otherwise specified, all limits ensured for T a =+25 C, VDD=3.3V, GND=0V PARAMETER SYMBOL TEST CONDITION MIN. TYP. MAX.

MPS Node BLM Version Version /14/09

TXZ Family. Reference Manual Advanced Programmable Motor Control Circuit (A-PMD-B) 32-bit RISC Microcontroller. Revision 2.

HT1380/HT1381 Serial Timekeeper Chip

Timer A (0 and 1) and PWM EE3376

Transcription:

ADC Description ECE/CS 578/678: Embedded System Design Scott. Little Lecture 23: Integrated ADC Configuration 8/-bit resolution. 7 µs, -bit single conversion time. Programmable sample time. External trigger control. Conversion completion interrupt generation. 8 analog input channels via an analog input multiplexer. -8 sequence lengths for conversion. Continuous conversion mode. Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 / 2 Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 2 / 2 ADC Block Diagram External Input Pin Descriptions ATDB8C BUS CLOCK CLOCK PESCALE ATD CLOCK CONVESION COMPLETE INTEUPT V H V L V DDA V SSA AN7 / PAD7 AN6 / PAD6 AN5 / PAD5 AN4 / PAD4 AN3 / PAD3 AN2 / PAD2 AN / PAD AN / PAD ANALOG MUX MODE AND TIMING CONTOL SUCCESSIVE APPOXIMATION EGISTE (SA) AND DAC SAMPLE & HOLD ATD INPUT ENABLE EGISTE ESULTS ATD ATD ATD 2 ATD 3 ATD 4 ATD 5 ATD 6 ATD 7 + COMPAATO PAD-PAD6: Serve as the analog input for channel #. They can also be configured for digital GPIO. PAD7: Serves as the analog input for channel 7. It can also be configured to provide an external trigger for the ADC or be used as digital GPIO. V H,V L : The high and low reference voltages for the ADC. V DDA,V SSA : Power supplies for the ADC analog circuits. POT AD DATA EGISTE Figure 8-. ATDB8C Block Diagram MC9S2C Family eference Manual pg. 224 Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 3 / 2 Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 4 / 2

ATDCTL2 Part ATDCTL2 Part 2 Module Base + x2 7 6 5 4 3 2 ADPU AFFC AAI ETIGLE ETIGP ETIGE ASCIE eset Figure 8-5. ATD Control egister 2 (ATDCTL2) ADPU: enables ADC and disables ADC. AFFC: enables fast clear which results in any access to a result register causing the associated CCF flag to clear. is normal operation. AAI: enables the ADC to run even when the MCU is in ait mode. halts the ADC when the MCU enters ait mode. ASCIE: disables interrupts. enables interrupts. Interrupts occur when ASCIF is set to. ASCIF: If ASCIE = the ASCIF flag equals the SCF (ATDSTAT[7]) flag else ASCIF =. Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 5 / 2 ASCIF ETIGE: enables an external trigger to start ADC conversion. Channel 7 is not available in external trigger mode. ETIGLE ETIGP External Trigger Sensitivity Falling edge ising edge Low level High level Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 6 / 2 ATDCTL3 Part ATDCTL3 Part 2 Table 8-4. Conversion Sequence Length Coding Module Base + x3 7 6 5 4 3 2 S8C S4C S2C SC FIFO FZ FZ eset Figure 8-6. ATD Control egister 3 (ATDCTL3) S8C, S4C, S2C, SC: Set the number of conversions/sequence. FIFO: is normal operation. enables FIFO mode where each conversion is put into the next result register in order. The order wraps around. Intended usage is with continuous conversion or triggered conversion. FIZ[:]: Determines how the ADC will respond in debug mode when a breakpoint is encountered. S8C S4C S2C SC Number of Conversions per Sequence 8 2 3 4 5 6 7 X X X 8 Table 8-5. ATD Behavior in Freeze Mode (Breakpoint) FZ FZ Behavior in Freeze Mode Continue conversion eserved Finish current conversion, then freeze Freeze Immediately Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 7 / 2 Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 8 / 2

ATDCTL4 Part ATDCTL4 Part 2 Module Base + x4 7 6 5 4 3 2 SES8 SMP SMP PS4 PS3 PS2 PS PS eset SES8: is -bit resolution and is 8-bit resolution. SMP[:]: Two bits select the length of the second phase of the sample time in units of ADC conversion cycles. A longer time improves the accuracy of the conversion. PS[4:]: Five bits select the frequency of the ADC conversion clock frequency using the equation: ADCclock = Maximum conversion frequency is 2 MHz and minimum conversion frequency is 5 khz. Eclk *.5. PS+ Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 9 / 2 Table 8-7. Sample Time Select SMP SMP Length of 2nd Phase of Sample Time 2 A/D conversion clock periods 4 A/D conversion clock periods 8 A/D conversion clock periods 6 A/D conversion clock periods Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 / 2 ATDCTL5 Part ATDCTL5 Part 2 Module Base + x5 7 6 5 4 3 2 DJM DSGN SCAN MULT CC CB CA eset Figure 8-8. ATD Control egister 5 (ATDCTL5) DJM: is left justified data and is right justified data. DSGN: is unsigned data and is signed data. Signed data is not available with right justification. SCAN: is single conversion and is continuous conversion. SES8 DJM DSGN Table 8-. Available esult Data Formats X X esult Data Formats Description and Bus Bit Mapping 8-bit / left justified / unsigned bits 8 5 8-bit / left justified / signed bits 8 5 8-bit / right justified / unsigned bits 7 -bit / left justified / unsigned bits 6 5 -bit / left justified / signed bits 6 5 -bit / right justified / unsigned bits 9 Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 / 2 Table 8-2. Analog Input Channel Select Coding CC CB CA Analog Input Channel AN AN AN2 AN3 AN4 AN5 AN6 AN7 MULT: hen the ADC samples only from the input specified by the channel selection code (CC,CB,CA). hen the ADC samples across channels. The number of channels sampled is set by the S#C bits. The first channel examined is set by the channel selection code. Subsequent channels selected are determined by incrementing the channel selection code. CC, CB, CA: Selects the analog channel to be sampled or sampled first. Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 2 / 2

ATDSTAT Part ATDSTAT Part 2 Module Base + x6 7 6 5 4 3 2 SCF ETOF FIFO CC2 CC CC eset Figure 8-9. ATD Status egister (ATDSTAT) SCF: The flag is set when a conversion sequence completes. If continuous conversion is being performed the flag is set after each conversion completes. The flag is cleared when a is written to SCF, a new conversion sequence is started, or if AFFC = (ATDCTL2) and a result register is read. ETOF: The external trigger overrun flag is set when ETIGLE= (ATDCTL2) and additional active edges are detected while a conversion is in progress. The flag is cleared when a is written to ETOF, a conversion sequence is aborted, or a new conversion sequence is started. Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 3 / 2 FIFO: Indicates that a result register has been written to before its associated conversion complete flag (CCF#) has been cleared. This is useful in FIFO mode to indicate that result registers are out of sync with input channels. The flag is cleared when a is written to FIFO or a new conversion sequence is started. CC[2:]: epresent the binary value of the conversion counter which points to the result register that will receive the result of the current conversion. Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 4 / 2 ATDTEST ATDSTAT Module Base + x9 7 6 5 4 3 2 U U U U U U U eset Figure 8-. ATD Test egister (ATDTEST) SC: Setting this bit allows a special conversion channel to be used. The special channel is selected via the CA, CB, and CC bits. Table 8-5. Special Channel Select Coding SC CC CB CA Analog Input Channel X X eserved V H V L (V H +V L ) / 2 eserved SC Module Base + xb 7 6 5 4 3 2 CCF7 CCF6 CCF5 CCF4 CCF3 CCF2 CCF CCF eset Figure 8-2. ATD Status egister (ATDSTAT) CCF[7:]: A conversion complete flag is set at the end of each conversion in a conversion sequence. For example, CCF is set after the first conversion when the data in ATDD is available, etc. A CCF# flag is cleared when a new conversion sequence is started, if AFFC = (ATDCTL2) and a read of ATDSTAT is followed by a read of result register ATDD#, or AFFC = and a read of a result register ATDD#. Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 5 / 2 Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 6 / 2

ATDDIEN ATDD#H/ATDD#L Left Justified Module Base + xd 7 6 5 4 3 2 IEN7 IEN6 IEN5 IEN4 IEN3 IEN2 IEN IEN eset IEN[7:]: hen IEN# is digital input is disabled on PTAD#. hen IEN# is digital input is enabled on PTAD#. Module Base + x = ATDDH, x2 = ATDDH, x4 = ATDD2H, x6 = ATDD3H x8 = ATDD4H, xa = ATDD5H, xc = ATDD6H, xe = ATDD7H BIT 9 MSB BIT 7 MSB 7 6 5 4 3 2 BIT 8 BIT 7 BIT eset BIT Figure 8-5. Left Justified, ATD Conversion esult egister, High Byte (ATDDxH) Module Base + x = ATDDL, x3 = ATDDL, x5 = ATDD2L, x7 = ATDD3L x9 = ATDD4L, xb = ATDD5L, xd = ATDD6L, xf = ATDD7L BIT U 7 6 5 4 3 2 BIT U eset Figure 8-6. Left Justified, ATD Conversion esult egister, Low Byte (ATDDxL) -bit data -bit data Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 7 / 2 Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 8 / 2 ATDD#H/ATDD#L ight Justified Setting up and starting an ADC conversion Module Base + x = ATDDH, x2 = ATDDH, x4 = ATDD2H, x6 = ATDD3H x8 = ATDD4H, xa = ATDD5H, xc = ATDD6H, xe = ATDD7H 7 6 5 4 3 2 BIT 9 MSB eset BIT 8 Figure 8-7. ight Justified, ATD Conversion esult egister, High Byte (ATDDxH) Module Base + x = ATDDL, x3 = ATDDL, x5 = ATDD2L, x7 = ATDD3L x9 = ATDD4L, xb = ATDD5L, xd = ATDD6L, xf = ATDD7L BIT 7 BIT 7 MSB 7 6 5 4 3 2 BIT BIT eset BIT BIT Figure 8-8. ight Justified, ATD Conversion esult egister, Low Byte (ATDDxL) -bit data -bit data Power up the ADC (ADPU = ) and other ATDCTL2 settings. ait for the ADC recovery time. Configure the number of conversions via ATDCTL3. Configure resolution, sampling time, and ADC clock speed via ATDCTL4. Configure the starting channel, single/multiple channel, continuous or single sequence and result data format via ATDCTL5. riting to ATDCTL5 should happen last as it starts the conversion. Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 9 / 2 Scott. Little (Lecture 23: ADC Config) ECE/CS 578/678 2 / 2