SlideShare a Scribd company logo
1 of 42
Dr A Sahu
Dept of Computer Science &
Engineering
IIT Guwahati
• Peripheral communications
• DAC
– Properties
– Generic Model
– Interfacing
• ADC
– Properties
– Generic Model
– Interfacing
• Display
• Peripherals : HD monitor, 5.1 speaker
• Interfaces : Intermediate Hardware
– Nvidia GPU card, Creative Sound Blaster card
• Interfaces : Intermediate Software/Program
– Nvidia GPU driver , Sound Blaster Driver software
Processor
R
A
M
• Read Instruction from memory
• Execute instruction
• Read/Write data to memory
• Some time send result to output device
– LEDs, Monitor, Printer
• Interfacing a peripheral
– Why: To enable MPU to communicate with I/O
– Designing logic circuit H/W for a I/O
– Writing instruction (S/W)
• Transmission Controller:
– MPU control, Device Control (DMA)
• Type of IO mapping
– Peripheral (IN/Out), Memory mapped IO (LD/ST,MV)
• Format of communication
– Synchronous (T & R sync with clock), Asynchronous
• Mode of Data Transfer
– Parallel, Serial (UART)
• Condition for data transfer
– Uncond., Polling, Interrupt, Ready signal, Handshake
• Used for play sound in speaker
• Used by AC97 (Audio codec)
• MP3 Sound store digital format in HDD
• Slow as compared to processor/MPU
• Parameters
• Resolution (8 bit/16 bit)
• Settling time (1micro sec)
• FullScaleOutput=(FullScaleValue – 1LSBValue)
• 1MSB Value=1/2 * FSV
Digital
to
Analog
Converter
D0
D1
D2
Analog
Output
Vo
Digital Inputs
Analogoutput
000 001 011010 100 101 111110
LSB
FS
0
1
2
3
4
5
6
7
4K2.5K
5K
10K
20K
D3=8
D2=4
D1=2
D0=1
Vout
• Vo= Vref/R * ( A1/2+ A2/4+…An/2n)
• Vo is proportional to values of Data Bits Value
• Resistive Ladder Network • Require two type Resistor
• But small value
– 5K and 10K
2R||2R=R
R+R=2R
R
2R
2R
2R
2R
R
Vout
R
R
+
Resistor
R
E
G
I
S
T
E
R
• Glitches cause waveform distortion, spurs and elevated noise
floors
• High-speed DAC output is often followed by a de-glitching
SHA (Hold Buffer)
• Cause: Signal and clock skew in
circuits
• Especially severe at MSB
transition where all bits are
switching –
0111…111 →
1000…000Time
Vo
• Resolution
• Reference Voltages
• Settling Time
• Linearity
• Speed
• Errors
• Amount of variance in output voltage for
every change of the LSB in the digital input.
• How closely can we approximate the desired
output signal(Higher Res. = finer
detail=smaller Voltage divisions)
• A common DAC has a 8 - 12 bit Resolution
NLSB
V
V
2
Resolution Ref
 N = Number of bits
