SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
Muthu Manickam
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adc
PRADEEP
 

Was ist angesagt? (20)

8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller ppt
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
8251 USART
8251 USART8251 USART
8251 USART
 
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
 
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
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 
I/O port programming in 8051
I/O port programming in 8051I/O port programming in 8051
I/O port programming in 8051
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
 
8051 ch9-950217
8051 ch9-9502178051 ch9-950217
8051 ch9-950217
 
Analog to digital converters, adc
Analog to digital converters, adcAnalog to digital converters, adc
Analog to digital converters, adc
 
(D/A) and (A/D)conversion
(D/A) and (A/D)conversion(D/A) and (A/D)conversion
(D/A) and (A/D)conversion
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adc
 
Analog to digital converter
Analog to digital converterAnalog to digital converter
Analog to digital converter
 
LCD Interacing with 8051
LCD Interacing with 8051LCD Interacing with 8051
LCD Interacing with 8051
 
Adc interfacing
Adc interfacingAdc interfacing
Adc interfacing
 

Ähnlich wie 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
 
MPC of TWT based Transmitter
MPC of TWT based TransmitterMPC of TWT based Transmitter
MPC of TWT based Transmitter
Abhishek Sutrave
 

Ähnlich wie 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
 
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
 
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
 
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.pptPROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
 
MPC of TWT based Transmitter
MPC of TWT based TransmitterMPC of TWT based Transmitter
MPC of TWT based Transmitter
 

Kürzlich hochgeladen

Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Obat Aborsi 088980685493 Jual Obat Aborsi
 
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
 
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
uodye
 
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
ehyxf
 
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
uodye
 
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
ehyxf
 
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
wpkuukw
 
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
ayoqf
 
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
uodye
 
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in DammamAbortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
ahmedjiabur940
 
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
tufbav
 
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
oopacde
 
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get CytotecBuy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
ougvy
 
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
tufbav
 

Kürzlich hochgeladen (20)

Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
 
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...
 
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
 
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
 
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
 
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
 
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
 
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
 
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
 
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in DammamAbortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
 
Call Girls Amethi 9332606886 HOT & SEXY Models beautiful and charming call g...
Call Girls Amethi  9332606886 HOT & SEXY Models beautiful and charming call g...Call Girls Amethi  9332606886 HOT & SEXY Models beautiful and charming call g...
Call Girls Amethi 9332606886 HOT & SEXY Models beautiful and charming call g...
 
Point of Care Testing in clinical laboratory
Point of Care Testing in clinical laboratoryPoint of Care Testing in clinical laboratory
Point of Care Testing in clinical laboratory
 
Low Cost Patna Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Gi...
Low Cost Patna Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Gi...Low Cost Patna Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Gi...
Low Cost Patna Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Gi...
 
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
 
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
 
Mass storage systems presentation operating systems
Mass storage systems presentation operating systemsMass storage systems presentation operating systems
Mass storage systems presentation operating systems
 
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get CytotecBuy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
 
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
 
Critical Commentary Social Work Ethics.pptx
Critical Commentary Social Work Ethics.pptxCritical Commentary Social Work Ethics.pptx
Critical Commentary Social Work Ethics.pptx
 
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
 

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