Dorian’s TS1 Systemes Electroniques students CONCEPTION OF A DIGITAL TO ANALOG CONVERSION BOARD Objective : To conceive a Digital to Analog conversion.

Slides:



Advertisements
Similar presentations
Analog to Digital Conversion (ADC)
Advertisements

Digital to Analog Converter By Rushabh Mehta Manthan Sheth.
1 ECE 372 – Microcontroller Design Parallel IO Ports - Outputs Parallel IO Ports E.g. Port T, Port AD Used to interface with many devices Switches LEDs.
LOGO Lab Supervisor – Dr. WH Lau EE3271 Design Laboratory.
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
Sensors Interfacing.
Data Acquisition ET 228 Chapter
SPI Serial Peripheral Interface. SPI Serial Peripheral Interface is communication between two devices, one bit at a time sequential one bit at time over.
ECE 265 – LECTURE 14 Analog Signal Acquisition The A/D converters 5/14/ ECE265.
Lecture 9: D/A and A/D Converters
10/23/2003ME DAC Lecture1 DAC Sunij Chacko Pierre Emmanuel Deliou Thomas Holst Used with modification.
Interfacing Analog and Digital Circuits
Introduction to Data Conversion
Peripherals and their Control An overview of industrially available “peripheral devices” Some ideas for Laboratories and Quiz / Exam questions.
Analogue Input/Output
Introduction to Op Amps
Digital to Analog Converters
Serial Peripheral Interface (SPI) Bus. SPI Bus There is no official specification for the SPI bus. It is necessary to consult the data sheets of the devices.
DEEPAK.P MICROPROCESSORS AND APPLICATIONS Mr. DEEPAK P. Associate Professor ECE Department SNGCE 1.
Electronics Involves the use of devices and circuits to control the flow of electric current to achieve some purpose. These circuits contain: Resistors,
Digital Fundamentals Floyd Chapter 1 Tenth Edition
1 Applied Control Systems Technology. 2 Pin configuration Applied Control Systems.
Electronics for PS and LHC transformers Grzegorz Kasprowicz Supervisor: David Belohrad AB-BDI-PI Technical student report.
CRKit RF Control WINLAB – Rutgers University Date : June Authors : Prasanthi Maddala, Khanh Le,
Analog to Digital conversion. Introduction  The process of converting an analog signal into an equivalent digital signal is known as Analog to Digital.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals with PLD Programming.
K.C.RAVINDRAN,GRAPES-3 EXPERIMENT,OOTY 1 Development of fast electronics for the GRAPES-3 experiment at Ooty K.C. RAVINDRAN On Behalf of GRAPES-3 Collaboration.
ENG3640 Review and Exam Question1 ENG3640 Microcomputer Interfacing Review & Final Exam Structure.
Final Presentation Winter Final Presentation Winter Students Naftali Weiss Nadav Melke Instructor Mony Orbach Duration Single Semester.
7 - 1 Texas Instruments Incorporated Module 7 : Serial Peripheral Interface C28x 32-Bit-Digital Signal Controller TMS320F2812.
Analog-to-Digital and Digital-to-Analog Conversion
OCRP RF Control WINLAB – Rutgers University Date : June Authors : Prasanthi Maddala, Khanh Le,
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd © 2008 Pearson Education Chapter 1.
Analog Capture- Port E. Digital to Analog and Analog to Digital Conversion D/A or DAC and A/D or ADC.
Digital to Analog Converter (DAC)
Interfacing Data Converters. D/A converters Design an O/P port with the address FFh to interface the 1408 D/A converter that is calibrated for 0 to 10V.
ECE 2799 Electrical and Computer Engineering Design ANALOG to DIGITAL CONVERSION Prof. Bitar Last Update:
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
Embedded Systems Design 1 Lecture Set C Interfacing the MCS-51 to: –D/A Converter –A/D Converter.
Topic 1 Topic 1 Objectives Topic 2 Topic 2 Topic 3 Topic 3 Topic 4 Topic 4Menu.
M. TWEPP071 MAPS read-out electronics for Vertex Detectors (ILC) A low power and low signal 4 bit 50 MS/s double sampling pipelined ADC M.
1 COMPARATORS Function: Compares two input voltages and produces an output in either of two states indicating the greater than or less than relationship.
0808/0809 ADC. Block Diagram ADC ADC0808/ADC Bit μP Compatible A/D Converters with 8-Channel Multiplexer The 8-bit A/D converter uses successive.
Lecture Notes / PPT UNIT III
FOR MORE CLASSES VISIT   ECET 340 Week 1 HomeWork 1  ECET 340 Week 1 iLab 1  ECET 340 Week 2 HomeWork 2  ECET 340 Week 2 iLab.
Electronic Devices and Circuit Theory
MADEIRA Valencia report V. Stankova, C. Lacasta, V. Linhart Ljubljana meeting February 2009.
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
Digital to analog converter [DAC]
MECH 373 Instrumentation and Measurements
EKT124 Digital Electronics 1 Introduction to Digital Electronics
Data Acquisition ET 228 Chapter
CHAPTER 6 VOLTAGE REGULATOR Tulus Ikhsan Nasution.
SAR ADC Input Types TIPL 4003 TI Precision Labs – ADCs
Chapter 06 Logic Gate Circuitry.
CPU1 Block Specifications
Lecture 6: TI MSP430 IO Interfacing
ECET 340 Competitive Success/snaptutorial.com
ECET 340 Education for Service-- snaptutorial.com.
ECET 340 Education for Service/tutorialrank.com
ECET 340 Teaching Effectively-- snaptutorial.com.
Digital to Analog Converters
Chapter 7 Features and Interfacing of Programmable Devices for 8085 based systems.
Engineering 4862 Microprocessors Lecture 25
Chapter 6: Voltage Regulator
Lesson 8: Analog Signal Conversion
ADC and DAC Data Converter
Digital Fundamentals Floyd Chapter 1 Tenth Edition
Chapter 5 OUTLINE Op-Amp from 2-Port Blocks
ADC and DAC Data Converter
Presentation transcript:

Dorian’s TS1 Systemes Electroniques students

CONCEPTION OF A DIGITAL TO ANALOG CONVERSION BOARD Objective : To conceive a Digital to Analog conversion board driven by a microcontroller, allowing the elaboration of an output triangular wave whose amplitude, offset and frequency are programmable

CONCEPTION OF A DIGITAL TO ANALOG CONVERSION BOARD Limiting values : Vomin = -10V Vomax = +10V Vo(peak to peak)min = 0V Vo(peak to peak)max = 20V Programmable frequency Example: Vomax = 5V Vomin = -7.5V Vo(p-p) = 12.5V Offset = -1.25V

CONCEPTION OF A DIGITAL TO ANALOG BOARD Specification manual : We have to conceive 2 distinct Digital to Analog conversion boards : the first one equipped with the 8 bits parallel inputs DAC DAC0832 the second one equipped with the 16 bits serial inputs DAC DAC714 Each conversion board will be driven by the evaluation board MC68HC12A4EVB equipped with the Freescale 68HC812A4 16 bits µC The programmation language will be C language Optocouplers will be used in order to electricaly isolate digital parts from analog parts

Summary A : Parallel inputs Digital to Analog conversion board conversion board B : Serial inputs Digital to Analog conversion board conversion board C : Comparison of both technologi- cal solutions cal solutions