Better Resolution(3 bit)Poor Resolution(1 bit)
Vout
Desired Analog
signal
Approximate
output
2Volt.Levels
Digital Input
0 0
1
Digital Input
Vout
Desired Analog
signal
Approximate
output
8Volt.Levels
000
001
010
011
100
101
110
111
110
101
100
011
010
001
000
• A specified voltage used to determine how
each digital input will be assigned to each
voltage division.
• Types:
– Non-multiplier: internal, fixed, and defined by
manufacturer
– Multiplier: external, variable, user specified
• Settling Time: The time required for the input
signal voltage to settle to the expected output
voltage(within +/- VLSB).
• Any change in the input state will not be
reflected in the output state immediately.
There is a time lag, between the two events.
Analog Output Voltage
Expected
Voltage
+VLSB
-VLSB
Settling time
Time
17
Linearity(Ideal Case)
Digital Input
Perfect Agreement
Desired/Approximate Output
AnalogOutputVoltage
NON-Linearity(Real World)
AnalogOutputVoltage
Digital Input
Desired Output
Miss-alignment
Approximate
output
• Gain Error: Difference in slope of the ideal
curve and the actual DAC output
High Gain Error: Actual
slope greater than ideal
Low Gain Error: Actual
slope less than ideal
Digital Input
Desired/Ideal OutputAnalogOutputVoltage
Low Gain
High Gain
• Rate of conversion of a single digital input to
its analog equivalent
• Conversion Rate
– Depends on clock speed of input signal
– Depends on settling time of converter
• Used when a continuous analog signal is
required.
• Signal from DAC can be smoothed by a Low
pass filter
0 bit
nth bit
n bit DAC
011010010101010100101
101010101011111100101
000010101010111110011
010101010101010101010
111010101011110011000
100101010101010001111
Digital Input
Filter
Piece-wise
Continuous Output
Analog Continuous
Output
• Design an output port with Address FFH to
interface 1408 DAC
• Write a program to generate a continuous
RAMP waveform
Time
Output
8085
MPU
A15
A0
D0
D7
Address Bus
(16bit)
Data Bus (8bit)
A7
A6
A5
A4
A3
A2
A1
A0
74LS373
Latches
1408
LE
D7
D6
D5
D4
D3
D2
D1
D0
MVI A, 00H ; Load Acc with first I/P
DTOA: OUT FFH ; Output to DAC
MVI B, COUNT ; Setup Reg. for Delay
DCR B
JNZ DELAY
INR A ; Next Input
JMP DTOA ; Go back to Output
Slope of RAMP can be varied by changing Delay
• ADC are slower then DAC
• Interfaced using Status Check
Analog to
Analog
Converter D0
D1
D2
Analog
Input
Vi
Analog InputDigitaloutput
LSB
000
001
010
011
100
101
110
111
0 1 2 3 4 5 6 7
• Sampling • Fourier Transform
• The process of
reconstructing a signal from
its values at discrete
instants of time
– Zero order hold
or One Point
– Linear
or Two Point
– Band limited
or Low pass Filtering
• Suppose my range is 0-1024 and assume some
value of N between 0-1024
• You have to find the value of N
– You can ask me (what about value X)
– Answer ( N>X, N<X, N==X)
– Operation with X (X++; X*2, X^2, X/2, X--)
• What is the best Algorithm to find
– Sequential ( increase X till X==N) O(N) algorithm
– Successive approximation: (Binary Search)
• Say R/2 as CMP( R/2, N) === if equal stop
IF (R/2 < N) CMP (R/2+R/4,N)
ELSE CMP (R/2-R/4, N)
• If you have N persons to do the comparisons
– Ask to all people and Gather the information
• Mix of Both approach
– If you have M comparator
• Counter or Tracking ADC
• Successive Approximation ADC
– Most Commonly Used
• Parallel or Flash ADC
– Fast Conversion
• Block diagram
• Waveform
• Operation
– Reset and Start Counter
– DAC convert Digital output of
Counter to Analog signal
– Compare Analog input and
Output of DAC
• Vi < VDAC
– Continue counting
• Vi = VDAC
– Stop counting
– Digital Output = Output of
Counter
• Disadvantage
– Conversion time is varied
• 2n Clock Period for Full Scale
input
Clock
Control
Logic Counter
DAC
Vi
• Most Commonly used in medium
to high speed Converters
• Based on approximating the input
signal with binary code and then
successively revising this
approximation until best
approximation is achieved
• SAR(Successive Approximation
Register) holds the current binary
value
• Block Diagram
• Circuit waveform
• Logic Flow
• Conversion Time
– n clock for n-bit ADC
– Fixed conversion time
• Serial Output is easily
generated
– Bit decision are made in
serial order
• Very High speed conversion
– Up to 100MHz for 8 bit
resolution
– Video, Radar, Digital
Oscilloscope
• Single Step Conversion
– 2n –1 comparator
– Precision Resistive Network
– Encoder
• Resolution is limited
– Large number of comparator
in IC
A/D
Converter
Digital O/P
Vinput
Start
Ready
START RD
A/D
Converter
Digital O/P
Vinput
Start
Ready
START RD
Tri-State
Buffer
8085
MPU
A15
A0
D0
D7
Address Bus
(16bit)
Data Bus (8bit)
A6
A5
A4
A3
IO/W
74
LS
138
E1 E2 E3
A7
IO/R
o2
o1
o0
82H
81H
80H
OUT 82H ; Start Conversion
TEST: IN 80H ;Read DR Status
RAR ; Rotate Do to carry
JC TEST ; if Do==1 conv. done
IN 81H ; Read the output
RET ; Return
7 Seg 9 Seg 16 Seg 3x5 DotMatix 5x7 9x11
Dot Matrix Display Panel
25x80 character monitor
Data
ASCII/BCD
Decoder
Or
Memory
Display
Monitor/LEDs
Time to Decode Time to Display
• Data to 7 Seg Decoder
a
b
c
d
e
f
g
Common
Cathode
a
b
c
f
g
e
d
D
C
B
A
LT
RBI
BI
Decoder
5V
0
1
0
1
1
0
1
1
1
0
1
5
5v
5V
0
1
0
1
1
1
1
1
1
1
1
5
5v
RBO
• Data to 7 Seg Decoder
a b c d e f g
D C B A
RBI RBO
a b c d e f g
D C B A
RBI RBO
a b c d e f g
D C B A
RBI RBO
a b c d e f g
D C B A
RBI RBO
a b c d e f g
D C B A
RBI RBO
5V
0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1
10
Blank
0
Blank
1 1
• R S Gaonkar, “Microprocessor Architecture”, Unit II preface,
Chapter 13
Lec08

