SlideShare uma empresa Scribd logo
1 de 32
UJJAIN ENGINEERING COLLEGE, UJJAIN
DEPARTMENT OF ELECTRONICS AND
COMMUNICATION ENGINEERING
TOPIC -: INTERFACING WITH PERIPHERALS- ANALOG
TO DIGITAL CONVERTERS AND DIGITAL TO ANALOG
CONVERTERS IN 8086
GUIDED BY :- MISS ANSHUL MALIK
 PRASANNA VYAS (0701ec191043)
 PRASHANT KAUSHAL (0701ec191044)
 PRIYASH KIRADE (0701ec191045)
 RADHESHYAM PARMAR (0701ec191046)
 RAHUL JARIWALA (0701ec191047)
 NIMESH SINGH (0701ec191037)
 NISHA MAHESHWARI (0701ec191038)
 PALAK GUPTA (0701ec191039)
 PANKHURI VAPTA (0701ec191040)
 PARTH ARJARIYA (0701ec191041)
 PRANITA NIRAPURE (0701ec191042)
Submitted By :-
SYNOPSIS
• Interfacing with peripherals, 8255 PPI in brief
• ADC interfacing
• ADC 0808/0809
• Interfacing ADC 0808 with 8086 using 8255 PPI
• DAC interfacing
• AD 7523 8 bit multiplying DAC
• Interfacing AD 7523 with 8086 using 8255 PPI
INTERFACING WITH PERIPHERALS
• Any application of a microprocessor based system requires the
transfer of data between external circuitry to the microprocessor and
from microprocessor to the external circuitry. The transfer of data is
called input/output data transfer or I/O data transfer. This data
transfer is done with the help of I/O ports.
• This type of interfacing is called I/O interfacing. External devices
(connected to I/O ports) used to interface are called peripheral
devices.
• There are many peripheral devices which can be interfaced with
microprocessor like keyboard, mouse, printer, 8253 timer, 8255 PPI,
ADCs and DACs.
8255 PROGRAMMABLE PERIPHERAL
INTERFACE(PPI)
 For most of the applications 8086 needs parallel input ,output data
to/from the peripherals.
 8255 is a device used to interface different real time peripherals to
the microprocessors which can be initialized for different modes
operations like simple I/O, Strobed I/O and handshaking I/O.
 It has three 8-bit parallel ports : port A, port B, port C.
PIN DIAGRAM
MODES OF OPERATION
8255 can be used in two modes: Bit set/Reset (BSR) mode and I/O
mode. The BSR mode is used to set or reset the bits in port C.
The I/O mode is further divided into 3 modes: mode 0, mode 1
and mode 2.
• Mode 0:
 Ports A, B, and C can be individually programmed as input or output
ports.
 Port C is divided into two 4-bit ports which are independent from
each other.
MODES OF OPERATION
• Mode 1:
 Ports A and B are
programmed as input or
output ports.
 Port C is used for
handshaking. In the
handshake mode, two types
of I/O data transfer can be
implemented: status check
and interrupt.
• Mode 2:
 Port A is programmed to be
bi-directional.
 Port C is for handshaking.
 Port B can be either input or