A : Parallel inputs digital to analog conversion board conversion board B : Serial inputs digital to analog conversion board C : Comparison of both technologi- cal solutions

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 1. The main characteristics of the DAC0832 (1 of 3) 8 bits resolution 2 current outputs IOUT1 and IOUT2  Needs addition of a Current to Voltage converter Single supply Capacity to operate in a double buffered configuration

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 1. The main characteristics of the DAC0832 (2 of 3) Bipolar mode configuration To obtain -10 V < Vo < +10 V, we choose VREF = + 10 V Thus, 1 LSB = 2.VREF/256 = 78 mV So, -10 V < Vo < V Vo = VREF.(DIGITAL CODE – 128)/128 Remark : Although the DAC just needs a single supply, the OPAmps of the Current to Voltage converter need a symetrical double power supply V+/V- in order to deliver a bipolar output voltage

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 1. The main characteristics of the DAC0832 (3 of 3) The outputs IOUT1 and IOUT2 are updated after the negative edge of/WR, provided that the DAC is enabled(/CS=ILE=0) The number Nb to convert must remain stable as long as /WR is low  We decide to drive the DAC with the /WR input exclusively and we will connect the other inputs (ILE and /CS) to their active low level We name the control signal driving the /WR input Conv_Ord (Conversion Order). This signal will be elaborated by the microcontroller Conv_Ord

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 2. Elaboration of the reference voltage VREF = 10V Stable reference diode : VZ = V +/- 12mV VREF = VZ(1 + R2/R1) Final proposition :

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 3. Block diagram of the digital to analog conversion * 9 digital input signals : Conv_ord : Conversion Order signal Nb : Number varying between 0 and 255 * 1 analog output signal : Vo

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 4. The electrical isolation between digital and analog parts Digital parts Analog parts Optocouplers (x9)

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 5. The connection of ILQ74 optocouplers (1 of 2) Diagram 1 Diagram 2 1 C 0 S S C 0 1IOL IOH We prefer the non inverting diagram 1  IF[ILQ74] = IOL[68HC12] Problem : IF[ILQ74] recommanded = 10 mA IOLmax[68HC12] = 2 mA  Need to add a buffer between the µC and the optocoupler

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 5. The connection of ILQ74 optocouplers (2 of 2) IOLmax[74LS645] = 24 mA IF[ILQ74] = 10 mA IOLmax[68HC12] = 2 mA IIL[74LS645] = 0.4 mA Synthesis of used components 74LS645 : 8 buffers/device ILQ74 : 4 optocouplers/device  1x74LS xILQ74 for the isolation of Nb data Buffer

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 6. Calculus of resistors used in conjunction with ILQ74 optocouplers R1 sets IF to 10 mA R2 imposes saturation of the optotransistor We choose Thus

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 7. The connection of SFH615 optocoupler For the last data to isolate (Conv_Ord) we decide to use a SFH615 optocoupler (single opto per device) and to elaborate the buffer with a PNP transistor 1 0 C S C S 1 0

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 8. Block diagram of the Digital to Analog conversion system The conversion board is driven by 9 Input/Output Port pins declared as outputs : PF0 : Conversion order signal (Conv_Ord) PH[0-7] : Number Nb to convert into an analog voltage

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 9. The electrical diagram BUFFERSBUFFERS OPTOCOUPLERS DAC VOLTAGE REF CURRENT TO VOLTAGE CONVERTER

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 10. Production of a test program Vomax = 5V Vomin = -7.5V Vo(pk-pk) = 12.5V Offset = -1.25V We suggest to elaborate the next output voltage : f = 0.1 Hz Given that Vo = VREF.(Nb – 128)/128 we can deduce : For Vo = Vomin = -7.5V, Nb = Nbmin = 32 For Vo = Vomax = +5V, Nb = Nbmax = 192  To elaborate a full period T we will successively convert numbers Nb from 32 to 192 and then from 191 to 31

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 10. Flowchart of the test program : main function main() In init() : Nbmin = 32 Nbmax = 192 PF0 and PH[0-7] Input/Output Port pins declared as outputs

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 10. Flowchart of the test program: conversion(Nb) function t0 t1 t2 t Start_Conv_Ord = 0xFE End_Conv_Ord = 0x01 Nb t0t1t2 PORTH PF0 delay(T) allows adjustment of the frequency to the desired value (here 0.1 Hz)

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 11. Laboratory activities

CONCEPTION OF THE PARALLEL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 11. Laboratory activities : the output voltage

