Microprocessors and Applications ANITS - 8086 MP ADC – IC 0808, DAC – IC 7523

Slides:



Advertisements
Similar presentations
Interfacing to the Analog World
Advertisements

Interfacing to the Analog World
Analog-to-Digital Converter (ADC) And
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
Sensors Interfacing.
Data Acquisition ET 228 Chapter
Digital to Analogue Conversion Chapter 13. Why is conversion needed? Most signals in the world are analogue. Microprocessors and most computers computers.
Digital to Analogue Conversion
Digital to Analog and Analog to Digital Conversion
Digital Fundamentals Tenth Edition Floyd Chapter 12.
Announcements Assignment 8 posted –Due Friday Dec 2 nd. A bit longer than others. Project progress? Dates –Thursday 12/1 review lecture –Tuesday 12/6 project.
Data Acquisition Concepts Data Translation, Inc. Basics of Data Acquisition.
5/4/2006BAE Analog to Digital (A/D) Conversion An overview of A/D techniques.
Lecture 9: D/A and A/D Converters
Analogue to Digital Conversion
Interfacing Analog and Digital Circuits
Interfacing with the Analog World Wen-Hung Liao, Ph.D.
EET260: A/D and D/A converters
PH4705/ET4305: A/D: Analogue to Digital Conversion
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
DEEPAK.P MICROPROCESSORS AND APPLICATIONS Mr. DEEPAK P. Associate Professor ECE Department SNGCE 1.
Digital-to-Analog & Analog-to- Digital Conversion Anuroop Gaddam.
1 Sensors and Measurements Penderia & Pengukuran ENT 164 Signal Processing Elements Hema C.R. School of Mechatronics Engineering Northern Malaysia University.
ACOE2551 Microprocessors Data Converters Analog to Digital Converters (ADC) –Convert an analog quantity (voltage, current) into a digital code Digital.
The 8253 Programmable Interval Timer
Analog to Digital conversion. Introduction  The process of converting an analog signal into an equivalent digital signal is known as Analog to Digital.
Analog Capture- Port E. Digital to Analog and Analog to Digital Conversion D/A or DAC and A/D or ADC.
PREPARED BY V.SANDHIYA LECT/ ECE UNIT- 3 APPLICATIONS OF OP-AMP 1.
UNIT-IV 8255 PPI Various Modes Of Operation Interfacing To 8086.
Digital Control CSE 421.
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.
Embedded Systems Design 1 Lecture Set C Interfacing the MCS-51 to: –D/A Converter –A/D Converter.
Digital-to-Analog Analog-to-Digital Week 10. Data Handling Systems  Both data about the physical world and control signals sent to interact with the.
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.
EKT 314/4 WEEK 9 : CHAPTER 4 DATA ACQUISITION AND CONVERSION ELECTRONIC INSTRUMENTATION.
Analog-Digital Conversion. Other types of ADC i. Dual Slope ADCs use a capacitor connected to a reference voltage. the capacitor voltage starts at zero.
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
Digital to analog converter [DAC]
MECH 373 Instrumentation and Measurements
Microprocessors Data Converters Analog to Digital Converters (ADC)
Data Acquisition ET 228 Chapter
Digital-to-Analog Analog-to-Digital
Digital Control CSE 421.
Digital-to-Analog Analog-to-Digital
Everybody.
Electronic Devices Ninth Edition Floyd Chapter 13.
Analog-Digital Conversion
DATA CONVERTERS (Linear Circuits) S.Senthil Kumar, Dept. of Aero, KCT
EI205 Lecture 13 Dianguang Ma Fall 2008.
Chapter 13 Linear-Digital ICs
The 8085 Microprocessor Architecture
Interfacing of LCD with µP
Principles & Applications
Digital-to-Analog Analog-to-Digital
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Interfacing Memory Interfacing.
Chapter 7 Features and Interfacing of Programmable Devices for 8085 based systems.
Engineering 4862 Microprocessors Lecture 25
Created by Luis Chioye Presented by Cynthia Sosa
Simple ADC structures.
Simple ADC structures.
Programmable Interval timer 8253 / 8254
Lesson 8: Analog Signal Conversion
Digital Control Systems Waseem Gulsher
Conversation between Analogue and Digital System
Programmable Interval timer 8253 / 8254
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
8253 – PROGRAMMABLE INTERVAL TIMER (PIT). What is a Timer? Timer is a specialized type of device that is used to measure timing intervals. Timers can.
Chapter 7 Converters.
Presentation transcript:

ECE 313 – Microprocessors and Applications ANITS (Wednesday) 8086 MP ADC – IC 0808 DAC – IC 0800

Contents (Unit -4: Interfacing – 1) Memory interfacing to 8086 (Static RAM & EPROM) Methods of parallel data transfer 8255A Internal block diagram and system connections 8255A operational modes and initialization Constructing and sending 8255A control words Interfacing to Interfacing Stepper motor D/A and A/D converters.

Interfacing ADC In most of the cases, the PIO 8255 is used for interfacing the analog to digital converters with microprocessor. The analog to digital converters is treaded as an input device by the microprocessor The MPU sends an initializing signal to the ADC to start the analog to digital data conversation process. The start of conversation signal is a pulse of a specific duration.

Interfacing ADC The process of analog to digital conversion is a slow process, and the microprocessor has to wait for the digital data till the conversion is over. After the conversion is over, the ADC sends end of conversion EOC signal to inform the microprocessor that the conversion is over and the result is ready at the output buffer of the ADC. These tasks of issuing an SOC pulse to ADC, reading EOC signal from the ADC and reading the digital output of the ADC are carried out by the CPU using 8255 I/O ports.

ADC Interfacing Procedure General algorithm for ADC interfacing contains the following steps: 1. Ensure the stability of analog input, applied to the ADC. 2. Issue start of conversion pulse to ADC 3. Read end of conversion signal to mark the end of conversion processes. 4. Read digital data output of the ADC as equivalent digital output.

ADC Interfacing Procedure Analog input voltage must be constant at the input of the ADC right from the start of conversion till the end of the conversion to get correct results. This may be ensured by a sample and hold circuit which samples the analog signal and holds it constant for a specific time duration. The microprocessor may issue a hold signal to the sample and hold circuit. If the applied input changes before the complete conversion process is over, the digital equivalent of the analog input calculated by the ADC may not be correct.

ADC 0808 / 0809 The analog to digital converter chips 0808 and 0809 are 8- bit CMOS, successive approximation converters. This technique is one of the fast techniques for analog to digital conversion. The conversion delay is 100µs at a clock frequency of 640 KHz, which is quite low as compared to other converters. These converters do not need any external zero or full scale adjustments as they are already taken care of by internal circuits.

Internal 3:8 Analog Multiplexers Using these address inputs, multichannel data acquisition system can be designed using a single ADC.

ADC 0808 / 0809 These are unipolar analog to digital converters, i.e. they are able to convert only positive analog input voltage to their digital equivalent. These chips do no contain any internal sample and hold circuit

Block Diagram of ADC 0808 / 0809 DAC Analog Comparator Successive Approximation

Pin Diagram of ADC 0808 / 0809 Add A, B, C Digital Data

Pin Diagram of ADC 0808 / 0809

Pin Description : ADC 0808 / 0809 Pin NoSignal NameDescription 11VccSupply pins +5V 13GND 12Vref+Reference voltage positive (+5 Volts maximum) 16Vref -Reference voltage negative (0 Volts minimum) 26 – I/P0 –I/P7Analog inputs 25, 24, 23ADD A,B,CAddress lines for selecting analog inputs.

Pin Description : ADC 0808 / 0809 Pin NoSignal NameDescription 8, 14, 15, O7 – O0Digital 8-bit output with O7 MSB and O0 LSB 6SOCStart of conversion signal pin 7EOCEnd of conversion signal pin 9OEOutput latch enable pin, if high enables output 10CLKClock input for ADC 22ALEAddress Load Enable. Once loaded the multiplexer sends the appropriate channel to the converter on the chip.

Interfacing ADC Example: Interfacing ADC 0808 with 8086 using 8255 ports. Use port A of 8255 for transferring digital data output of ADC to the CPU and port C for control signals. Assume that an analog input is present at I/P2 of the ADC and a clock input of suitable frequency is available for ADC.

Interfacing 0808 with 8086

Interfacing ADC Solution: The analog input I/P2 is used and therefore address pins A,B,C should be 0,1,0 respectively to select I/P2. The OE and ALE pins are already kept at +5V to select the ADC and enable the outputs. Port C upper acts as the input port to receive the EOC signal while port C lower acts as the output port to send SOC to the ADC.

Interfacing ADC Port A acts as a 8-bit input data port to receive the digital data output from the ADC. The 8255 control word is written as follows: D7 D6 D5 D4 D3 D2 D1 D