More Related Content

What's hot

Interfacing to the analog world
Interfacing to the analog worldInterfacing to the analog world
Interfacing to the analog worldIslam Samir
 
Measuring the cutoff frequency of a low pass filter
Measuring the cutoff frequency of a low pass filterMeasuring the cutoff frequency of a low pass filter
Measuring the cutoff frequency of a low pass filterHasnain Ali
 
FPGA implementation of synchronous and asynchronous counter and simulation of...
FPGA implementation of synchronous and asynchronous counter and simulation of...FPGA implementation of synchronous and asynchronous counter and simulation of...
FPGA implementation of synchronous and asynchronous counter and simulation of...ASHIMA GUPTA
 
Serial Io
Serial IoSerial Io
Serial IoAisu
 
Study Of 30W Digital Audio Amplifier with Integrated ADC: CS4525
Study Of 30W Digital Audio Amplifier with Integrated ADC: CS4525Study Of 30W Digital Audio Amplifier with Integrated ADC: CS4525
Study Of 30W Digital Audio Amplifier with Integrated ADC: CS4525Premier Farnell
 
Low pass digital filter using FIR structure of 2nd order
Low pass digital filter using FIR structure of 2nd orderLow pass digital filter using FIR structure of 2nd order
Low pass digital filter using FIR structure of 2nd orderNikhil Valiveti
 
Siemens PXC Controller Series Part-2
Siemens PXC Controller Series Part-2Siemens PXC Controller Series Part-2
Siemens PXC Controller Series Part-2CONTROLS & SYSTEMS
 
Plc (analog and special io)
Plc (analog and special io)Plc (analog and special io)
Plc (analog and special io)Mohamed A Hakim
 
Fun and Easy UART - How the UART Protocol Works
Fun and Easy UART - How the UART Protocol WorksFun and Easy UART - How the UART Protocol Works
Fun and Easy UART - How the UART Protocol WorksRitesh Kanjee
 
8051 serialp port
8051 serialp port8051 serialp port
8051 serialp portTeju Kotti
 
Serial communication in LPC2148
Serial communication in LPC2148Serial communication in LPC2148
Serial communication in LPC2148sravannunna24
 