A : Parallel inputs digital to analog conversion board B : Serial inputs digital to analog conversion board conversion board C : Comparison of both technologi- cal solutions

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 1. The main characteristics of the DAC714 (1 of 6) 16 bits resolution The number Nb to convert must be serially transmitted : * MSB first * In synchronism with a clock signal The DAC must be enabled during transmission After transmission of a number Nb, a low level pulse triggers conversion process

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 1. The main characteristics of the DAC714 (2 of 6) DAC714 will be driven by a SPI (Serial Peripheral Interface) :

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 1. The main characteristics of the DAC714 (3 of 6) Configuration of 68HC812 SPI : Master mode MSB first transmission Transmission of data bits (Nb) in synchronism with negative edges of the clock signal

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 1. The main characteristics of the DAC714 (4 of 6) The conversion of a 16 bits Nb needs 17 clock pulses : Problem Problem : The negative pulse on /A1 input must be elaborated in synchronism with the positive edge of a 17 th clock pulse. How can we solve the problem ? ? But a SPI can elaborate multiple of 8 clock pulses exclusively.

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 1. The main characteristics of the DAC714 (5 of 6) A deep study of internal structure of the DAC714 shows that it can be driven with the next control signals : Thus the connections : And the name given to the different signals : CLK Nb Conv_Ord DAC_En Nb CLK DAC_En Conv_Ord

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 1. The main characteristics of the DAC714 (6 of 6) The DAC714 can operate in unipolar or bipolar mode :  We choose to supply the DAC with a +15V/-15V power supply Thus 1 LSB = 20/65536 = 305 µV

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 2. The electrical isolation between digital parts and analog parts Digital parts Optocouplers (x4) Analog parts

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 3. The choice of HCPL2232 optocouplers The maximum frequency of SPI clock signal is 4 MHz ILQ74 :  This optocoupler cannot fit SPI specifications because the switching times ton and toff of the optotransistor are too long Thus we choose HCPL2232 optocoupler which allows 5 Mbits/s data rates Moreover, the input current IF is low enough so that the µC can drive the optocoupler without any buffer

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 4. The connection of HCPL2232 optocouplers HCPL2232 DAC714 2V < VIH < V V (13.6V).  If we supply the HCPL2232 with 15V, we have VOH[HCPL2232] = 13.5V Given that VIH[DAC714]max = 13.6V we will supply the HCPL2232 with 9V.  VOH[HCPL2232] = 7.5V Thus : Calculus of R :

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 5. Block diagram of the Digital to Analog conversion system The Digital to Analog conversion board is driven by : the 2 MOSI and SCK SPI pins the 2 PS4 and PS7 Input/Output Port pins declared as outputs

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 6. The electrical diagram Optocouplers DAC POWER SUPPLY

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 7. Production of a test program Vomax = 5V Vomin = -7.5V Vo(pk-pk) = 12.5V Offset = -1.25V Same output voltage : f = 0.1 Hz Given that 1 LSB = 20/65536V we can deduce : For Vo = Vomin = -7.5V, Nb = Nbmin = For Vo = Vomax = +5V, Nb = Nbmax =  To elaborate a full period T we will successively convert numbers Nb from to and then from to

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 7. Flowchart of the test program : main function main() In init() : Nbmin = Nbmax = Configuration of the SPI The 2 PS4 and PS7 Input/Output Port pins declared as outputs

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 7. Flowchart of the test program : conversion(Nb) function t0 t1 t2 t3 t4 t t0 t1t2 t3t4 delay(T) allows adjustment of the frequency to the desired value (here 0.1 Hz)

CONCEPTION OF THE SERIAL INPUTS DIGITAL TO ANALOG CONVERSION BOARD 8. Laboratory activities : the output voltage

A : Parallel inputs digital to analog conversion board B : Serial inputs digital to analog conversion board C : Comparison of both technologi- cal solutions cal solutions

COMPARISON OF BOTH TECHNOLOGICAL SOLUTIONS Parallel inputs board : 8 bits resolution / 1 LSB = 78 mV Serial inputs board : 16 bits resolution / 1 LSB = 305 µV Performances of both boards are very different :  Let’s consider a 16 bits parallel inputs DAC : AD parallel inputs 2 current outputs 1 reference voltage input  Same functionalities as the DAC0832 but with a 16 bits resolution

COMPARISON OF BOTH TECHNOLOGICAL SOLUTIONS AD768 2 OPAmps LM SFH ILQ Buffers 17 GPIO 1 SPI 2 GPIO2 HCPL2232 DAC714 78L09

Belaïd Daoudi MathieuSylvain PierrickRaphaëlHervé Yves Fayçal Sarah Mickaël Cédric Morgan Maureen MathieuStephenSoundarRomain Thanks a lot for your attention Belaïd Daoudi MathieuSylvain PierrickRaphaëlHervé Yves Fayçal Sarah Mickaël Cédric Morgan Maureen MathieuStephenSoundarRomain