Interfacing ADC The required ALP is as follows: MOV AL, 98h ;initialise 8255 as discussed above. OUT CWR, AL ; MOV AL, 02h ;Select I/P2 as analog input OUT Port B, AL ; MOV AL, 00h ;Give start of conversion OUT Port C, AL ; pulse to the ADC MOV AL, 01h OUT Port C, AL MOV AL, 00h OUT Port C, AL

Interfacing ADC WAIT: IN AL, Port C ;Check for EOC by reading RCR ; port C upper and rotating JNC WAIT ; through carry. IN AL, Port A ;If EOC, read digital equivalent ;in AL HLT ;Stop.

Interfacing DAC The digital to analog converters convert binary number into their equivalent voltages. The DAC find applications in areas like – digitally controlled gains – motors speed controls – programmable gain amplifiers etc.

AD DAC 8-bit DAC This is a 16 pin DIP, multiplying digital to analog converter, containing R-2R ladder for D-A conversion Also contains single pole double thrown NMOS switches to connect the digital inputs to the ladder.

R – 2R Ladder Type DAC The R-2R resistor ladder network directly converts a parallel digital symbol / word into an analog voltage.

Functional Block Diagram

Pin Diagram of AD 7523 DAC

Pin Description : AD DAC Pin NoSignal NameDescription 14VccSupply range is from +5V to +15V 3GND 15Vref invary between -10V to +10V B1 – B8Binary Input 1, 2OUT1, OUT 2Analog output 12, 13NCNo connection 16R FB R Feedback (Feedback resistor )(To be connected with Op amp)

Pin Description of AD 7523 DAC The maximum analog output voltage will be any where between -10V to +10V, when all the digital inputs are at logic high state. An operational amplifier is used as a current to voltage converter at the output of DAC to convert the current output of DAC to a proportional output voltage. Usually a Zener is connected between OUT1 and OUT2 to save the DAC from negative transients. An external feedback resistor acts to control the gain. One may not connect any external feedback resistor, if no gain control is required.

Example Problem: Interfacing DAC AD7523 with an 8086 CPU running at 8MHZ and write an assembly language program to generate a saw tooth waveform of period 1ms with Vmax 5V. Solution: Fig shows the interfacing circuit of AD with 8086 using program gives an ALP to generate a sawtooth waveform using circuit.

Interfacing of AD DAC Note: Op-amp is connected externally with AD 7523

ALP Program ASSUME CS:CODE CODE SEGMENT START: MOV AL,80h ;make all ports output OUT CW, AL AGAIN: MOV AL,00h ;start voltage for ramp BACK : OUT PA, AL;Send to Port A INC AL CMP AL, 0F2h JB BACK;Jump if Carry / Below JMP AGAIN CODE ENDSEND START

Program Explanation In the above program, port A is initialized as the output port for sending the digital data as input to DAC. The ramp starts from the 0V (analog), hence AL starts with 00H. To increment the ramp, the content of AL is increased during each execution of loop till it reaches F2H. After that the saw tooth wave again starts from 00H, i.e. 0V(analog) and the procedure is repeated. The ramp period given by this program is precisely ms.

ALP Program to generate Triangular waveform 2000:RPT1:MOV CX, 0FF; MOV AL, 00; UP:INC AL; MOV DX, 0FFE0 ; OUT DX, AL; MOV DX, 0FFE2 ; OUT DX, AL; LOOP UP MOV CX, 0FF; MOV AX, CX;

ALP Program to generate Triangular waveform DOWN:DEC AL MOV DX, 0FFE0 ; OUT DX, AL; MOV DX, 0FFE2 ; OUT DX, AL; LOOP DOWN JMP RPT1;Repeat the above Process //Note: Initialization of Ports must be done through initialization of CWR

Doubts Clarifications

ADC Conversion Techniques Flash Conversion Successive Approximation Conversion Delta-encoded ADC (up-down counter type).

3 – bit Flash Type ADC

Successive Approximation Type ADC

DAC Conversion Techniques Weighted Resistors method R-2R ladder network method Serial DAC converter BCD DAC Bipolar DAC

Binary Weighted resistor based DAC

R-2R ladder network method based DAC

This network has some unique and interesting properties. 1. Easily scalable to any desired number of bits 2. Uses only two values of resistors which make for easy and accurate fabrication and integration 3. Output impedance is equal to R, regardless of the number of bits, simplifying filtering and further analog signal processing circuit design 4 The R-2R resistor ladder based digital-to-analog converter (DAC) is a simple, effective, accurate and inexpensive way to create analog voltages from digital values.

THANK YOU