output in mode 0 or mode 1.
ADC INTERFACING
This topic is aimed at the study of 8-bit and 12-bit analog
to digital converters and their interfacing with 8086. In
most of the cases, the PIO 8255 is used for interfacing the
analog to digital converters with a microprocessor.
• The function of an A/D converter is to produce a digital word
which represents the magnitude of some analog voltage or
current.
ADC INTERFACING
• The resolution of an A/D converter refers to the number of bits
in the output binary word.
• Accuracy and linearity specifications have the same meaning
for an A/D converter as they do for a D/A converter.
• Another important specification for an ADC is its conversion
time.
ADC INTERFACING
• This is simply the time it takes the converter to produce a valid output binary
code for an applied input voltage.
• After the conversion is over, the ADC sends end of conversion (EOC) signal to
inform the microprocessor and the result is ready at the output buffer of the
ADC.
• The time taken by the ADC from the active edge of SOC pulse (the edge at
which the conversion process actually starts) till the active edge of EOC signal is
called as the conversion delay of the ADC.
ADC INTERFACING
• The available ADCs in the market use different conversion
techniques for the conversion of analog signals to digital
signals.
• Parallel converter or flash converter, Successive approximation
and dual slope integration techniques are the most popular
techniques used in the integrated ADC chips.
ADC 0808/0809
• These are unipolar analog to digital converters, i.e. they are able to convert
only positive analog input voltages to their digital equivalents.
• These chips do not contain any internal sample and hold circuit.
• The analog to digital converter chips 0808 and 0809 are 8-bit CMOS,
successive approximation converters.
• The conversion delay is 100 µs at a clock frequency of 640 kHz, which is
quite low as compared to other converters.
ADC 0808/0809
• These converters internally have a
3:8 analog multiplexer so that at a
time eight different analog inputs
can be connected to the chips.
• Out of these eight inputs only one
can be selected for conversion by
using address lines ADD A, ADD B
and ADD C, as shown.
• Using these address inputs,
multichannel data acquisition
systems can be designed using a
single ADC.
ADC 0808/0809 PIN DIAGRAM
ADC INTERFACING
• A 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 (SOC) pulse to ADC.
3. Read end of conversion (EOC) signal to mark the end of
conversion process.
4. Read digital data output of the ADC as equivalent digital output.
ADC 0808/0809 BLOCK DIAGRAM
INTERFACING ADC 0808 WITH
8086 USING 8255 PORTS
Interface 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. Draw the schematic and write required ALP.
INTERFACING ADC 0808 WITH
8086 USING 8255-STEPS
• The analog input I/P2 is used & therefore address pins A,B,C should
be 0,1,0 respectively to select I/P2.
• The OE (Out put latch Enable) & 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 ADC.
• Port A acts as a 8-bit input data port to receive the digital data
output from the ADC.
INTERFACING ADC 0808 WITH
8086 USING 8255
• The 8255 control word is written as
follows:
D7 D6 D5 D4 D3 D2 D1 D0 Control
Word
1 0 0 1 1 0 0 0 = 98H
INTERFACING ADC 0808 WITH 8086
USING 8255- BLOCK DIAGRAM
INTERFACING ADC 0808 WITH
8086 USING 8255 PORTS- ALP
• The required
ALP is given as
follows:
DAC INTERFACING
The digital to analog converters convert binary numbers into
their analog equivalent voltages or currents.
• Several techniques are employed for digital to analog
conversion.
i. Weighted resistor network
ii. R-2R ladder network
DAC INTERFACING
• The DAC find applications in areas like :
1. Digitally controlled gains
2. Motor speed controls
3. Programmable gain amplifiers etc.
• D/A converter have many applications besides those where they are used with
a microcomputer. Most speech synthesizer integrated circuits contain a D/A
converter to convert stored binary data words into analog audio signals.
DAC INTERFACING
 Characteristics:
1. Resolution: It is a change in analog output for one LSB change
in digital input. It is given by(1/2^n )*Vref.
2. Settling time: It is the time required for the DAC to settle for a
full scale code change
AD 7523 8-BIT MULTIPLYING DAC
• Intersil’s AD 7523 is a 16 pin DIP, multiplying digital to analog
converter, containing R-2R ladder (R=10K) for digital to analog
conversion.
• Power supply +5v to +15v
• Vref -> -10v to +10v
• The maximum analog output voltage will be +10v
AD 7523 8-BIT MULTIPLYING DAC
• A Zener is connected between OUT1 & OUT2 to save the DAC from
negative transients.
• An operational amplifier is used as a current – to – voltage converter
at the output of AD 7523.
• An external feedback resister acts to control the gain.
AD 7523 8-BIT MULTIPLYING DAC
PIN DIAGRAM
INTERFACING OF AD 7523 WITH 8086
Interface DAC AD7523 with the 8086
running at 8MHz & write ALP to generate a
saw tooth waveform of period 1ms with
Vmax 5v.
INTERFACING OF AD 7523 WITH 8086
• The required ALP
is as follows:
INTERFACING OF AD 7523 WITH
8086-BLOCK DIAGRAM
REFERENCES
1. https://www.iare.ac.in/sites/default/files/lecture_notes/IARE_MP
ID_Lectures_Notes.pdf
2. https://vtucsenotes.files.wordpress.com/2013/06/unit-6.pdf
3. https://nptel.ac.in/content/storage2/courses/106108100/pdf/T
eacher_Slides/mod3/M3L8.pdf
THANK YOU

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdf
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1
 