Siemens PXC Controller Series Part-1
Siemens PXC Controller Series Part-1Siemens PXC Controller Series Part-1
Siemens PXC Controller Series Part-1CONTROLS & SYSTEMS
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijayVijay Kumar
 
PLC input and output devices
PLC input and output devices PLC input and output devices
PLC input and output devices Ameen San
 

What's hot (20)

Interfacing to the analog world
Interfacing to the analog worldInterfacing to the analog world
Interfacing to the analog world
 
Measuring the cutoff frequency of a low pass filter
Measuring the cutoff frequency of a low pass filterMeasuring the cutoff frequency of a low pass filter
Measuring the cutoff frequency of a low pass filter
 
Serial1
Serial1Serial1
Serial1
 
FPGA implementation of synchronous and asynchronous counter and simulation of...
FPGA implementation of synchronous and asynchronous counter and simulation of...FPGA implementation of synchronous and asynchronous counter and simulation of...
FPGA implementation of synchronous and asynchronous counter and simulation of...
 
Serial Io
Serial IoSerial Io
Serial Io
 
Study Of 30W Digital Audio Amplifier with Integrated ADC: CS4525
Study Of 30W Digital Audio Amplifier with Integrated ADC: CS4525Study Of 30W Digital Audio Amplifier with Integrated ADC: CS4525
Study Of 30W Digital Audio Amplifier with Integrated ADC: CS4525
 
7SR210 Overcurrent Relay
7SR210 Overcurrent Relay7SR210 Overcurrent Relay
7SR210 Overcurrent Relay
 
Low pass digital filter using FIR structure of 2nd order
Low pass digital filter using FIR structure of 2nd orderLow pass digital filter using FIR structure of 2nd order
Low pass digital filter using FIR structure of 2nd order
 
Siemens PXC Controller Series Part-2
Siemens PXC Controller Series Part-2Siemens PXC Controller Series Part-2
Siemens PXC Controller Series Part-2
 
Plc (analog and special io)
Plc (analog and special io)Plc (analog and special io)
Plc (analog and special io)
 
Fun and Easy UART - How the UART Protocol Works
Fun and Easy UART - How the UART Protocol WorksFun and Easy UART - How the UART Protocol Works
Fun and Easy UART - How the UART Protocol Works
 
8051 serialp port
8051 serialp port8051 serialp port
8051 serialp port
 
Serial communication in LPC2148
Serial communication in LPC2148Serial communication in LPC2148
Serial communication in LPC2148
 
Siemens PXC Controller Series Part-1
Siemens PXC Controller Series Part-1Siemens PXC Controller Series Part-1
Siemens PXC Controller Series Part-1
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
 
8253
82538253
8253
 
PLC input and output devices
PLC input and output devices PLC input and output devices
PLC input and output devices
 
Hardware View of Intel 8051
Hardware View of Intel 8051Hardware View of Intel 8051
Hardware View of Intel 8051
 
Lpc2148 i2c
Lpc2148 i2cLpc2148 i2c
Lpc2148 i2c
 
Chapter1
Chapter1Chapter1
Chapter1
 

Similar to Lec08

Analog mixed vlsi notes
Analog mixed vlsi notesAnalog mixed vlsi notes
Analog mixed vlsi notesathiulla
 
Analog to Digital Converters and Data Acquisition Systems
Analog to Digital Converters and Data Acquisition SystemsAnalog to Digital Converters and Data Acquisition Systems
Analog to Digital Converters and Data Acquisition SystemsMathivanan Natarajan
 
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.pptxnaveen088888
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacingRAMPRAKASHT1
 
dac-180418111805 (1).pdf
dac-180418111805 (1).pdfdac-180418111805 (1).pdf
dac-180418111805 (1).pdfJawadaliMirjat
 
Analog to digital converter
Analog to digital converterAnalog to digital converter
Analog to digital convertershrutishreya14
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
Data acquisition
Data acquisitionData acquisition
Data acquisitionSagar Joshi
 
20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.pptMohanumar S
 
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
 

Similar to Lec08 (20)

