The University of Texas at Arlington Lecture 10 ADC and DAC
|
|
- Shannon Bridges
- 6 years ago
- Views:
Transcription
1 The University of Texas at Arlington Lecture 10 ADC and DAC CSE 3442/5442
2 Measuring Physical Quantities (Digital) computers use discrete values, and use these to emulate continuous values if needed. In the physical world most everything is continuous (analog), e.g., temperature, pressure, acceleration, location, etc. We can measure many physical quantities but to use them in circuits we need transducers (some physical quantity is converted into a electric quantity). 2
3 Sensors and Transducers Transducer often used interchangeably with sensor Many sensors are actually a type of transducer. Transducers are devices that convert one form of energy into another. They include both actuators and a subset of the various types of sensors. 3
4 Sensors with Analog Outputs Many sensors output analog (only) signals where output is proportional to some kind of measured physical quantity (temperature, acceleration, etc.) Accuracy or precision of a sensor determines how close the measured (and output) value is to the real value. (What is the smallest unit that makes a difference in the measurement). Dynamic range: what is the relation of the fullscale value to the minimally detectable signal variation. In order to use the outputs of analog sensors in calculations, their outputs have to be digitized. 4
5 A/D Conversion The process of A/D conversion involves: Band-limiting the analog signal Setting periodic sampling points (setting a sampling period) at which the continuous time analog signal is going to be digitized. Freezing the analog signal at the sampling points so that the signal does not change for the duration of conversion (sample and hold) Determining what digital value best represents the analog signal level (quantizing). 5
6 Limiting Bandwidth of Signal Real life physical quantities can change extremely rapidly (i.e., continuously), i.e., being capable of an immediate change and thus having an infinite frequency band. Sensors measuring these quantities (as they have to deal with mechanical and electrical inertia of their measuring ways) usually reduce that bandwidth significantly (i.e., if they reduce it to a 100kHz, that means that they could not pick up a sudden 1ns flipflop of the real value). In most cases sensor s bandwidths are orders of magnitudes above what we are interested in (e.g., temperature changes, we do not really care about sub second changes). In order to ignore sudden changes (and so that they do not negatively influence our ADC) we need to limit the bandwidth of the signal (smooth it out) based on our frequency resolution needs. Usually, analog low-pass filters (many cases with simple sensors simple R/C circuitry) is used. 6
7 Periodic Sampling Now that we have limited the bandwidth of the signal, we need to sample it. The Nyquist/Shannon theorems say that you need to sample the signal at least at twice the maximum frequency contained in the signal. (E.g., if you limited your signal to a max frequency of 10Hz, You should sample it at least at 20Hz, i.e., 20 times a second). In many cases though we start from the sampling frequency and having a good understanding of that we limit the signal to at most half of that. 7
8 Example: Output of a Sensor 2 Continuous-Time Signal; x(t) = cos(10t) + cos(25t) Amplitude Time (s) This is the superposition of two sine signals (two frequencies present) 8
9 Example: Output of a Sensor (cont d) Y(t) = cos(10t+0)+cos(25t+0) Thus, two frequencies one with ω 1 =10 and the other with ω 2 =25 This means f 1 =10/(2π), f 2 =25/ (2π) f 2 is higher (~4Hz) Thus, to be able to reconstruct the signal (without loosing any of its features) we need to sample at least 8 times a second (8Hz). So, what happens if we overor under-sample? Amplitude Continuous-Time Signal; x(t) = cos(10t) + cos(25t) Time (s) 9
10 Example: Oversampling If original signal was indeed nicely limited, oversampling will result in more samples than we need for processing and reconstruction (i.e., burden on our calculations/ processor time) Shown here is 20 samples per second (a sampling clock of 20Hz) Amplitude Sampled Version of x(t) with T s = 0.05 s Time (s) 10
11 Example: Undersampling Undersampling will result loosing the features of a signal. If we wanted to reconstruct the signal the reconstructed signal (red) would not look the same as the original (black) signal What is the sampling clock used here? Amplitude x 1 (t) Sampling x(t) and x 1 (t) with T s = 0.2 s Time (s) x(t) 11
12 Hold after Sample We need circuitry that can remember (hold) the analog voltage at the sampling time The Ctrl signal in the circuit below should have the periodicity of the sampling rate and a duty cycle corresponding to the holding (charging time) Trade-offs of the holding time! Ctrl Amplitude Sampled Version of x(t) with T s = 0.1 s R Time (s) C Ch 12
13 Quantization Now that the signal is not changing for some time (depending on the sampling period), we need to determine what digital value best represents the analog level. This will take some time, which should not be more than the sampling period! There are many methods of doing this, many microcontrollers use successive approximation to do this. 13
14 Successive Approximation ADC V in! Successive Approximation ADC! -! +! Comparator! CONTROL! LOGIC! SUCCESSIVE! APPROXIMATION! DAC! 10! 11! V 3! 10! V 2! 01! V 1! 00! V 0! Voltage! V in! l Set DAC output to V 2 = 01! l DAC generates analog voltage V 2 (V in >V 2 )! l Set MSB to 1! l DAC now generates V 3! time! l Set LSB to 0 since V 3 >V in! l Digitize in n Bits = n Cycles! l Due to errors does not scale well to above bits! 14
15 A/D Converters Analog-to-digital converters (A/D converters or ADCs) are used to convert continuous signals to discrete values. Resolution: usually expressed in n-bits. Conversion time: how long it takes to convert from analog to digital. Reference: what is the reference (e.g., the highest and lowest value to which we are comparing). Linear vs. non-linear transfer (equal step size vs. changing step size) 15
16 ADC Resolution n-bits, where n can be any number but rarely below 8 or rarely higher than 24. Resolution determines the quantization steps. An 8-bit ADC has 256 different values, thus if V min (V - ref ) is 0V and V max (V+ ref ) is 5V and the quantization is linear, then the precision is 5/256 ~= 19.5mV (we could say ± 10mV). The resolution of an AD converter is unchangeable (we can lower it from software by ignoring LSBs), but the V ref can be changed to fit the dynamic range of the sensor to increase precision. 16
17 ADC Conversion Time A/D conversion takes time. The analog part of the circuit needs to remember the analog voltage at the exact time of the sampling (recall, that this is usually done by charging a capacitor for a finite amount of time). Once that value is remembered, the ADC needs to determine (quantize) what the corresponding digital value to that voltage is. This is usually determined by a quantization clock. The conversion time has to be smaller than the sampling time! 17
18 V ref We know that the resolution (n-bits) determines how many quantization steps there are, thus determining the relative scale. What determines the absolute scale though, i.e., what voltage value represents 0 and what voltage value represents 0b (for 8-bit resolution)? V - ref and V+ ref are used for that. ADC circuitries usually have a default of V - ref =V ss and V + ref =V cc. However most ADCs let you feed in analog voltages representing V - ref and V+ ref. 18
19 V ref (cont d) In general V ref -s could be any voltage but many times it is required to be within [Vss, Vcc]. The PIC microcontroller s built in ADCs do require that. So, what s the step size of an 8-bit ADC where V - ref =2V and V+ ref =3V? (3.9mV) What would happen if V - ref =-2V and V+ ref how would we want the values represented? =2V, The digital output can be expressed in a number of coding schemes, such as binary, or two's complement binary, or offset binary. If we know all this, we can reconstruct the voltage level in software. 19
20 2 s Complement vs. Offset Binary 20
21 Stand-alone ADCs Parallel versus serial output: An n-bit parallel output ADC has n-pins to talk to a CPU unit in addition to data ready and channel selection bits. Less CPU time, more data pins. A serial output ADC has two pins to talk to the CPU, one for clock, the other for data. More CPU time, few pins. Can be a combination, where (similarly to how we talk to the LCD) x-bits at a time are sent out serially. Can balance CPU time and pins. Number of analog input channels (i.e., how many sensor can be connected). They can be multiplexed (one ADC) or parallel (many ADCs inside). Start and end of conversion signals. We need to tell the ADC when to start conversion (indication of sampling) and it has to have feedback on when the conversion is finished. Thus there can be many pins in an ADC for communication and ADC channels. Most PIC microcontrollers have ADC peripherals built in. The above will have an effect on these peripherals. 21
22 PIC18 ADC ADC can be found on most PIC18-s as an integrated peripheral The on chip ADC peripheral needs to be programmed before use. SFR registers are used for all communications between the ADC peripheral and the CPU. PIC18 ADC-s are 10-bit, successive approximation. (Other microcontrollers have different precision and architecture on chip ADCs). Thus two 8-bit registers are needed with 6 bits unused (ADRESL and ADRESH). Up to 16 analog channels (8 for PIC18F452; AN0-AN7) multiplexed to a single ADC. Reference voltage can be fed. Control registers used to set-up and start conversion. 22
23 PIC18 ADC Channel Selection 23
24 ADCON0 Control Register Determines conversion time More about it shortly 24
25 ADCON1 Control Register 25
26 ADRESL and ADRESH Only 10 bits out of 16 are used. Which 6 should be unused? There is a case for left justifying and one for right justifying as well. Let the user choose. 26
27 PIC18 A/D Acquisition Time The A/D acquisition time is essentially the time required for the hold capacitor to charge. The time depends on the supply voltage and the out impedance of the sensor. However we can calculate with a typical value of 5-15µs. Newer PIC microcontrollers have specific control for TACQ (determined in TADs) 27
28 PIC18 A/D Conversion Time TAD is the conversion time per bit, i.e., the clock at which the successive approximation runs plus overhead. In addition to the 10 TAD cycles for conversion we need two more TAD cycles. Thus the PIC18 takes a total conversion time of 12 TAD-s. However, TAD has to be larger than 1.6µs! (Thus, sampling rate cannot exceed 1/(1.6E-6*12+1E-5) ~= 30kHz, depending on TACQ). TAD is determined by the conversion clock (Fosc/2 Fosc/64, or internal RC). If internal RC is used then TAD is about 2-6µs and thus total conversion time is around 72µs (i.e., sampling rate cannot be larger than ~1.4kHz). 28
29 Oscillator Prescalar vs. TAD 29
30 Sampling Frequency Note, that we have only described a single conversion. If periodical conversion needs to be set up, the GO bit has to be turned on periodically and data produced (ADRESH, ADRESL) has to be read periodically. This can be done by: Calculating timing (i.e., NOP instructions after DONE) Using timer peripherals (not covered yet) Proper interrupt processing. 30
31 Steps When Using the PIC18 ADC 1. Configure the A/D module: Configure analog pins, voltage reference and digital I/O (ADCON1) Select A/D input channel (ADCON0) Select A/D conversion clock (ADCON0) Turn on A/D module (ADCON0) 2. Configure A/D interrupt (if desired): Clear ADIF bit Set ADIE bit Set GIE bit 3. Wait the required acquisition time. 4. Start conversion: Set GO/DONE bit (ADCON0) 5. Wait for A/D conversion to complete, by either: Polling for the GO/DONE bit to be cleared OR Waiting for the A/D interrupt 6. Read A/D Result registers (ADRESH/ADRESL); clear bit ADIF if required. 7. For next conversion, go to step 1 or step 2 as required. The A/D conversion time per bit is defined as TAD. A minimum wait of 2 TAD is required before next acquisition starts. 31
32 Programming the PIC18 ADC void main(void) { TRISC = 0; TRISD = 0; TRISAbits.TRISA0 = 1; ADCON0 = 0x81; //FOSC/64, channel 0 A/D on ADCON1 = 0xCE; //right justified (FOSC/64) AN0=analog DELAY(1); //for TACQ while(1) { ADCONbits.GO = 1; while(adconbits.done == 1) ; PORTC = ADRESL; PORTD = ADRESH; DELAY(250); // set sampling rate (in ms) } } 32
33 Using Interrupts with the ADC We can ask the ADC peripheral to notify us when a conversion is done. This way we do not have to constantly poll it. The PIE1.ADIE mask is used to enable the interrupt (remember to enable GIE, and recall priorities!). The PIR1.ADIF flag is set when interrupt is triggered. 33
34 Programming the PIC18 ADC with the ADC Interrupt #include <PIC18F458.h> void my_isr(void); #pragma code My_Int=0x0008 void My_Int (void) { my_isr(); } #pragma interrupt my_isr void my_isr(void) { if(pir1bits.adif) { PORTC = ADRESL; PORTD = ADRESH; Delay(250); PIR1bits.ADIF=0; } } void main(void) { TRISC = 0; TRISD = 0; TRISAbits.TRISA0 = 1; ADCON0 = 0x81; //FOSC/64, channel 0 A/D on ADCON1 = 0xCE; //right justified (FOSC/64) AN0=analog PIR1bits.ADIF=0; PIR1bits.ADIE=1; INTCONbits.PEIE=1; INTCONbits.GIE=1; while(1) { DELAY(1); //for TACQ ADCONbits.GO = 1; } } Talk about problems with this code! 34
35 Sensor Interfacing and Signal Conditioning Sensors can be of many kinds but mainly active or passive. If they are passive then they usually change their resistance (or charge) relative to the measured physical value, e.g., PTC and NTC temperature sensors, pressure sensors, etc. Active sensors these days are by far more common (as we prefer linear response), and thus need a voltage supply and provide a controlled voltage output. (LM34, LM35) 35
36 Sensor Interfacing and Signal Conditioning (Passive Thermistor) As a passive sensor let s look at a typical thermistor: Thermistor Temperature [C] Resistance Ω Ohm Celsius It is non-linear but we can use software to compensate for that. 36
37 Sensor Interfacing and Signal Conditioning (Passive Thermistor) We need to convert this resistance into a voltage that we can sample. A voltage divider can come in handy: Vcc R1 Vout (to PIC) Rt C What should the value of R1 be? How should Vref-s be set? Why is C necessary, what should be the value? 37
38 Signal Conditioning and Interfacing 38
39 Sensor Interfacing and Signal Conditioning (Active Sensors) Active sensors output voltage that is proportional to the measured physical value. In many cases the output voltage is linear on some accepted physical scale (e.g., Celsius, Pascal, Hgmm, g, rpm, etc.) So what happens if the output voltage range is well within the supply range of the microcontroller? (Vref) What happens if the output voltage range is well outside the supply range of the microcontroller? (Resistor/diode conditioning) Bandwidth should still be limited! 39
40 Sensor Interfacing and Signal Conditioning (Active Sensors) Active sensors output voltage that is proportional to the measured physical value. In many cases the output voltage is linear on some accepted physical scale (e.g., Celsius, Pascal, Hgmm, g, rpm, etc.) Bandwidth should still be limited! 40
41 Digital to Analog Conversion Unlike an ADC, a DAC takes a digital value and converts it into a quasi analog voltage. Usually the conversion is linear. PIC18-s do not have built-in DACs so external components can be used. (There is a possibility to generate PWM signals though! more later) A DAC can have a parallel input or a serial input 41
42 Buffered Binary Resistor Network DAC MSB R R f 2R 4R - + LSB 8R Seldom used when more than 6 bits Consider the design of an 8-bit DAC if the smallest resistor has resistance R what would be the value of the largest resistor? what would be the tolerance of the smallest resistor? Very difficult to manufacture very accurate resistors over this range 42
43 DAC Block Diagram 43
44 R/2R Resistor Network DAC I R R R Vs 2R 2R 2R 2R 2R I/2 I/4 I/8 I/16 Rf - 4-bit register + Vo MSB LSB The usual choice these days in DACs 44
45 PIC18 Connection to DAC
46 DAC in the QwikFlash MAX522 3-wire serial interface Two 8-bit, buffered DACs 46
47 MAX522 DAC 3-wire serial Interface!CS: needs to be kept low when feeding in data. Rising edge will modify behavior of DAC. SCLK: every rising edge data is clocked in (<5MHz) DIN: Data line Each command is 16 bits long For PIC interfacing, we can program it directly or use serial communication peripherals 47
48 MAX522 DAC (cont d) 48
49 Generating a Sine Wave Sin(x) values vary between -1 and 1 for angle values between 0 and 2π. On our DAC we will have to offset the zero value to 2.5V We need a lookup table of values (quicker than using the sin() function) In a loop we have to send corresponding table values to the DAC. 49
50 Summary AD conversion is the process of taking an analog level and converting it to a digital value. Many times we are interested in continuous time signals and thus have to sample that signal periodically. The Nyquist/Shannon theorems tell us to sample at least at twice the highest frequency for the signal to be reconstructable. First signal has to be band-limited, then sampled, then samples converted. After digital processing then the signal can be reconstructed using a DAC. 50
MICROPROCESSORS A (17.383) Fall Lecture Outline
MICROPROCESSORS A (17.383) Fall 2010 Lecture Outline Class # 07 October 26, 2010 Dohn Bowden 1 Today s Lecture Syllabus review Microcontroller Hardware and/or Interface Finish Analog to Digital Conversion
More informationInterfacing to Analog World Sensor Interfacing
Interfacing to Analog World Sensor Interfacing Introduction to Analog to digital Conversion Why Analog to Digital? Basics of A/D Conversion. A/D converter inside PIC16F887 Related Problems Prepared By-
More informationModule 13: Interfacing ADC. Introduction ADC Programming DAC Programming Sensor Interfacing
Module 13: Interfacing ADC Introduction ADC Programming DAC Programming Sensor Interfacing Introduction ADC Devices o Analog-to-digital converters (ADC) are among the most widely used devices for data
More informationEEE3410 Microcontroller Applications Department of Electrical Engineering. Lecture 10. Analogue Interfacing. Vocational Training Council, Hong Kong.
Department of Electrical Engineering Lecture 10 Analogue Interfacing 1 In this Lecture. Interface 8051 with the following Input/Output Devices Transducer/Sensors Analogue-to-Digital Conversion (ADC) Digital-to-Analogue
More informationPIC ADC to PWM and Mosfet Low-Side Driver
Name Lab Section PIC ADC to PWM and Mosfet Low-Side Driver Lab 6 Introduction: In this lab you will convert an analog voltage into a pulse width modulation (PWM) duty cycle. The source of the analog voltage
More informationEmbedded Systems. Interfacing PIC with external devices Analog to digital Converter. Eng. Anis Nazer Second Semester
Embedded Systems Interfacing PIC with external devices Analog to digital Converter Eng. Anis Nazer Second Semester 2016-2017 What is the time? What is the time? Definition Analog: can take any value Digital:
More informationSection 22. Basic 8-bit A/D Converter
M Section 22. A/D Converter HIGHLIGHTS This section of the manual contains the following major topics: 22.1 Introduction...22-2 22.2 Control Registers...22-3 22.3 A/D Acquisition Requirements...22-6 22.4
More informationUNIT III Data Acquisition & Microcontroller System. Mr. Manoj Rajale
UNIT III Data Acquisition & Microcontroller System Mr. Manoj Rajale Syllabus Interfacing of Sensors / Actuators to DAQ system, Bit width, Sampling theorem, Sampling Frequency, Aliasing, Sample and hold
More informationLinear Integrated Circuits
Linear Integrated Circuits Single Slope ADC Comparator checks input voltage with integrated reference voltage, V REF At the same time the number of clock cycles is being counted. When the integrator output
More informationPIC Analog Voltage to PWM Duty Cycle
Name Lab Section PIC Analog Voltage to PWM Duty Cycle Lab 5 Introduction: In this lab you will convert an analog voltage into a pulse width modulation (PWM) duty cycle. The source of the analog voltage
More informationAnalog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016
Analog I/O ECE 153B Sensor & Peripheral Interface Design Introduction Anytime we need to monitor or control analog signals with a digital system, we require analogto-digital (ADC) and digital-to-analog
More informationP a g e 1. Introduction
P a g e 1 Introduction 1. Signals in digital form are more convenient than analog form for processing and control operation. 2. Real world signals originated from temperature, pressure, flow rate, force
More informationLecture 7: Analog Signals and Conversion
ECE342 Introduction to Embedded Systems Lecture 7: Analog Signals and Conversion Ying Tang Electrical and Computer Engineering Rowan University 1 Analog Signals Everywhere Everything is an analogy in the
More informationBuilding an Analog Communications System
Building an Analog Communications System Communicate between two PICs with analog signals. Analog signals have continous range. Analog signals must be discretized. Digital signal converted to analog Digital
More informationAdvantages of Analog Representation. Varies continuously, like the property being measured. Represents continuous values. See Figure 12.
Analog Signals Signals that vary continuously throughout a defined range. Representative of many physical quantities, such as temperature and velocity. Usually a voltage or current level. Digital Signals
More informationAnalog to Digital Conversion
Analog to Digital Conversion The MSP in the name of our microcontroller MSP430G2554 is abbreviation for Mixed Signal Processor. This means that our microcontroller can be used to handle both analog and
More informationFYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2017 Lecture #5
FYS3240 PC-based instrumentation and microcontrollers Signal sampling Spring 2017 Lecture #5 Bekkeng, 30.01.2017 Content Aliasing Sampling Analog to Digital Conversion (ADC) Filtering Oversampling Triggering
More informationELG3336: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs)
ELG3336: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs) Digital Output Dout 111 110 101 100 011 010 001 000 ΔV, V LSB V ref 8 V FSR 4 V 8 ref 7 V 8 ref Analog Input
More information4 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 BULLETIN MX839 Digitally Controlled Analog I/O Processor PRELIMINARY INFORMATION Features x 4 input intelligent 10 bit A/D monitoring subsystem 4 High and 4 Low Comparators External IRQ Generator
More informationWorking with ADCs, OAs and the MSP430
Working with ADCs, OAs and the MSP430 Bonnie Baker HPA Senior Applications Engineer Texas Instruments 2006 Texas Instruments Inc, Slide 1 Agenda An Overview of the MSP430 Data Acquisition System SAR Converters
More informationCyber-Physical Systems ADC / DAC
Cyber-Physical Systems ADC / DAC ICEN 553/453 Fall 2018 Prof. Dola Saha 1 Analog-to-Digital Converter (ADC) Ø ADC is important almost to all application fields Ø Converts a continuous-time voltage signal
More informationFYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2015 Lecture #5
FYS3240 PC-based instrumentation and microcontrollers Signal sampling Spring 2015 Lecture #5 Bekkeng, 29.1.2015 Content Aliasing Nyquist (Sampling) ADC Filtering Oversampling Triggering Analog Signal Information
More informationLecture 6: Digital/Analog Techniques
Lecture 6: Digital/Analog Techniques The electronics signals that we ve looked at so far have been analog that means the information is continuous. A voltage of 5.3V represents different information that
More informationADC Resolution: Myth and Reality
ADC Resolution: Myth and Reality Mitch Ferguson, Applications Engineering Manager Class ID: CC19I Renesas Electronics America Inc. Mr. Mitch Ferguson Applications Engineering Manager Specializes support
More informationMicroprocessors & Interfacing
Lecture overview Microprocessors & Interfacing /Output output PMW Digital-to- (D/A) Conversion input -to-digital (A/D) Conversion Lecturer : Dr. Annie Guo S2, 2008 COMP9032 Week9 1 S2, 2008 COMP9032 Week9
More informationDigital Design Laboratory Lecture 7. A/D and D/A
ECE 280 / CSE 280 Digital Design Laboratory Lecture 7 A/D and D/A Analog/Digital Conversion A/D conversion is the process of sampling a continuous signal Two significant implications 1. The information
More informationAnalog Input and Output. Lecturer: Sri Parameswaran Notes by: Annie Guo
Analog Input and Output Lecturer: Sri Parameswaran Notes by: Annie Guo 1 Analog output Lecture overview PMW Digital-to-Analog (D/A) Conversion Analog input Analog-to-Digital (A/D) Conversion 2 PWM Analog
More information6. HARDWARE PROTOTYPE AND EXPERIMENTAL RESULTS
6. HARDWARE PROTOTYPE AND EXPERIMENTAL RESULTS Laboratory based hardware prototype is developed for the z-source inverter based conversion set up in line with control system designed, simulated and discussed
More informationELG3336 Design of Mechatronics System
ELG3336 Design of Mechatronics System Elements of a Data Acquisition System 2 Analog Signal Data Acquisition Hardware Your Signal Data Acquisition DAQ Device System Computer Cable Terminal Block Data Acquisition
More informationData Converters. Lecture Fall2013 Page 1
Data Converters Lecture Fall2013 Page 1 Lecture Fall2013 Page 2 Representing Real Numbers Limited # of Bits Many physically-based values are best represented with realnumbers as opposed to a discrete number
More informationAnalog Digital Converter
Analog Digital Converter - Overview Analog Digital Conversion - Operation Modes: Single Mode vs. Scan mode - Registers for Data, Control, Status - Using the ADC in Software - Handling of Interrupts Karl-Ragmar
More informationAnalog to Digital Conversion
Analog to Digital Conversion 02534567998 6 4 2 3 4 5 6 ANALOG to DIGITAL CONVERSION Analog variation (Continuous, smooth variation) Digitized Variation (Discrete set of points) N2 N1 Digitization applied
More informationPHYS225 Lecture 22. Electronic Circuits
PHYS225 Lecture 22 Electronic Circuits Last lecture Digital to Analog Conversion DAC Converts digital signal to an analog signal Computer control of everything! Various types/techniques for conversion
More informationSG2525A SG3525A REGULATING PULSE WIDTH MODULATORS
SG2525A SG3525A REGULATING PULSE WIDTH MODULATORS 8 TO 35 V OPERATION 5.1 V REFERENCE TRIMMED TO ± 1 % 100 Hz TO 500 KHz OSCILLATOR RANGE SEPARATE OSCILLATOR SYNC TERMINAL ADJUSTABLE DEADTIME CONTROL INTERNAL
More informationDSP Project. Reminder: Project proposal is due Friday, October 19, 2012 by 5pm in my office (Small 239).
DSP Project eminder: Project proposal is due Friday, October 19, 2012 by 5pm in my office (Small 239). Budget: $150 for project. Free parts: Surplus parts from previous year s project are available on
More informationUniversity of California at Berkeley Donald A. Glaser Physics 111A Instrumentation Laboratory
Published on Instrumentation LAB (http://instrumentationlab.berkeley.edu) Home > Lab Assignments > Digital Labs > Digital Circuits II Digital Circuits II Submitted by Nate.Physics on Tue, 07/08/2014-13:57
More informationMOS (PTY) LTD. E Single Channel PIR Signal Processor. Applications. General Description. Features. Digital Sensor Assembly with E931.
General Description The integrated circuit is designed for interfacing Passive Infra Red (PIR) sensors with micro-controllers or processors. A single wire Data Out, Clock In (DOCI) interface is provided
More informationDATA CONVERSION AND LAB (17.368) Fall Class # 07. October 16, 2008
DATA CONVERSION AND LAB (17.368) Fall 2008 Class # 07 October 16, 2008 Dohn Bowden 1 Today s Lecture Outline Course Admin Lab #3 next week Exam in two weeks 10/30/08 Detailed Technical Discussions Digital
More informationAPPLICATION BULLETIN PRINCIPLES OF DATA ACQUISITION AND CONVERSION. Reconstructed Wave Form
APPLICATION BULLETIN Mailing Address: PO Box 11400 Tucson, AZ 85734 Street Address: 6730 S. Tucson Blvd. Tucson, AZ 85706 Tel: (60) 746-1111 Twx: 910-95-111 Telex: 066-6491 FAX (60) 889-1510 Immediate
More informationChapter 2 Signal Conditioning, Propagation, and Conversion
09/0 PHY 4330 Instrumentation I Chapter Signal Conditioning, Propagation, and Conversion. Amplification (Review of Op-amps) Reference: D. A. Bell, Operational Amplifiers Applications, Troubleshooting,
More informationTL494 PULSE-WIDTH-MODULATION CONTROL CIRCUITS
Complete PWM Power-Control Circuitry Uncommitted Outputs for 200-mA Sink or Source Current Output Control Selects Single-Ended or Push-Pull Operation Internal Circuitry Prohibits Double Pulse at Either
More informationEmbedded Control. Week 3 (7/13/11)
Embedded Control Week 3 (7/13/11) Week 3 15:00 Lecture Overview of analog signals Digital-to-analog conversion Analog-to-digital conversion 16:00 Lab NXT analog IO Overview of Analog Signals Continuous
More informationMicrocontroller Systems. ELET 3232 Topic 21: ADC Basics
Microcontroller Systems ELET 3232 Topic 21: ADC Basics Objectives To understand the modes and features of the Analog-to-Digital Converter on the ATmega 128 To understand how to perform an Analog-to-Digital
More informationTL494 PULSE-WIDTH-MODULATION CONTROL CIRCUITS
Complete PWM Power-Control Circuitry Uncommitted Outputs for 200-mA Sink or Source Current Output Control Selects Single-Ended or Push-Pull Operation Internal Circuitry Prohibits Double Pulse at Either
More informationThe need for Data Converters
The need for Data Converters ANALOG SIGNAL (Speech, Images, Sensors, Radar, etc.) PRE-PROCESSING (Filtering and analog to digital conversion) DIGITAL PROCESSOR (Microprocessor) POST-PROCESSING (Digital
More informationME 461 Laboratory #3 Analog-to-Digital Conversion
ME 461 Laboratory #3 Analog-to-Digital Conversion Goals: 1. Learn how to configure and use the MSP430 s 10-bit SAR ADC. 2. Measure the output voltage of your home-made DAC and compare it to the expected
More informationTL594 PULSE-WIDTH-MODULATION CONTROL CIRCUITS
Complete PWM Power Control Circuitry Uncommitted Outputs for 200-mA Sink or Source Current Output Control Selects Single-Ended or Push-Pull Operation Internal Circuitry Prohibits Double Pulse at Either
More informationTL494M PULSE-WIDTH-MODULATION CONTROL CIRCUIT
Complete PWM Power Control Circuitry Uncommitted Outputs for 00-mA Sink or Source Current Output Control Selects Single-Ended or Push-Pull Operation Internal Circuitry Prohibits Double Pulse at Either
More informationMicrocomputers. Digital Signal Processing
Microcomputers Analog-to-Digital and Digital-to-Analog Conversion Lecture 7-1 Digital Signal Processing Analog-to-Digital Converter (ADC) converts an input analog value to an output digital representation.
More informationAnalog-Digital Interface
Analog-Digital Interface Tuesday 24 November 15 Summary Previous Class Dependability Today: Redundancy Error Correcting Codes Analog-Digital Interface Converters, Sensors / Actuators Sampling DSP Frequency
More informationData Converters. Dr.Trushit Upadhyaya EC Department, CSPIT, CHARUSAT
Data Converters Dr.Trushit Upadhyaya EC Department, CSPIT, CHARUSAT Purpose To convert digital values to analog voltages V OUT Digital Value Reference Voltage Digital Value DAC Analog Voltage Analog Quantity:
More informationModule 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1
Module 3 Embedded Systems I/O Version 2 EE IIT, Kharagpur 1 esson 19 Analog Interfacing Version 2 EE IIT, Kharagpur 2 Instructional Objectives After going through this lesson the student would be able
More informationAnalogue Interfacing. What is a signal? Continuous vs. Discrete Time. Continuous time signals
Analogue Interfacing What is a signal? Signal: Function of one or more independent variable(s) such as space or time Examples include images and speech Continuous vs. Discrete Time Continuous time signals
More informationRoland Kammerer. 13. October 2010
Peripherals Roland Institute of Computer Engineering Vienna University of Technology 13. October 2010 Overview 1. Analog/Digital Converter (ADC) 2. Pulse Width Modulation (PWM) 3. Serial Peripheral Interface
More informationData Conversion and Lab (17.368) Fall Lecture Outline
Data Conversion and Lab (17.368) Fall 2013 Lecture Outline Class # 07 October 17, 2013 Dohn Bowden 1 Today s Lecture Outline Administrative Detailed Technical Discussions Digital to Analog Conversion Lab
More informationEE 109 Midterm Review
EE 109 Midterm Review 1 2 Number Systems Computer use base 2 (binary) 0 and 1 Humans use base 10 (decimal) 0 to 9 Humans using computers: Base 16 (hexadecimal) 0 to 15 (0 to 9,A,B,C,D,E,F) Base 8 (octal)
More informationMeasuring Distance Using Sound
Measuring Distance Using Sound Distance can be measured in various ways: directly, using a ruler or measuring tape, or indirectly, using radio or sound waves. The indirect method measures another variable
More informationData acquisition and instrumentation. Data acquisition
Data acquisition and instrumentation START Lecture Sam Sadeghi Data acquisition 1 Humanistic Intelligence Body as a transducer,, data acquisition and signal processing machine Analysis of physiological
More informationADC0808/ADC Bit µp Compatible A/D Converters with 8-Channel Multiplexer
ADC0808/ADC0809 8-Bit µp Compatible A/D Converters with 8-Channel Multiplexer General Description The ADC0808, ADC0809 data acquisition component is a monolithic CMOS device with an 8-bit analog-to-digital
More informationChapter 7. Introduction. Analog Signal and Discrete Time Series. Sampling, Digital Devices, and Data Acquisition
Chapter 7 Sampling, Digital Devices, and Data Acquisition Material from Theory and Design for Mechanical Measurements; Figliola, Third Edition Introduction Integrating analog electrical transducers with
More informationMicroprocessors A Lab 4 Fall Analog to Digital Conversion Using the PIC16F684 Microcontroller
Objectives Materials 17.383 Microprocessors A Analog to Digital Conversion Using the PIC16F684 Microcontroller 1) To use MPLAB IDE software, PICC Compiler, and external hardware to demonstrate the following:
More informationTechnical Brief FAQ (FREQUENCLY ASKED QUESTIONS) For further information, please contact Crystal Semiconductor at (512) or 1 (800)
Technical Brief FAQ (FREQUENCLY ASKED QUESTIONS) 1) Do you have a four channel part? Not at this time, but we have plans to do a multichannel product Q4 97. We also have 4 digital output lines which can
More informationHART Modem DS8500. Features
Rev 1; 2/09 EVALUATION KIT AVAILABLE General Description The is a single-chip modem with Highway Addressable Remote Transducer (HART) capabilities and satisfies the HART physical layer requirements. The
More informationAnalog/Digital and Sampling
Analog/Digital and Sampling Alexander Nelson October 22, 2018 University of Arkansas - Department of Computer Science and Computer Engineering Analog Signals in the real world are analog signals Process
More informationComputer Controlled Curve Tracer
Computer Controlled Curve Tracer Christopher Curro The Cooper Union New York, NY Email: chris@curro.cc David Katz The Cooper Union New York, NY Email: katz3@cooper.edu Abstract A computer controlled curve
More information8-Bit, high-speed, µp-compatible A/D converter with track/hold function ADC0820
8-Bit, high-speed, µp-compatible A/D converter with DESCRIPTION By using a half-flash conversion technique, the 8-bit CMOS A/D offers a 1.5µs conversion time while dissipating a maximum 75mW of power.
More informationOutline. Analog/Digital Conversion
Analog/Digital Conversion The real world is analog. Interfacing a microprocessor-based system to real-world devices often requires conversion between the microprocessor s digital representation of values
More informationChapter 5: Signal conversion
Chapter 5: Signal conversion Learning Objectives: At the end of this topic you will be able to: explain the need for signal conversion between analogue and digital form in communications and microprocessors
More informationImproving Loop-Gain Performance In Digital Power Supplies With Latest- Generation DSCs
ISSUE: March 2016 Improving Loop-Gain Performance In Digital Power Supplies With Latest- Generation DSCs by Alex Dumais, Microchip Technology, Chandler, Ariz. With the consistent push for higher-performance
More informationAUR3840. Serial-interface, Touch screen controller. Features. Description. Applications. Package Information. Order Information
Serial-interface, Touch screen controller Features Multiplexed Analog Digitization with 12-bit Resolution Low Power operation for 2.2V TO 5.25V Built-In BandGap with Internal Buffer for 2.5V Voltage Reference
More informationAdvanced Regulating Pulse Width Modulators
Advanced Regulating Pulse Width Modulators FEATURES Complete PWM Power Control Circuitry Uncommitted Outputs for Single-ended or Push-pull Applications Low Standby Current 8mA Typical Interchangeable with
More informationI hope you have completed Part 2 of the Experiment and is ready for Part 3.
I hope you have completed Part 2 of the Experiment and is ready for Part 3. In part 3, you are going to use the FPGA to interface with the external world through a DAC and a ADC on the add-on card. You
More informationSpecifying A D and D A Converters
Specifying A D and D A Converters The specification or selection of analog-to-digital (A D) or digital-to-analog (D A) converters can be a chancey thing unless the specifications are understood by the
More informationL9: Analog Building Blocks (OpAmps,, A/D, D/A)
L9: Analog Building Blocks (OpAmps,, A/D, D/A) Acknowledgement: Dave Wentzloff Introduction to Operational Amplifiers DC Model Typically very high input resistance ~ 300KΩ v id in a v id out High DC gain
More informationGetting Precise with MSP430 Sigma-Delta ADC Peripherals Vincent Chan MSP430 Business Development Manager TI Asia
Getting Precise with MSP43 Sigma-Delta ADC Peripherals Vincent Chan MSP43 Business Development Manager TI Asia vince-chan@ti.com 25 Texas Instruments Inc, Slide 1 Agenda Sigma-Delta basics & benefits Understanding
More informationDigital to Analog Conversion. Data Acquisition
Digital to Analog Conversion (DAC) Digital to Analog Conversion Data Acquisition DACs or D/A converters are used to convert digital signals representing binary numbers into proportional analog voltages.
More informationSignal Characteristics and Conditioning
Signal Characteristics and Conditioning Starting from the sensors, and working up into the system:. What characterizes the sensor signal types. Accuracy and Precision with respect to these signals 3. General
More informationTL594 PULSE-WIDTH-MODULATION CONTROL CIRCUIT
Complete PWM Power Control Circuitry Uncommitted Outputs for 200-mA Sink or Source Current Output Control Selects Single-Ended or Push-Pull Operation Internal Circuitry Prohibits Double Pulse at Either
More informationLC 2 MOS 8-Channel, 12-Bit Serial, Data Acquisition System AD7890
a LC 2 MOS 8-Channel, 12-Bit Serial, Data Acquisition System AD7890 FEATURES Fast 12-Bit ADC with 5.9 s Conversion Time Eight Single-Ended Analog Input Channels Selection of Input Ranges: 10 V for AD7890-10
More informationFigure 1: Functional Block Diagram
MagAlpha MA120 Angular Sensor for 3-Phase Brushless Motor Key features U V W signals for block commutation Adjustable zero 500 khz refresh rate Ultra low latency: 3 µs Serial interface for settings 8.5
More informationDigital Acquisition of Analog Signals A Practical Guide
Digital Acquisition of Analog Signals A Practical Guide Nathan M. Neihart Senior Design Presentation Motivation A common task for many senior design projects is to interface an analog signal with a digital
More informationINTEGRATED CIRCUITS. AN109 Microprocessor-compatible DACs Dec
INTEGRATED CIRCUITS 1988 Dec DAC products are designed to convert a digital code to an analog signal. Since a common source of digital signals is the data bus of a microprocessor, DAC circuits that are
More informationMicrocontroller: Timers, ADC
Microcontroller: Timers, ADC Amarjeet Singh February 1, 2013 Logistics Please share the JTAG and USB cables for your assignment Lecture tomorrow by Nipun 2 Revision from last class When servicing an interrupt,
More informationDUAL STEPPER MOTOR DRIVER
DUAL STEPPER MOTOR DRIVER GENERAL DESCRIPTION The is a switch-mode (chopper), constant-current driver with two channels: one for each winding of a two-phase stepper motor. is equipped with a Disable input
More informationChapter 2 Analog-to-Digital Conversion...
Chapter... 5 This chapter examines general considerations for analog-to-digital converter (ADC) measurements. Discussed are the four basic ADC types, providing a general description of each while comparing
More informationCHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER
65 CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER 4.1 INTRODUCTION Many control strategies are available for the control of IMs. The Direct Torque Control (DTC) is one of the most
More informationAnalog to digital and digital to analog converters
Analog to digital and digital to analog converters A/D converter D/A converter ADC DAC ad da Number bases Decimal, base, numbers - 9 Binary, base, numbers and Oktal, base 8, numbers - 7 Hexadecimal, base
More informationTL594C, TL594I, TL594Y PULSE-WIDTH-MODULATION CONTROL CIRCUITS
Complete PWM Power Control Circuitry Uncommitted Outputs for 200-mA Sink or Source Current Output Control Selects Single-Ended or Push-Pull Operation Internal Circuitry Prohibits Double Pulse at Either
More informationHardware Platforms and Sensors
Hardware Platforms and Sensors Tom Spink Including material adapted from Bjoern Franke and Michael O Boyle Hardware Platform A hardware platform describes the physical components that go to make up a particular
More informationLC 2 MOS Signal Conditioning ADC AD7712
LC 2 MOS Signal Conditioning ADC AD7712 FEATURES Charge Balancing ADC 24 Bits No Missing Codes 0.0015% Nonlinearity High Level and Low Level Analog Input Channels Programmable Gain for Both Inputs Gains
More informationSupply Voltage Supervisor TL77xx Series. Author: Eilhard Haseloff
Supply Voltage Supervisor TL77xx Series Author: Eilhard Haseloff Literature Number: SLVAE04 March 1997 i IMPORTANT NOTICE Texas Instruments (TI) reserves the right to make changes to its products or to
More informationEE445L Fall 2011 Quiz 2A Page 1 of 6
EE445L Fall 2011 Quiz 2A Page 1 of 6 Jonathan W. Valvano First: Last: November 18, 2011, 2:00pm-2:50pm. Open book, open notes, calculator (no laptops, phones, devices with screens larger than a TI-89 calculator,
More informationADC Bit µp Compatible A/D Converter
ADC1001 10-Bit µp Compatible A/D Converter General Description The ADC1001 is a CMOS, 10-bit successive approximation A/D converter. The 20-pin ADC1001 is pin compatible with the ADC0801 8-bit A/D family.
More informationANALOG TO DIGITAL (ADC) and DIGITAL TO ANALOG CONVERTERS (DAC)
COURSE / CODE DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) ANALOG TO DIGITAL (ADC) and DIGITAL TO ANALOG CONVERTERS (DAC) Connecting digital circuitry to sensor devices
More informationLC 2 MOS Signal Conditioning ADC with RTD Current Source AD7711A *
a FEATURES Charge Balancing ADC 24 Bits No Missing Codes 0.0015% Nonlinearity 2-Channel Programmable Gain Front End Gains from 1 to 128 Differential Inputs Low-Pass Filter with Programmable Filter Cutoffs
More informationPC-based controller for Mechatronics System
Course Code: MDP 454, Course Name:, Second Semester 2014 PC-based controller for Mechatronics System Mechanical System PC Controller Controller in the Mechatronics System Configuration Actuators Power
More informationLab Exercise 6: Digital/Analog conversion
Lab Exercise 6: Digital/Analog conversion Introduction In this lab exercise, you will study circuits for analog-to-digital and digital-to-analog conversion Preparation Before arriving at the lab, you should
More informationDifferent Digital Method
Maxim > App Notes > DIGITAL POTENTIOMETERS Keywords: Digital Adjustment of DC-DC Converter Output Voltage in Portable Applications Oct 02, 2001 APPLICATION NOTE 818 Digital Adjustment of DC-DC Converter
More informationUNISONIC TECHNOLOGIES CO., LTD
U UNISONIC TECHNOLOGIES CO., LTD REGULATING PWM IC DESCRIPTION The UTC U is a pulse width modulator IC and designed for switching power supplies application to improve performance and reduce external parts
More informationS3C9442/C9444/F9444/C9452/C9454/F9454
PRODUCT OVERVIEW 1 PRODUCT OVERVIEW SAM88RCRI PRODUCT FAMILY Samsung's SAM88RCRI family of 8-bit single-chip CMOS microcontrollers offers a fast and efficient CPU, a wide range of integrated peripherals,
More information