peripheral interfacing
peripheral interfacingperipheral interfacing
peripheral interfacing
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
8051 ch9-950217
8051 ch9-9502178051 ch9-950217
8051 ch9-950217
 
8251 USART
8251 USART8251 USART
8251 USART
 
Pic 18 microcontroller
Pic 18 microcontrollerPic 18 microcontroller
Pic 18 microcontroller
 
Interrupts of 8086
Interrupts of 8086Interrupts of 8086
Interrupts of 8086
 
8086 modes
8086 modes8086 modes
8086 modes
 
Digital electronics logic families
Digital electronics logic familiesDigital electronics logic families
Digital electronics logic families
 
Switches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontrollerSwitches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontroller
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
 
TMS320C5x
TMS320C5xTMS320C5x
TMS320C5x
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
 
Microcontroller pic 16f877 addressing modes instructions and programming
Microcontroller pic 16f877 addressing modes instructions and programmingMicrocontroller pic 16f877 addressing modes instructions and programming
Microcontroller pic 16f877 addressing modes instructions and programming
 
8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
 

Semelhante a Interfacing with peripherals: analog to digital converters and digital to analog converters in 8086 (MCMP)

analog to digital converter and dac final
analog to digital converter and dac finalanalog to digital converter and dac final
analog to digital converter and dac final
DrVikasMahor
 
Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]
Guhan k
 
digitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdfdigitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdf
satyamsinha37
 
adcanddac hai kya bhayy me know if-01.pptx
adcanddac hai kya bhayy me know if-01.pptxadcanddac hai kya bhayy me know if-01.pptx
adcanddac hai kya bhayy me know if-01.pptx
shivraj3252
 
Digital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE studentsDigital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE students
Mitul Lakhani
 
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Mohanumar S
 

Semelhante a Interfacing with peripherals: analog to digital converters and digital to analog converters in 8086 (MCMP) (20)

ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdf
 
analog to digital converter and dac final
analog to digital converter and dac finalanalog to digital converter and dac final
analog to digital converter and dac final
 
Analog to Digital Converters
Analog to Digital ConvertersAnalog to Digital Converters
Analog to Digital Converters
 
Lica 7th chapter slides
Lica 7th chapter slidesLica 7th chapter slides
Lica 7th chapter slides
 
Pic ppt 13104022(4th_year)
Pic ppt 13104022(4th_year)Pic ppt 13104022(4th_year)
Pic ppt 13104022(4th_year)
 
8255
82558255
8255
 
Unit iii microcontrollers final1
Unit iii microcontrollers final1Unit iii microcontrollers final1
Unit iii microcontrollers final1
 
Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]
 
digitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdfdigitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdf
 
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLERDIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
 
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
UNIT 4 & 5 - I         nterfacing_Lecture7.pptxUNIT 4 & 5 - I         nterfacing_Lecture7.pptx
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
 
Adc and dac
Adc and dacAdc and dac
Adc and dac
 
adcanddac hai kya bhayy me know if-01.pptx
adcanddac hai kya bhayy me know if-01.pptxadcanddac hai kya bhayy me know if-01.pptx
adcanddac hai kya bhayy me know if-01.pptx
 
Digital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE studentsDigital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE students
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and robotics
 
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
 INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER   INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
 
