Beruflich Dokumente
Kultur Dokumente
R= 10k 2R = 20k
Req3
Req2
Req1
et438b-3.ppt
I4
Example: Find the output voltage for the R-2R DAC shown below. The digital input is 1102. R= 15k 2R = 30k Rf = 15k
I2
I1
I0
Req
IT
Vref = 5 Vdc
Find currents I0, I1, I2 and use formula V0 = - ITRf
et438b-3.ppt
Iref
14
4 2
8-bit binary code converted to 256 levels of I0 Full scale value set by reference current. 1 bit change produces change of 1/256 in I0 Equations: D = decimal equivalent of binary input
Iref = Vref Rref
4
D I0 = Iref 256
Ifs =
IC DAC Example: Use OP AMP to convert current to voltage. The reference voltage is +10 Vdc and the Reference resistance is 5k. The value of Rf = 2.5k
et438b-3.ppt
input 100011012
et438b-3.ppt
et438b-3.ppt
Digital output
A B AND C O U N T E R D A C
1.) Input a constant value. Requires a sample and hold circuit. Not shown. 2.) AND gate passes clock signal when pt. A logic high 3.) Counter incremented by signal B 4.) DAC output increases as counter output increases
et438b-3.ppt
A B AND C O U N T E R D A C
time
Conversion time depends on the input level Tracking A/D converters us up/down counters to minimize conversion times
et438b-3.ppt 10
et438b-3.ppt
11
et438b-3.ppt
12
Example: an 8-bit successive approximation ADC is presented with a analog value that has a value of 143. Use the successive approximation algorithm given previously to determine the binary value. Assuming that each test takes a single clock cycle, determine the maximum conversion time for the ADC if it is clocked at 4.77 MHz
et438b-3.ppt
13
Example continued
et438b-3.ppt
14
Weighted number system - conversion from binary to decimal n = 1x27+1x26+0x25+0x24+0x23+1x22+1x21+0x20 n = 1x128+1x64+1x4+1x2 = 198 198 decimal equivalent of binary number
et438b-3.ppt 15
+5
Load Load
et438b-3.ppt
16
et438b-3.ppt
17
When Vin is logic 1 load is de-activated (switch closed) When Vin is logic 0 load draws current from source With Transistors current sourcing Load ILL Vin sourcing current TTL Inverter symbol Load ILL
et438b-3.ppt
18
Limits of TTL buffers - 1.7 mA For high current output - use discrete transistor or relay (electromechanical or solid state)
et438b-3.ppt
19
AC Ground
Typical Application
+5 Vdc
Grd
Output Bit
et438b-3.ppt 20
Electromechanical Relays
+ 12 Vdc Typical diode voltage spike protector Relay coil dc resistance load to transistor
NPN transistor
To output bit
LS7406 chip
et438b-3.ppt 21
Mechanical switch
+ 5 Vdc Digital interface for a byte of inputs. All resistors sized to limit sink current Switches can be either momentary contact or toggle
et438b-3.ppt 22
2.2k Typical 2.2k Typical To TTL input R TTL inverter gate (7404 or 7414)
Optocoupler
Switch closed - LED de-energized Switch open - LED energized LED and Optical transistor integrated on same chip energizing LED causes optical transistor to conduct Transistor off - inverter input +5 Vdc output 0 V Transistor on - inverter input 0 Vdc output 5 V
et438b-3.ppt
23
Example: determine the logic levels and currents in the digital interface circuit shown below Assume that the optocoupler diode has an on-state voltage drop of 1.4 V and the optical transistor has a on-state drop of 0.4 V.
+24 Vdc + 5 Vdc
2.2k R = 100
et438b-3.ppt
24
Example (cont.)
et438b-3.ppt
25
10 mH
Transistor Parameters 500 Vs + Rb + Vbe 2N3904 Vce Q1 hfe = 200 (nominal) Vce(sat) = 0.2 V Vbe(sat) = 0.8 V
Ib
et438b-3.ppt
26
Freewheeling diode
+24Vdc
10 mH D1 500 Vs Rb 2N3904 Q1
Diode D1 provides a path for the current induced when the transistor is switched off. If also clamps the induced voltage to the forward drop of the diode.
et438b-3.ppt 27