Unit 6.pptx
Unit 6.pptxUnit 6.pptx
Unit 6.pptx
 
Adc &amp;dac ppt
Adc &amp;dac pptAdc &amp;dac ppt
Adc &amp;dac ppt
 
Analog mixed vlsi notes
Analog mixed vlsi notesAnalog mixed vlsi notes
Analog mixed vlsi notes
 
Analog to Digital Converters and Data Acquisition Systems
Analog to Digital Converters and Data Acquisition SystemsAnalog to Digital Converters and Data Acquisition Systems
Analog to Digital Converters and Data Acquisition Systems
 
Vlsi dac
Vlsi dacVlsi dac
Vlsi dac
 
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
 
Analog to digital converters, adc
Analog to digital converters, adcAnalog to digital converters, adc
Analog to digital converters, adc
 
Wds
WdsWds
Wds
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacing
 
Ditial to Analog Converter
Ditial to Analog ConverterDitial to Analog Converter
Ditial to Analog Converter
 
dac-180418111805 (1).pdf
dac-180418111805 (1).pdfdac-180418111805 (1).pdf
dac-180418111805 (1).pdf
 
ADC & DAC
ADC & DACADC & DAC
ADC & DAC
 
3 STM32's ADC.ppt
3 STM32's ADC.ppt3 STM32's ADC.ppt
3 STM32's ADC.ppt
 
Analog to digital converter
Analog to digital converterAnalog to digital converter
Analog to digital converter
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
Arduino
ArduinoArduino
Arduino
 
Data acquisition
Data acquisitionData acquisition
Data acquisition
 
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
 
Computer hardware
Computer hardware Computer hardware
Computer hardware
 

More from siddu kadiwal (15)

Chp10 sw constr
Chp10 sw constrChp10 sw constr
Chp10 sw constr
 
Lec14
Lec14Lec14
Lec14
 
Lec13
Lec13Lec13
Lec13
 
Lec11
Lec11Lec11
Lec11
 
Lec12
Lec12Lec12
Lec12
 
Lec10
Lec10Lec10
Lec10
 
Lec09
Lec09Lec09
Lec09
 
Lec07
Lec07Lec07
Lec07
 
Lec06
Lec06Lec06
Lec06
 
Lec05
Lec05Lec05
Lec05
 
Lec04
Lec04Lec04
Lec04
 
Lec03
Lec03Lec03
Lec03
 
Lec02
Lec02Lec02
Lec02
 
Lec04
Lec04Lec04
Lec04
 
Ece iv-fundamentals of hdl [10 ec45]-notes
Ece iv-fundamentals of hdl [10 ec45]-notesEce iv-fundamentals of hdl [10 ec45]-notes
Ece iv-fundamentals of hdl [10 ec45]-notes
 

Recently uploaded

kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadhamedmustafa094
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersMairaAshraf6
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projectssmsksolar
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxnuruddin69
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksMagic Marks
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 

Recently uploaded (20)

kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 