Wds
WdsWds
Wds
 
20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt
 
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
 
QuickSilver Controls QCI-DS018 QCI-D2-IG8
QuickSilver Controls QCI-DS018 QCI-D2-IG8QuickSilver Controls QCI-DS018 QCI-D2-IG8
QuickSilver Controls QCI-DS018 QCI-D2-IG8
 

Último

Escorts Service Arekere ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Arekere ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Arekere ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Arekere ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men 🔝Deoghar🔝 Escorts...
➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men  🔝Deoghar🔝   Escorts...➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men  🔝Deoghar🔝   Escorts...
➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men 🔝Deoghar🔝 Escorts...
amitlee9823
 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
drmarathore
 
➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men 🔝kakinada🔝 Escor...
➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men  🔝kakinada🔝   Escor...➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men  🔝kakinada🔝   Escor...
➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men 🔝kakinada🔝 Escor...
amitlee9823
 
CHEAP Call Girls in Hauz Quazi (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Hauz Quazi  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 

Último (20)

HLH PPT.ppt very important topic to discuss
HLH PPT.ppt very important topic to discussHLH PPT.ppt very important topic to discuss
HLH PPT.ppt very important topic to discuss
 
Call Girls in Vashi Escorts Services - 7738631006
Call Girls in Vashi Escorts Services - 7738631006Call Girls in Vashi Escorts Services - 7738631006
Call Girls in Vashi Escorts Services - 7738631006
 
Escorts Service Arekere ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Arekere ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Arekere ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Arekere ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
Top Rated Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
 
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
 
Call Girls Pimple Saudagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Pimple Saudagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Pimple Saudagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Pimple Saudagar Call Me 7737669865 Budget Friendly No Advance Booking
 
➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men 🔝Deoghar🔝 Escorts...
➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men  🔝Deoghar🔝   Escorts...➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men  🔝Deoghar🔝   Escorts...
➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men 🔝Deoghar🔝 Escorts...
 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
 
➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men 🔝kakinada🔝 Escor...
➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men  🔝kakinada🔝   Escor...➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men  🔝kakinada🔝   Escor...
➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men 🔝kakinada🔝 Escor...
 
(INDIRA) Call Girl Napur Call Now 8617697112 Napur Escorts 24x7
(INDIRA) Call Girl Napur Call Now 8617697112 Napur Escorts 24x7(INDIRA) Call Girl Napur Call Now 8617697112 Napur Escorts 24x7
(INDIRA) Call Girl Napur Call Now 8617697112 Napur Escorts 24x7
 
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
 
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
 
Call Girls Chikhali Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Chikhali Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Chikhali Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Chikhali Call Me 7737669865 Budget Friendly No Advance Booking
 
SM-N975F esquematico completo - reparación.pdf
SM-N975F esquematico completo - reparación.pdfSM-N975F esquematico completo - reparación.pdf
SM-N975F esquematico completo - reparación.pdf
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Th...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Th...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Th...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Th...
 
Get Premium Pimple Saudagar Call Girls (8005736733) 24x7 Rate 15999 with A/c ...
Get Premium Pimple Saudagar Call Girls (8005736733) 24x7 Rate 15999 with A/c ...Get Premium Pimple Saudagar Call Girls (8005736733) 24x7 Rate 15999 with A/c ...
Get Premium Pimple Saudagar Call Girls (8005736733) 24x7 Rate 15999 with A/c ...
 
CHEAP Call Girls in Hauz Quazi (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Hauz Quazi  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Book Sex Workers Available Pune Call Girls Yerwada 6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Yerwada  6297143586 Call Hot India...Book Sex Workers Available Pune Call Girls Yerwada  6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Yerwada 6297143586 Call Hot India...
 
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
 
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 

Interfacing with peripherals: analog to digital converters and digital to analog converters in 8086 (MCMP)

  • 1. UJJAIN ENGINEERING COLLEGE, UJJAIN DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING TOPIC -: INTERFACING WITH PERIPHERALS- ANALOG TO DIGITAL CONVERTERS AND DIGITAL TO ANALOG CONVERTERS IN 8086 GUIDED BY :- MISS ANSHUL MALIK  PRASANNA VYAS (0701ec191043)  PRASHANT KAUSHAL (0701ec191044)  PRIYASH KIRADE (0701ec191045)  RADHESHYAM PARMAR (0701ec191046)  RAHUL JARIWALA (0701ec191047)  NIMESH SINGH (0701ec191037)  NISHA MAHESHWARI (0701ec191038)  PALAK GUPTA (0701ec191039)  PANKHURI VAPTA (0701ec191040)  PARTH ARJARIYA (0701ec191041)  PRANITA NIRAPURE (0701ec191042) Submitted By :-
  • 2. SYNOPSIS • Interfacing with peripherals, 8255 PPI in brief • ADC interfacing • ADC 0808/0809 • Interfacing ADC 0808 with 8086 using 8255 PPI • DAC interfacing • AD 7523 8 bit multiplying DAC • Interfacing AD 7523 with 8086 using 8255 PPI
  • 3. INTERFACING WITH PERIPHERALS • Any application of a microprocessor based system requires the transfer of data between external circuitry to the microprocessor and from microprocessor to the external circuitry. The transfer of data is called input/output data transfer or I/O data transfer. This data transfer is done with the help of I/O ports. • This type of interfacing is called I/O interfacing. External devices (connected to I/O ports) used to interface are called peripheral devices. • There are many peripheral devices which can be interfaced with microprocessor like keyboard, mouse, printer, 8253 timer, 8255 PPI, ADCs and DACs.
  • 4. 8255 PROGRAMMABLE PERIPHERAL INTERFACE(PPI)  For most of the applications 8086 needs parallel input ,output data to/from the peripherals.  8255 is a device used to interface different real time peripherals to the microprocessors which can be initialized for different modes operations like simple I/O, Strobed I/O and handshaking I/O.  It has three 8-bit parallel ports : port A, port B, port C.
  • 6. MODES OF OPERATION 8255 can be used in two modes: Bit set/Reset (BSR) mode and I/O mode. The BSR mode is used to set or reset the bits in port C. The I/O mode is further divided into 3 modes: mode 0, mode 1 and mode 2. • Mode 0:  Ports A, B, and C can be individually programmed as input or output ports.  Port C is divided into two 4-bit ports which are independent from each other.
  • 7. MODES OF OPERATION • Mode 1:  Ports A and B are programmed as input or output ports.  Port C is used for handshaking. In the handshake mode, two types of I/O data transfer can be implemented: status check and interrupt. • Mode 2:  Port A is programmed to be bi-directional.  Port C is for handshaking.  Port B can be either input or output in mode 0 or mode 1.
  • 8. ADC INTERFACING This topic is aimed at the study of 8-bit and 12-bit analog to digital converters and their interfacing with 8086. In most of the cases, the PIO 8255 is used for interfacing the analog to digital converters with a microprocessor. • The function of an A/D converter is to produce a digital word which represents the magnitude of some analog voltage or current.
  • 9. ADC INTERFACING • The resolution of an A/D converter refers to the number of bits in the output binary word. • Accuracy and linearity specifications have the same meaning for an A/D converter as they do for a D/A converter. • Another important specification for an ADC is its conversion time.
  • 10. ADC INTERFACING • This is simply the time it takes the converter to produce a valid output binary code for an applied input voltage. • After the conversion is over, the ADC sends end of conversion (EOC) signal to inform the microprocessor and the result is ready at the output buffer of the ADC. • The time taken by the ADC from the active edge of SOC pulse (the edge at which the conversion process actually starts) till the active edge of EOC signal is called as the conversion delay of the ADC.
  • 11. ADC INTERFACING • The available ADCs in the market use different conversion techniques for the conversion of analog signals to digital signals. • Parallel converter or flash converter, Successive approximation and dual slope integration techniques are the most popular techniques used in the integrated ADC chips.
  • 12. ADC 0808/0809 • These are unipolar analog to digital converters, i.e. they are able to convert only positive analog input voltages to their digital equivalents. • These chips do not contain any internal sample and hold circuit. • The analog to digital converter chips 0808 and 0809 are 8-bit CMOS, successive approximation converters. • The conversion delay is 100 µs at a clock frequency of 640 kHz, which is quite low as compared to other converters.
  • 13. ADC 0808/0809 • These converters internally have a 3:8 analog multiplexer so that at a time eight different analog inputs can be connected to the chips. • Out of these eight inputs only one can be selected for conversion by using address lines ADD A, ADD B and ADD C, as shown. • Using these address inputs, multichannel data acquisition systems can be designed using a single ADC.
  • 14. ADC 0808/0809 PIN DIAGRAM
  • 15. ADC INTERFACING • A 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 (SOC) pulse to ADC. 3. Read end of conversion (EOC) signal to mark the end of conversion process. 4. Read digital data output of the ADC as equivalent digital output.
  • 17. INTERFACING ADC 0808 WITH 8086 USING 8255 PORTS Interface 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. Draw the schematic and write required ALP.
  • 18. INTERFACING ADC 0808 WITH 8086 USING 8255-STEPS • The analog input I/P2 is used & therefore address pins A,B,C should be 0,1,0 respectively to select I/P2. • The OE (Out put latch Enable) & 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 ADC. • Port A acts as a 8-bit input data port to receive the digital data output from the ADC.
  • 19. INTERFACING ADC 0808 WITH 8086 USING 8255 • The 8255 control word is written as follows: D7 D6 D5 D4 D3 D2 D1 D0 Control Word 1 0 0 1 1 0 0 0 = 98H
  • 20. INTERFACING ADC 0808 WITH 8086 USING 8255- BLOCK DIAGRAM
  • 21. INTERFACING ADC 0808 WITH 8086 USING 8255 PORTS- ALP • The required ALP is given as follows:
  • 22. DAC INTERFACING The digital to analog converters convert binary numbers into their analog equivalent voltages or currents. • Several techniques are employed for digital to analog conversion. i. Weighted resistor network ii. R-2R ladder network
  • 23. DAC INTERFACING • The DAC find applications in areas like : 1. Digitally controlled gains 2. Motor speed controls 3. Programmable gain amplifiers etc. • D/A converter have many applications besides those where they are used with a microcomputer. Most speech synthesizer integrated circuits contain a D/A converter to convert stored binary data words into analog audio signals.
  • 24. DAC INTERFACING  Characteristics: 1. Resolution: It is a change in analog output for one LSB change in digital input. It is given by(1/2^n )*Vref. 2. Settling time: It is the time required for the DAC to settle for a full scale code change
  • 25. AD 7523 8-BIT MULTIPLYING DAC • Intersil’s AD 7523 is a 16 pin DIP, multiplying digital to analog converter, containing R-2R ladder (R=10K) for digital to analog conversion. • Power supply +5v to +15v • Vref -> -10v to +10v • The maximum analog output voltage will be +10v
  • 26. AD 7523 8-BIT MULTIPLYING DAC • A Zener is connected between OUT1 & OUT2 to save the DAC from negative transients. • An operational amplifier is used as a current – to – voltage converter at the output of AD 7523. • An external feedback resister acts to control the gain.
  • 27. AD 7523 8-BIT MULTIPLYING DAC PIN DIAGRAM
  • 28. INTERFACING OF AD 7523 WITH 8086 Interface DAC AD7523 with the 8086 running at 8MHz & write ALP to generate a saw tooth waveform of period 1ms with Vmax 5v.
  • 29. INTERFACING OF AD 7523 WITH 8086 • The required ALP is as follows:
  • 30. INTERFACING OF AD 7523 WITH 8086-BLOCK DIAGRAM