Lec08

  • 1. Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati
  • 2. • Peripheral communications • DAC – Properties – Generic Model – Interfacing • ADC – Properties – Generic Model – Interfacing • Display
  • 3. • Peripherals : HD monitor, 5.1 speaker • Interfaces : Intermediate Hardware – Nvidia GPU card, Creative Sound Blaster card • Interfaces : Intermediate Software/Program – Nvidia GPU driver , Sound Blaster Driver software Processor R A M
  • 4. • Read Instruction from memory • Execute instruction • Read/Write data to memory • Some time send result to output device – LEDs, Monitor, Printer • Interfacing a peripheral – Why: To enable MPU to communicate with I/O – Designing logic circuit H/W for a I/O – Writing instruction (S/W)
  • 5. • Transmission Controller: – MPU control, Device Control (DMA) • Type of IO mapping – Peripheral (IN/Out), Memory mapped IO (LD/ST,MV) • Format of communication – Synchronous (T & R sync with clock), Asynchronous • Mode of Data Transfer – Parallel, Serial (UART) • Condition for data transfer – Uncond., Polling, Interrupt, Ready signal, Handshake
  • 6. • Used for play sound in speaker • Used by AC97 (Audio codec) • MP3 Sound store digital format in HDD • Slow as compared to processor/MPU • Parameters • Resolution (8 bit/16 bit) • Settling time (1micro sec)
  • 7. • FullScaleOutput=(FullScaleValue – 1LSBValue) • 1MSB Value=1/2 * FSV Digital to Analog Converter D0 D1 D2 Analog Output Vo Digital Inputs Analogoutput 000 001 011010 100 101 111110 LSB FS 0 1 2 3 4 5 6 7
  • 8. 4K2.5K 5K 10K 20K D3=8 D2=4 D1=2 D0=1 Vout • Vo= Vref/R * ( A1/2+ A2/4+…An/2n) • Vo is proportional to values of Data Bits Value
  • 9. • Resistive Ladder Network • Require two type Resistor • But small value – 5K and 10K 2R||2R=R R+R=2R R 2R 2R 2R 2R R Vout R R + Resistor R E G I S T E R
  • 10. • Glitches cause waveform distortion, spurs and elevated noise floors • High-speed DAC output is often followed by a de-glitching SHA (Hold Buffer) • Cause: Signal and clock skew in circuits • Especially severe at MSB transition where all bits are switching – 0111…111 → 1000…000Time Vo
  • 11. • Resolution • Reference Voltages • Settling Time • Linearity • Speed • Errors
  • 12. • Amount of variance in output voltage for every change of the LSB in the digital input. • How closely can we approximate the desired output signal(Higher Res. = finer detail=smaller Voltage divisions) • A common DAC has a 8 - 12 bit Resolution NLSB V V 2 Resolution Ref  N = Number of bits
  • 13. Better Resolution(3 bit)Poor Resolution(1 bit) Vout Desired Analog signal Approximate output 2Volt.Levels Digital Input 0 0 1 Digital Input Vout Desired Analog signal Approximate output 8Volt.Levels 000 001 010 011 100 101 110 111 110 101 100 011 010 001 000
  • 14. • A specified voltage used to determine how each digital input will be assigned to each voltage division. • Types: – Non-multiplier: internal, fixed, and defined by manufacturer – Multiplier: external, variable, user specified
  • 15. • Settling Time: The time required for the input signal voltage to settle to the expected output voltage(within +/- VLSB). • Any change in the input state will not be reflected in the output state immediately. There is a time lag, between the two events.
  • 17. 17 Linearity(Ideal Case) Digital Input Perfect Agreement Desired/Approximate Output AnalogOutputVoltage NON-Linearity(Real World) AnalogOutputVoltage Digital Input Desired Output Miss-alignment Approximate output
  • 18. • Gain Error: Difference in slope of the ideal curve and the actual DAC output High Gain Error: Actual slope greater than ideal Low Gain Error: Actual slope less than ideal Digital Input Desired/Ideal OutputAnalogOutputVoltage Low Gain High Gain
  • 19. • Rate of conversion of a single digital input to its analog equivalent • Conversion Rate – Depends on clock speed of input signal – Depends on settling time of converter
  • 20. • Used when a continuous analog signal is required. • Signal from DAC can be smoothed by a Low pass filter 0 bit nth bit n bit DAC 011010010101010100101 101010101011111100101 000010101010111110011 010101010101010101010 111010101011110011000 100101010101010001111 Digital Input Filter Piece-wise Continuous Output Analog Continuous Output
  • 21. • Design an output port with Address FFH to interface 1408 DAC • Write a program to generate a continuous RAMP waveform Time Output
  • 22. 8085 MPU A15 A0 D0 D7 Address Bus (16bit) Data Bus (8bit) A7 A6 A5 A4 A3 A2 A1 A0 74LS373 Latches 1408 LE D7 D6 D5 D4 D3 D2 D1 D0
  • 23. MVI A, 00H ; Load Acc with first I/P DTOA: OUT FFH ; Output to DAC MVI B, COUNT ; Setup Reg. for Delay DCR B JNZ DELAY INR A ; Next Input JMP DTOA ; Go back to Output Slope of RAMP can be varied by changing Delay
  • 24. • ADC are slower then DAC • Interfaced using Status Check Analog to Analog Converter D0 D1 D2 Analog Input Vi Analog InputDigitaloutput LSB 000 001 010 011 100 101 110 111 0 1 2 3 4 5 6 7
  • 25. • Sampling • Fourier Transform
  • 26. • The process of reconstructing a signal from its values at discrete instants of time – Zero order hold or One Point – Linear or Two Point – Band limited or Low pass Filtering
  • 27. • Suppose my range is 0-1024 and assume some value of N between 0-1024 • You have to find the value of N – You can ask me (what about value X) – Answer ( N>X, N<X, N==X) – Operation with X (X++; X*2, X^2, X/2, X--)
  • 28. • What is the best Algorithm to find – Sequential ( increase X till X==N) O(N) algorithm – Successive approximation: (Binary Search) • Say R/2 as CMP( R/2, N) === if equal stop IF (R/2 < N) CMP (R/2+R/4,N) ELSE CMP (R/2-R/4, N) • If you have N persons to do the comparisons – Ask to all people and Gather the information • Mix of Both approach – If you have M comparator
  • 29. • Counter or Tracking ADC • Successive Approximation ADC – Most Commonly Used • Parallel or Flash ADC – Fast Conversion
  • 30. • Block diagram • Waveform • Operation – Reset and Start Counter – DAC convert Digital output of Counter to Analog signal – Compare Analog input and Output of DAC • Vi < VDAC – Continue counting • Vi = VDAC – Stop counting – Digital Output = Output of Counter • Disadvantage – Conversion time is varied • 2n Clock Period for Full Scale input Clock Control Logic Counter DAC Vi
  • 31. • Most Commonly used in medium to high speed Converters • Based on approximating the input signal with binary code and then successively revising this approximation until best approximation is achieved • SAR(Successive Approximation Register) holds the current binary value • Block Diagram
  • 32. • Circuit waveform • Logic Flow • Conversion Time – n clock for n-bit ADC – Fixed conversion time • Serial Output is easily generated – Bit decision are made in serial order
  • 33. • Very High speed conversion – Up to 100MHz for 8 bit resolution – Video, Radar, Digital Oscilloscope • Single Step Conversion – 2n –1 comparator – Precision Resistive Network – Encoder • Resolution is limited – Large number of comparator in IC
  • 35. A/D Converter Digital O/P Vinput Start Ready START RD Tri-State Buffer 8085 MPU A15 A0 D0 D7 Address Bus (16bit) Data Bus (8bit) A6 A5 A4 A3 IO/W 74 LS 138 E1 E2 E3 A7 IO/R o2 o1 o0 82H 81H 80H
  • 36. OUT 82H ; Start Conversion TEST: IN 80H ;Read DR Status RAR ; Rotate Do to carry JC TEST ; if Do==1 conv. done IN 81H ; Read the output RET ; Return
  • 37. 7 Seg 9 Seg 16 Seg 3x5 DotMatix 5x7 9x11 Dot Matrix Display Panel 25x80 character monitor
  • 39. • Data to 7 Seg Decoder a b c d e f g Common Cathode a b c f g e d D C B A LT RBI BI Decoder 5V 0 1 0 1 1 0 1 1 1 0 1 5 5v 5V 0 1 0 1 1 1 1 1 1 1 1 5 5v RBO
  • 40. • Data to 7 Seg Decoder a b c d e f g D C B A RBI RBO a b c d e f g D C B A RBI RBO a b c d e f g D C B A RBI RBO a b c d e f g D C B A RBI RBO a b c d e f g D C B A RBI RBO 5V 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1 10 Blank 0 Blank 1 1
  • 41. • R S Gaonkar, “Microprocessor Architecture”, Unit II preface, Chapter 13