Introduction M. B. Patil, IIT Bombay Introduction * Real signals - - PowerPoint PPT Presentation

introduction
SMART_READER_LITE
LIVE PREVIEW

Introduction M. B. Patil, IIT Bombay Introduction * Real signals - - PowerPoint PPT Presentation

Introduction M. B. Patil, IIT Bombay Introduction * Real signals (e.g., a voltage measured with a thermocouple or a speech signal recorded with a microphone) are analog quantities, varying continuously with time. M. B. Patil, IIT Bombay


slide-1
SLIDE 1

Introduction

  • M. B. Patil, IIT Bombay
slide-2
SLIDE 2

Introduction

* Real signals (e.g., a voltage measured with a thermocouple or a speech signal recorded with a microphone) are analog quantities, varying continuously with time.

  • M. B. Patil, IIT Bombay
slide-3
SLIDE 3

Introduction

* Real signals (e.g., a voltage measured with a thermocouple or a speech signal recorded with a microphone) are analog quantities, varying continuously with time. * Digital format offers several advantages: digital signal processing, storage, use of computers, robust transmission, etc.

  • M. B. Patil, IIT Bombay
slide-4
SLIDE 4

Introduction

* Real signals (e.g., a voltage measured with a thermocouple or a speech signal recorded with a microphone) are analog quantities, varying continuously with time. * Digital format offers several advantages: digital signal processing, storage, use of computers, robust transmission, etc. * An ADC (Analog-to-Digital Converter) is used to convert an analog signal to the digital format.

  • M. B. Patil, IIT Bombay
slide-5
SLIDE 5

Introduction

* Real signals (e.g., a voltage measured with a thermocouple or a speech signal recorded with a microphone) are analog quantities, varying continuously with time. * Digital format offers several advantages: digital signal processing, storage, use of computers, robust transmission, etc. * An ADC (Analog-to-Digital Converter) is used to convert an analog signal to the digital format. * The reverse conversion (from digital to analog) is also required. For example, music stored in a DVD in digital format must be converted to an analog voltage for playing out on a speaker.

  • M. B. Patil, IIT Bombay
slide-6
SLIDE 6

Introduction

* Real signals (e.g., a voltage measured with a thermocouple or a speech signal recorded with a microphone) are analog quantities, varying continuously with time. * Digital format offers several advantages: digital signal processing, storage, use of computers, robust transmission, etc. * An ADC (Analog-to-Digital Converter) is used to convert an analog signal to the digital format. * The reverse conversion (from digital to analog) is also required. For example, music stored in a DVD in digital format must be converted to an analog voltage for playing out on a speaker. * A DAC (Digital-to-Analog Converter) is used to convert a digital signal to the analog format.

  • M. B. Patil, IIT Bombay
slide-7
SLIDE 7

DAC

DAC

D0 D1 D2 DN−1 VA VR N-bit digital input analog

  • utput

ground

slide-8
SLIDE 8

DAC

DAC

D0 D1 D2 DN−1 VA VR N-bit digital input analog

  • utput

ground

* For a 4-bit DAC, with input S3S2S1S0, the output voltage is VA = K

  • (S3 × 23) + (S2 × 22) + (S1 × 21) + (S0 × 20)
  • .

In general, VA = K N−1 Sk2k .

slide-9
SLIDE 9

DAC

DAC

D0 D1 D2 DN−1 VA VR N-bit digital input analog

  • utput

ground

maximum

  • utput

voltage resolution 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111

digital input

VA N = 4

* For a 4-bit DAC, with input S3S2S1S0, the output voltage is VA = K

  • (S3 × 23) + (S2 × 22) + (S1 × 21) + (S0 × 20)
  • .

In general, VA = K N−1 Sk2k .

slide-10
SLIDE 10

DAC

DAC

D0 D1 D2 DN−1 VA VR N-bit digital input analog

  • utput

ground

maximum

  • utput

voltage resolution 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111

digital input

VA N = 4

* For a 4-bit DAC, with input S3S2S1S0, the output voltage is VA = K

  • (S3 × 23) + (S2 × 22) + (S1 × 21) + (S0 × 20)
  • .

In general, VA = K N−1 Sk2k . * K is proportional to the reference voltage VR. Its value depends on how the DAC is implemented.

  • M. B. Patil, IIT Bombay
slide-11
SLIDE 11

DAC using binary-weighted resistors

Inputs: S3, S2, S1, S0 Output: VA VA VA S0 VR S1 VR S2 VR S3 VR VR R3 = R Rf R3 = R I3 Rf I2 I I I3 I2 R2 = 2 R R1 = 4 R R0 = 8 R R2 = 2 R R1 = 4 R R0 = 8 R I1 I0 I1 I0 A3 A3 A2 A1 A0 A2 A1 A0

  • M. B. Patil, IIT Bombay
slide-12
SLIDE 12

DAC using binary-weighted resistors

Inputs: S3, S2, S1, S0 Output: VA VA VA S0 VR S1 VR S2 VR S3 VR VR R3 = R Rf R3 = R I3 Rf I2 I I I3 I2 R2 = 2 R R1 = 4 R R0 = 8 R R2 = 2 R R1 = 4 R R0 = 8 R I1 I0 I1 I0 A3 A3 A2 A1 A0 A2 A1 A0 * If the input bit Sk is 1, Ak gets connected to VR; else, it gets connected to ground.

  • M. B. Patil, IIT Bombay
slide-13
SLIDE 13

DAC using binary-weighted resistors

Inputs: S3, S2, S1, S0 Output: VA VA VA S0 VR S1 VR S2 VR S3 VR VR R3 = R Rf R3 = R I3 Rf I2 I I I3 I2 R2 = 2 R R1 = 4 R R0 = 8 R R2 = 2 R R1 = 4 R R0 = 8 R I1 I0 I1 I0 A3 A3 A2 A1 A0 A2 A1 A0 * If the input bit Sk is 1, Ak gets connected to VR; else, it gets connected to ground. → V (Ak) = Sk × VR .

  • M. B. Patil, IIT Bombay
slide-14
SLIDE 14

DAC using binary-weighted resistors

Inputs: S3, S2, S1, S0 Output: VA VA VA S0 VR S1 VR S2 VR S3 VR VR R3 = R Rf R3 = R I3 Rf I2 I I I3 I2 R2 = 2 R R1 = 4 R R0 = 8 R R2 = 2 R R1 = 4 R R0 = 8 R I1 I0 I1 I0 A3 A3 A2 A1 A0 A2 A1 A0 * If the input bit Sk is 1, Ak gets connected to VR; else, it gets connected to ground. → V (Ak) = Sk × VR . * Since the inverting terminal of the op-amp is at virtual ground, Ik = V (Ak) − 0 Rk = Sk VR Rk .

  • M. B. Patil, IIT Bombay
slide-15
SLIDE 15

DAC using binary-weighted resistors

Inputs: S3, S2, S1, S0 Output: VA VA VA S0 VR S1 VR S2 VR S3 VR VR R3 = R Rf R3 = R I3 Rf I2 I I I3 I2 R2 = 2 R R1 = 4 R R0 = 8 R R2 = 2 R R1 = 4 R R0 = 8 R I1 I0 I1 I0 A3 A3 A2 A1 A0 A2 A1 A0 * If the input bit Sk is 1, Ak gets connected to VR; else, it gets connected to ground. → V (Ak) = Sk × VR . * Since the inverting terminal of the op-amp is at virtual ground, Ik = V (Ak) − 0 Rk = Sk VR Rk . * I = S0VR 8 R + S1VR 4 R + S2VR 2 R + S3VR R = VR 2N−1R

N−1

  • Sk × 2k (N = 4).
  • M. B. Patil, IIT Bombay
slide-16
SLIDE 16

DAC using binary-weighted resistors

Inputs: S3, S2, S1, S0 Output: VA VA VA S0 VR S1 VR S2 VR S3 VR VR R3 = R Rf R3 = R I3 Rf I2 I I I3 I2 R2 = 2 R R1 = 4 R R0 = 8 R R2 = 2 R R1 = 4 R R0 = 8 R I1 I0 I1 I0 A3 A3 A2 A1 A0 A2 A1 A0 * If the input bit Sk is 1, Ak gets connected to VR; else, it gets connected to ground. → V (Ak) = Sk × VR . * Since the inverting terminal of the op-amp is at virtual ground, Ik = V (Ak) − 0 Rk = Sk VR Rk . * I = S0VR 8 R + S1VR 4 R + S2VR 2 R + S3VR R = VR 2N−1R

N−1

  • Sk × 2k (N = 4).

* The output voltage is Vo = −Rf I = −VR Rf 2N−1R

N−1

  • Sk × 2k .
  • M. B. Patil, IIT Bombay
slide-17
SLIDE 17

DAC using binary-weighted resistors: Example

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7

  • M. B. Patil, IIT Bombay
slide-18
SLIDE 18

DAC using binary-weighted resistors: Example

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * Consider an 8-bit DAC with VR = 5 V. What is the smallest value of R which will limit the current drawn from the supply (VR) to 10 mA?

  • M. B. Patil, IIT Bombay
slide-19
SLIDE 19

DAC using binary-weighted resistors: Example

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * Consider an 8-bit DAC with VR = 5 V. What is the smallest value of R which will limit the current drawn from the supply (VR) to 10 mA? Maximum current is drawn from VR when the input is 1111 1111.

  • M. B. Patil, IIT Bombay
slide-20
SLIDE 20

DAC using binary-weighted resistors: Example

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * Consider an 8-bit DAC with VR = 5 V. What is the smallest value of R which will limit the current drawn from the supply (VR) to 10 mA? Maximum current is drawn from VR when the input is 1111 1111. → All nodes A0 to A7 get connected to VR.

  • M. B. Patil, IIT Bombay
slide-21
SLIDE 21

DAC using binary-weighted resistors: Example

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * Consider an 8-bit DAC with VR = 5 V. What is the smallest value of R which will limit the current drawn from the supply (VR) to 10 mA? Maximum current is drawn from VR when the input is 1111 1111. → All nodes A0 to A7 get connected to VR. → 10 mA = VR R + VR 2R + · · · + VR 27R = 1 27 VR R

  • 20 + 21 + · · · + 27

= 1 27 VR R

  • 28 − 1
  • = 255

128 VR R

  • M. B. Patil, IIT Bombay
slide-22
SLIDE 22

DAC using binary-weighted resistors: Example

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * Consider an 8-bit DAC with VR = 5 V. What is the smallest value of R which will limit the current drawn from the supply (VR) to 10 mA? Maximum current is drawn from VR when the input is 1111 1111. → All nodes A0 to A7 get connected to VR. → 10 mA = VR R + VR 2R + · · · + VR 27R = 1 27 VR R

  • 20 + 21 + · · · + 27

= 1 27 VR R

  • 28 − 1
  • = 255

128 VR R → Rmin = 5 V 10 mA × 255 128 = 996 Ω . (Ref.: K. Gopalan, Introduction to Digital Microelectronic Circuits, Tata McGraw-Hill, New Delhi, 1978)

  • M. B. Patil, IIT Bombay
slide-23
SLIDE 23

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7

  • M. B. Patil, IIT Bombay
slide-24
SLIDE 24

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * If Rf = R, what is the resolution (i.e., ∆VA corresponding to the input LSB changing from 0 to 1 with other input bits constant)?

  • M. B. Patil, IIT Bombay
slide-25
SLIDE 25

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * If Rf = R, what is the resolution (i.e., ∆VA corresponding to the input LSB changing from 0 to 1 with other input bits constant)? VA = −VR Rf 2N−1R

  • S727 + · · · + S121 + S020
  • M. B. Patil, IIT Bombay
slide-26
SLIDE 26

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * If Rf = R, what is the resolution (i.e., ∆VA corresponding to the input LSB changing from 0 to 1 with other input bits constant)? VA = −VR Rf 2N−1R

  • S727 + · · · + S121 + S020

→ ∆VA = VR 2N−1 Rf R = 5 V 28−1 × 1 = 5 128 = 0.0391 V.

  • M. B. Patil, IIT Bombay
slide-27
SLIDE 27

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7

  • M. B. Patil, IIT Bombay
slide-28
SLIDE 28

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * What is the maximum output voltage (in magnitude)?

  • M. B. Patil, IIT Bombay
slide-29
SLIDE 29

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * What is the maximum output voltage (in magnitude)? VA = − VR 2N−1 Rf R

  • S727 + · · · + S121 + S020

.

  • M. B. Patil, IIT Bombay
slide-30
SLIDE 30

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * What is the maximum output voltage (in magnitude)? VA = − VR 2N−1 Rf R

  • S727 + · · · + S121 + S020

. Maximum VA (in magnitude) is obtained when the input is 1111 1111.

  • M. B. Patil, IIT Bombay
slide-31
SLIDE 31

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * What is the maximum output voltage (in magnitude)? VA = − VR 2N−1 Rf R

  • S727 + · · · + S121 + S020

. Maximum VA (in magnitude) is obtained when the input is 1111 1111. |VA|max = 5 128 × 1 ×

  • 20 + 21 + · · · + 27

= 5 128 ×

  • 28 − 1
  • = 5 × 255

128 = 9.961 V .

  • M. B. Patil, IIT Bombay
slide-32
SLIDE 32

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7

  • M. B. Patil, IIT Bombay
slide-33
SLIDE 33

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * Find the output voltage corresponding to the input 1010 1101.

  • M. B. Patil, IIT Bombay
slide-34
SLIDE 34

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * Find the output voltage corresponding to the input 1010 1101. VA = − VR 2N−1 Rf R

  • S727 + · · · + S121 + S020

.

  • M. B. Patil, IIT Bombay
slide-35
SLIDE 35

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * Find the output voltage corresponding to the input 1010 1101. VA = − VR 2N−1 Rf R

  • S727 + · · · + S121 + S020

. = − 5 128 × 1 ×

  • 27 + 25 + 23 + 22 + 20

= −5 × 173 128 = −6.758 V .

  • M. B. Patil, IIT Bombay
slide-36
SLIDE 36

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7

  • M. B. Patil, IIT Bombay
slide-37
SLIDE 37

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * If the resistors are specified to have a tolerance of 1 %, what is the range of |VA| corresponding to input 1111 1111?

  • M. B. Patil, IIT Bombay
slide-38
SLIDE 38

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * If the resistors are specified to have a tolerance of 1 %, what is the range of |VA| corresponding to input 1111 1111? |VA| is maximum when (a) currents I0, I1, etc. assume their maximum values, with Rk = R0

k × (1 − 0.01) and (b) Rf is

maximum, Rf = R0

f × (1 + 0.01).

(The superscript ‘0’ denotes nominal value.)

  • M. B. Patil, IIT Bombay
slide-39
SLIDE 39

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * If the resistors are specified to have a tolerance of 1 %, what is the range of |VA| corresponding to input 1111 1111? |VA| is maximum when (a) currents I0, I1, etc. assume their maximum values, with Rk = R0

k × (1 − 0.01) and (b) Rf is

maximum, Rf = R0

f × (1 + 0.01).

(The superscript ‘0’ denotes nominal value.) → |VA|max

11111111 = VR × 255

128 × Rf R

  • max

= 5 × 255 128 × 1.01 0.99 = 10.162 V.

  • M. B. Patil, IIT Bombay
slide-40
SLIDE 40

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * If the resistors are specified to have a tolerance of 1 %, what is the range of |VA| corresponding to input 1111 1111? |VA| is maximum when (a) currents I0, I1, etc. assume their maximum values, with Rk = R0

k × (1 − 0.01) and (b) Rf is

maximum, Rf = R0

f × (1 + 0.01).

(The superscript ‘0’ denotes nominal value.) → |VA|max

11111111 = VR × 255

128 × Rf R

  • max

= 5 × 255 128 × 1.01 0.99 = 10.162 V. Similarly, |VA|min

11111111 = 5 × 255

128 × 0.99 1.01 = 9.764 V.

  • M. B. Patil, IIT Bombay
slide-41
SLIDE 41

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7

  • M. B. Patil, IIT Bombay
slide-42
SLIDE 42

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * ∆VA for input 1111 1111 = 10.162 − 9.764 ≈ 0.4 V which is larger than the resolution (0.039 V) of the DAC. This situation is not acceptable.

  • M. B. Patil, IIT Bombay
slide-43
SLIDE 43

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * ∆VA for input 1111 1111 = 10.162 − 9.764 ≈ 0.4 V which is larger than the resolution (0.039 V) of the DAC. This situation is not acceptable. * The output voltage variation can be reduced by using resistors with a smaller tolerance. However, it is difficult to fabricate an IC with widely varying resistance values (from R to 2N−1R) and each with a small enough tolerance.

  • M. B. Patil, IIT Bombay
slide-44
SLIDE 44

DAC using binary-weighted resistors: Example (from Gopalan)

VA Rf I7 R7 = R VR I R0 = 27 R I1 R1 = 26 R I0 A1 A0 A7 * ∆VA for input 1111 1111 = 10.162 − 9.764 ≈ 0.4 V which is larger than the resolution (0.039 V) of the DAC. This situation is not acceptable. * The output voltage variation can be reduced by using resistors with a smaller tolerance. However, it is difficult to fabricate an IC with widely varying resistance values (from R to 2N−1R) and each with a small enough tolerance. → use R − 2R ladder network instead.

  • M. B. Patil, IIT Bombay
slide-45
SLIDE 45

R-2R ladder network

2R MSB LSB 2R R 2R R 2R R 2R A0 A1 A2 A3 Node Ak is connected to VR if input bit Sk is 1; else, it is connected to ground.

slide-46
SLIDE 46

R-2R ladder network

2R MSB LSB 2R R 2R R 2R R 2R A0 A1 A2 A3 Node Ak is connected to VR if input bit Sk is 1; else, it is connected to ground. 2R The original network is equivalent to 2R R 2R R 2R R 2R S2VR S1VR S0VR S3VR

  • M. B. Patil, IIT Bombay
slide-47
SLIDE 47

R-2R ladder network: Thevenin resistance

R R R 2R 2R 2R 2R 2R

slide-48
SLIDE 48

R-2R ladder network: Thevenin resistance

R R R 2R 2R 2R 2R 2R

slide-49
SLIDE 49

R-2R ladder network: Thevenin resistance

R R R 2R 2R 2R 2R 2R R R R 2R 2R 2R R

slide-50
SLIDE 50

R-2R ladder network: Thevenin resistance

R R R 2R 2R 2R 2R 2R R R R 2R 2R 2R R

slide-51
SLIDE 51

R-2R ladder network: Thevenin resistance

R R R 2R 2R 2R 2R 2R R R R 2R 2R 2R R R R 2R 2R R

slide-52
SLIDE 52

R-2R ladder network: Thevenin resistance

R R R 2R 2R 2R 2R 2R R R R 2R 2R 2R R R R 2R 2R R

slide-53
SLIDE 53

R-2R ladder network: Thevenin resistance

R R R 2R 2R 2R 2R 2R R R R 2R 2R 2R R R R 2R 2R R R 2R R

slide-54
SLIDE 54

R-2R ladder network: Thevenin resistance

R R R 2R 2R 2R 2R 2R R R R 2R 2R 2R R R R 2R 2R R R 2R R

slide-55
SLIDE 55

R-2R ladder network: Thevenin resistance

R R R 2R 2R 2R 2R 2R R R R 2R 2R 2R R R R 2R 2R R R 2R R RTh = R

  • M. B. Patil, IIT Bombay
slide-56
SLIDE 56

R-2R ladder network: VTh for S0 = 1

R R R VR 2R 2R 2R 2R 2R

slide-57
SLIDE 57

R-2R ladder network: VTh for S0 = 1

R R R VR 2R 2R 2R 2R 2R

slide-58
SLIDE 58

R-2R ladder network: VTh for S0 = 1

R R R VR 2R 2R 2R 2R 2R R R R VR 2 2R R 2R 2R

slide-59
SLIDE 59

R-2R ladder network: VTh for S0 = 1

R R R VR 2R 2R 2R 2R 2R R R R VR 2 2R R 2R 2R

slide-60
SLIDE 60

R-2R ladder network: VTh for S0 = 1

R R R VR 2R 2R 2R 2R 2R R R R VR 2 2R R 2R 2R R R VR 4 2R 2R R

slide-61
SLIDE 61

R-2R ladder network: VTh for S0 = 1

R R R VR 2R 2R 2R 2R 2R R R R VR 2 2R R 2R 2R R R VR 4 2R 2R R

slide-62
SLIDE 62

R-2R ladder network: VTh for S0 = 1

R R R VR 2R 2R 2R 2R 2R R R R VR 2 2R R 2R 2R R R VR 4 2R 2R R R VR 8 2R R

slide-63
SLIDE 63

R-2R ladder network: VTh for S0 = 1

R R R VR 2R 2R 2R 2R 2R R R R VR 2 2R R 2R 2R R R VR 4 2R 2R R R VR 8 2R R

slide-64
SLIDE 64

R-2R ladder network: VTh for S0 = 1

R R R VR 2R 2R 2R 2R 2R R R R VR 2 2R R 2R 2R R R VR 4 2R 2R R R VR 8 2R R VTh = VR 16

  • M. B. Patil, IIT Bombay
slide-65
SLIDE 65

R-2R ladder network: VTh for S1 = 1

R R R VR 2R 2R 2R 2R 2R

slide-66
SLIDE 66

R-2R ladder network: VTh for S1 = 1

R R R VR 2R 2R 2R 2R 2R

slide-67
SLIDE 67

R-2R ladder network: VTh for S1 = 1

R R R VR 2R 2R 2R 2R 2R R R VR 2R 2R 2R 2R

slide-68
SLIDE 68

R-2R ladder network: VTh for S1 = 1

R R R VR 2R 2R 2R 2R 2R R R VR 2R 2R 2R 2R

slide-69
SLIDE 69

R-2R ladder network: VTh for S1 = 1

R R R VR 2R 2R 2R 2R 2R R R VR 2R 2R 2R 2R R R VR 2 2R 2R R

slide-70
SLIDE 70

R-2R ladder network: VTh for S1 = 1

R R R VR 2R 2R 2R 2R 2R R R VR 2R 2R 2R 2R R R VR 2 2R 2R R

slide-71
SLIDE 71

R-2R ladder network: VTh for S1 = 1

R R R VR 2R 2R 2R 2R 2R R R VR 2R 2R 2R 2R R R VR 2 2R 2R R R VR 4 2R R

slide-72
SLIDE 72

R-2R ladder network: VTh for S1 = 1

R R R VR 2R 2R 2R 2R 2R R R VR 2R 2R 2R 2R R R VR 2 2R 2R R R VR 4 2R R

slide-73
SLIDE 73

R-2R ladder network: VTh for S1 = 1

R R R VR 2R 2R 2R 2R 2R R R VR 2R 2R 2R 2R R R VR 2 2R 2R R R VR 4 2R R VTh = VR 8

  • M. B. Patil, IIT Bombay
slide-74
SLIDE 74

R-2R ladder network: VTh for S2 = 1

R R R VR 2R 2R 2R 2R 2R

slide-75
SLIDE 75

R-2R ladder network: VTh for S2 = 1

R R R VR 2R 2R 2R 2R 2R

slide-76
SLIDE 76

R-2R ladder network: VTh for S2 = 1

R R R VR 2R 2R 2R 2R 2R VR R 2R 2R 2R

slide-77
SLIDE 77

R-2R ladder network: VTh for S2 = 1

R R R VR 2R 2R 2R 2R 2R VR R 2R 2R 2R

slide-78
SLIDE 78

R-2R ladder network: VTh for S2 = 1

R R R VR 2R 2R 2R 2R 2R VR R 2R 2R 2R R VR 2 2R R

slide-79
SLIDE 79

R-2R ladder network: VTh for S2 = 1

R R R VR 2R 2R 2R 2R 2R VR R 2R 2R 2R R VR 2 2R R

slide-80
SLIDE 80

R-2R ladder network: VTh for S2 = 1

R R R VR 2R 2R 2R 2R 2R VR R 2R 2R 2R R VR 2 2R R VTh = VR 4

  • M. B. Patil, IIT Bombay
slide-81
SLIDE 81

R-2R ladder network: VTh for S3 = 1

R R R VR 2R 2R 2R 2R 2R

slide-82
SLIDE 82

R-2R ladder network: VTh for S3 = 1

R R R VR 2R 2R 2R 2R 2R

slide-83
SLIDE 83

R-2R ladder network: VTh for S3 = 1

R R R VR 2R 2R 2R 2R 2R VR 2R 2R

slide-84
SLIDE 84

R-2R ladder network: VTh for S3 = 1

R R R VR 2R 2R 2R 2R 2R VR 2R 2R VTh = VR 2

  • M. B. Patil, IIT Bombay
slide-85
SLIDE 85

R-2R ladder network: RTh and VTh

2R RTh VTh 2R R 2R R 2R R 2R S0VR S1VR S2VR S3VR

  • M. B. Patil, IIT Bombay
slide-86
SLIDE 86

R-2R ladder network: RTh and VTh

2R RTh VTh 2R R 2R R 2R R 2R S0VR S1VR S2VR S3VR * RTh = R .

  • M. B. Patil, IIT Bombay
slide-87
SLIDE 87

R-2R ladder network: RTh and VTh

2R RTh VTh 2R R 2R R 2R R 2R S0VR S1VR S2VR S3VR * RTh = R . * VTh = V (S0)

Th

+ V (S1)

Th

+ V (S2)

Th

+ V (S3)

Th

= VR 16

  • S0 20 + S1 21 + S2 22 + S3 23

.

  • M. B. Patil, IIT Bombay
slide-88
SLIDE 88

R-2R ladder network: RTh and VTh

2R RTh VTh 2R R 2R R 2R R 2R S0VR S1VR S2VR S3VR * RTh = R . * VTh = V (S0)

Th

+ V (S1)

Th

+ V (S2)

Th

+ V (S3)

Th

= VR 16

  • S0 20 + S1 21 + S2 22 + S3 23

. * We can use the R-2R ladder network and an op-amp to make up a DAC → next slide.

  • M. B. Patil, IIT Bombay
slide-89
SLIDE 89

DAC with R-2R ladder

2R Vo Vo VTh Rf Rf RTh 2R R 2R R 2R R 2R S0VR S2VR S1VR S3VR

  • M. B. Patil, IIT Bombay
slide-90
SLIDE 90

DAC with R-2R ladder

2R Vo Vo VTh Rf Rf RTh 2R R 2R R 2R R 2R S0VR S2VR S1VR S3VR * Vo = − Rf RTh VTh = − Rf RTh VR 16

  • S0 20 + S1 21 + S2 22 + S3 23

.

  • M. B. Patil, IIT Bombay
slide-91
SLIDE 91

DAC with R-2R ladder

2R Vo Vo VTh Rf Rf RTh 2R R 2R R 2R R 2R S0VR S2VR S1VR S3VR * Vo = − Rf RTh VTh = − Rf RTh VR 16

  • S0 20 + S1 21 + S2 22 + S3 23

. * For an N-bit DAC, Vo = − Rf RTh VTh = − Rf RTh VR 2N

N−1

  • Sk2k .
  • M. B. Patil, IIT Bombay
slide-92
SLIDE 92

DAC with R-2R ladder

2R Vo Vo VTh Rf Rf RTh 2R R 2R R 2R R 2R S0VR S2VR S1VR S3VR * Vo = − Rf RTh VTh = − Rf RTh VR 16

  • S0 20 + S1 21 + S2 22 + S3 23

. * For an N-bit DAC, Vo = − Rf RTh VTh = − Rf RTh VR 2N

N−1

  • Sk2k .

* 6- to 20-bit DACs based on the R-2R ladder network are commercially available in monolithic form (single chip).

  • M. B. Patil, IIT Bombay
slide-93
SLIDE 93

DAC with R-2R ladder

2R Vo Vo VTh Rf Rf RTh 2R R 2R R 2R R 2R S0VR S2VR S1VR S3VR * Vo = − Rf RTh VTh = − Rf RTh VR 16

  • S0 20 + S1 21 + S2 22 + S3 23

. * For an N-bit DAC, Vo = − Rf RTh VTh = − Rf RTh VR 2N

N−1

  • Sk2k .

* 6- to 20-bit DACs based on the R-2R ladder network are commercially available in monolithic form (single chip). * Bipolar, CMOS, or BiCMOS technology is used for these DACs.

  • M. B. Patil, IIT Bombay
slide-94
SLIDE 94

DAC: home work

Combination of weighted−resistor and R−2R ladder networks

r Rf Vo 8R 4R 2R R 8R 4R 2R R S0VR S1VR S2VR S3VR S5VR S4VR S7VR S6VR

  • M. B. Patil, IIT Bombay
slide-95
SLIDE 95

DAC: home work

Combination of weighted−resistor and R−2R ladder networks

r Rf Vo 8R 4R 2R R 8R 4R 2R R S0VR S1VR S2VR S3VR S5VR S4VR S7VR S6VR * Find the value of r for the circuit to work as a regular (i.e., binary to analog) DAC.

  • M. B. Patil, IIT Bombay
slide-96
SLIDE 96

DAC: home work

Combination of weighted−resistor and R−2R ladder networks

r Rf Vo 8R 4R 2R R 8R 4R 2R R S0VR S1VR S2VR S3VR S5VR S4VR S7VR S6VR * Find the value of r for the circuit to work as a regular (i.e., binary to analog) DAC. * Find the value of r for the circuit to work as a BCD to analog DAC.

  • M. B. Patil, IIT Bombay
slide-97
SLIDE 97

DAC: settling time

D0 D1 D2 DN−1 VA VR N-bit digital input analog

  • utput

ground

value initial value final

VA t

  • M. B. Patil, IIT Bombay
slide-98
SLIDE 98

DAC: settling time

D0 D1 D2 DN−1 VA VR N-bit digital input analog

  • utput

ground

value initial value final

VA t * When there is a change in the input binary number, the output VA takes a finite time to settle to the new value.

  • M. B. Patil, IIT Bombay
slide-99
SLIDE 99

DAC: settling time

D0 D1 D2 DN−1 VA VR N-bit digital input analog

  • utput

ground

value initial value final

VA t * When there is a change in the input binary number, the output VA takes a finite time to settle to the new value. * The finite settling time arises because of stray capacitances and switching delays of the semiconductor devices used within the DAC chip.

  • M. B. Patil, IIT Bombay
slide-100
SLIDE 100

DAC: settling time

D0 D1 D2 DN−1 VA VR N-bit digital input analog

  • utput

ground

value initial value final

VA t * When there is a change in the input binary number, the output VA takes a finite time to settle to the new value. * The finite settling time arises because of stray capacitances and switching delays of the semiconductor devices used within the DAC chip. * Example: 500 ns to 0.2 % of full scale.

  • M. B. Patil, IIT Bombay
slide-101
SLIDE 101

ADC: introduction

3−bit ADC

111 110 101 100 011 010 001 000

D1 D2 D0 VR VA

V′

A

ground digital

  • utput

analog input

Vmax V7

R

V6

R

V5

R

V4

R

V3

R

V2

R

V1

R

  • M. B. Patil, IIT Bombay
slide-102
SLIDE 102

ADC: introduction

3−bit ADC

111 110 101 100 011 010 001 000

D1 D2 D0 VR VA

V′

A

ground digital

  • utput

analog input

Vmax V7

R

V6

R

V5

R

V4

R

V3

R

V2

R

V1

R

* If the input VA is in the range V k

R < VA < V k+1 R

, the output is the binary number corresponding to the integer k. For example, for VA = V ′

A, the output is 100.

  • M. B. Patil, IIT Bombay
slide-103
SLIDE 103

ADC: introduction

3−bit ADC

111 110 101 100 011 010 001 000

D1 D2 D0 VR VA

V′

A

ground digital

  • utput

analog input

Vmax V7

R

V6

R

V5

R

V4

R

V3

R

V2

R

V1

R

* If the input VA is in the range V k

R < VA < V k+1 R

, the output is the binary number corresponding to the integer k. For example, for VA = V ′

A, the output is 100.

* We may think of each voltage interval (corresponding to 000, 001, etc.) as a “bin.” In the above example, the input voltage V ′

A falls in the 100 bin; therefore, the output of the ADC would be 100.

  • M. B. Patil, IIT Bombay
slide-104
SLIDE 104

ADC: introduction

3−bit ADC

111 110 101 100 011 010 001 000

D1 D2 D0 VR VA

V′

A

ground digital

  • utput

analog input

Vmax V7

R

V6

R

V5

R

V4

R

V3

R

V2

R

V1

R

* If the input VA is in the range V k

R < VA < V k+1 R

, the output is the binary number corresponding to the integer k. For example, for VA = V ′

A, the output is 100.

* We may think of each voltage interval (corresponding to 000, 001, etc.) as a “bin.” In the above example, the input voltage V ′

A falls in the 100 bin; therefore, the output of the ADC would be 100.

* Note that, for an N-bit ADC, there would be 2N bins.

  • M. B. Patil, IIT Bombay
slide-105
SLIDE 105

ADC: introduction

3−bit ADC

111 110 101 100 011 010 001 000

D1 D2 D0 VR VA

V′

A

ground digital

  • utput

analog input

Vmax V7

R

V6

R

V5

R

V4

R

V3

R

V2

R

V1

R

  • M. B. Patil, IIT Bombay
slide-106
SLIDE 106

ADC: introduction

3−bit ADC

111 110 101 100 011 010 001 000

D1 D2 D0 VR VA

V′

A

ground digital

  • utput

analog input

Vmax V7

R

V6

R

V5

R

V4

R

V3

R

V2

R

V1

R

* The basic idea behind an ADC is simple:

  • M. B. Patil, IIT Bombay
slide-107
SLIDE 107

ADC: introduction

3−bit ADC

111 110 101 100 011 010 001 000

D1 D2 D0 VR VA

V′

A

ground digital

  • utput

analog input

Vmax V7

R

V6

R

V5

R

V4

R

V3

R

V2

R

V1

R

* The basic idea behind an ADC is simple:

  • Generate reference voltages V 1

R, V 2 R, etc.

  • M. B. Patil, IIT Bombay
slide-108
SLIDE 108

ADC: introduction

3−bit ADC

111 110 101 100 011 010 001 000

D1 D2 D0 VR VA

V′

A

ground digital

  • utput

analog input

Vmax V7

R

V6

R

V5

R

V4

R

V3

R

V2

R

V1

R

* The basic idea behind an ADC is simple:

  • Generate reference voltages V 1

R, V 2 R, etc.

  • Compare the input VA with each of V i

R to figure out which bin it belongs to.

  • M. B. Patil, IIT Bombay
slide-109
SLIDE 109

ADC: introduction

3−bit ADC

111 110 101 100 011 010 001 000

D1 D2 D0 VR VA

V′

A

ground digital

  • utput

analog input

Vmax V7

R

V6

R

V5

R

V4

R

V3

R

V2

R

V1

R

* The basic idea behind an ADC is simple:

  • Generate reference voltages V 1

R, V 2 R, etc.

  • Compare the input VA with each of V i

R to figure out which bin it belongs to.

  • If VA belongs to bin k (i.e., V k

R < VA < V k+1 R

), convert k to the binary format.

  • M. B. Patil, IIT Bombay
slide-110
SLIDE 110

ADC: introduction

3−bit ADC

111 110 101 100 011 010 001 000

D1 D2 D0 VR VA

V′

A

ground digital

  • utput

analog input

Vmax V7

R

V6

R

V5

R

V4

R

V3

R

V2

R

V1

R

* The basic idea behind an ADC is simple:

  • Generate reference voltages V 1

R, V 2 R, etc.

  • Compare the input VA with each of V i

R to figure out which bin it belongs to.

  • If VA belongs to bin k (i.e., V k

R < VA < V k+1 R

), convert k to the binary format. * A “parallel” ADC does exactly that → next slide.

  • M. B. Patil, IIT Bombay
slide-111
SLIDE 111

3-bit parallel (flash) ADC

LOGIC

111 110 101 100 011 010 001 000

3−bit ADC

D2 D1 D0 D1 D2 D0 VR VA

V′

A

ground VA VR

R Vmax V7

R

V6

R

V5

R

V4

R

V3

R

V1

R

analog input digital

  • utput

V2

R

R/2 R R R R R R/2 V7

R

V6

R

V5

R

V4

R

V3

R

V2

R

V1

R

C6 C5 C4 C3 C2 C1 C0

  • M. B. Patil, IIT Bombay
slide-112
SLIDE 112

3-bit parallel (flash) ADC

LOGIC

D2 D1 D0 R 2 R 2 VA VR R R R R R R

C0 C1 C2 C3 C4 C5 C6

slide-113
SLIDE 113

3-bit parallel (flash) ADC

LOGIC

D2 D1 D0 R 2 R 2 VA VR R R R R R R

C0 C1 C2 C3 C4 C5 C6

* Practical difficulty: As the input changes, the comparator outputs (C0, C1, etc.) may not settle to their new values at the same time. → ADC output will depend on when we sample it.

slide-114
SLIDE 114

3-bit parallel (flash) ADC

LOGIC

D2 D1 D0 R 2 R 2 VA VR R R R R R R

C0 C1 C2 C3 C4 C5 C6

* Practical difficulty: As the input changes, the comparator outputs (C0, C1, etc.) may not settle to their new values at the same time. → ADC output will depend on when we sample it. * Add D flip-flops. Allow sufficient time (between the change in VA and the active clock edge) so that the comparator

  • utputs have already settled to their new values before they get latched in.
slide-115
SLIDE 115

3-bit parallel (flash) ADC

LOGIC

D2 D1 D0 R 2 R 2 VA VR R R R R R R

C0 C1 C2 C3 C4 C5 C6

Q Q D Q D Q D Q D Q D Q D D Clock LOGIC

D1 D0 D2 R 2 R 2 VA VR R R R R R R

C0 C1 C2 C3 C4 C5 C6 Q0 Q1 Q2 Q3 Q4 Q5 Q6

* Practical difficulty: As the input changes, the comparator outputs (C0, C1, etc.) may not settle to their new values at the same time. → ADC output will depend on when we sample it. * Add D flip-flops. Allow sufficient time (between the change in VA and the active clock edge) so that the comparator

  • utputs have already settled to their new values before they get latched in.
  • M. B. Patil, IIT Bombay
slide-116
SLIDE 116

Parallel (flash) ADC

Q Q D Q D Q D Q D Q D Q D D Clock LOGIC

D1 D0 D2 R 2 R 2 VA VR R R R R R R

C0 C1 C2 C3 C4 C5 C6 Q0 Q1 Q2 Q3 Q4 Q5 Q6

* In the parallel (flash) ADC, the conversion gets done “in parallel,” since all comparators operate

  • n the same input voltage.
  • M. B. Patil, IIT Bombay
slide-117
SLIDE 117

Parallel (flash) ADC

Q Q D Q D Q D Q D Q D Q D D Clock LOGIC

D1 D0 D2 R 2 R 2 VA VR R R R R R R

C0 C1 C2 C3 C4 C5 C6 Q0 Q1 Q2 Q3 Q4 Q5 Q6

* In the parallel (flash) ADC, the conversion gets done “in parallel,” since all comparators operate

  • n the same input voltage.

* Conversion time is governed only by the comparator response time → fast conversion (hence the name “flash” converter).

  • M. B. Patil, IIT Bombay
slide-118
SLIDE 118

Parallel (flash) ADC

Q Q D Q D Q D Q D Q D Q D D Clock LOGIC

D1 D0 D2 R 2 R 2 VA VR R R R R R R

C0 C1 C2 C3 C4 C5 C6 Q0 Q1 Q2 Q3 Q4 Q5 Q6

* In the parallel (flash) ADC, the conversion gets done “in parallel,” since all comparators operate

  • n the same input voltage.

* Conversion time is governed only by the comparator response time → fast conversion (hence the name “flash” converter). * Flash ADCs to handle 500 million analog samples per second are commercially available.

  • M. B. Patil, IIT Bombay
slide-119
SLIDE 119

Parallel (flash) ADC

Q Q D Q D Q D Q D Q D Q D D Clock LOGIC

D1 D0 D2 R 2 R 2 VA VR R R R R R R

C0 C1 C2 C3 C4 C5 C6 Q0 Q1 Q2 Q3 Q4 Q5 Q6

* In the parallel (flash) ADC, the conversion gets done “in parallel,” since all comparators operate

  • n the same input voltage.

* Conversion time is governed only by the comparator response time → fast conversion (hence the name “flash” converter). * Flash ADCs to handle 500 million analog samples per second are commercially available. * 2N comparators are required for N-bit ADC → generally limited to 8 bits.

  • M. B. Patil, IIT Bombay
slide-120
SLIDE 120

ADC: sampling of input signal

S C buffer buffer S C clock clock clock

Va Vs → to ADC t t Va Vs Tc Vs Va

  • M. B. Patil, IIT Bombay
slide-121
SLIDE 121

ADC: sampling of input signal

S C buffer buffer S C clock clock clock

Va Vs → to ADC t t Va Vs Tc Vs Va * An ADC typically operates on a “sampled” input signal (Vs(t) in the figure) which is derived from the continuously varying input signal (Va(t) in the figure) with a “sample-and-hold” (S/H) circuit.

  • M. B. Patil, IIT Bombay
slide-122
SLIDE 122

ADC: sampling of input signal

S C buffer buffer S C clock clock clock

Va Vs → to ADC t t Va Vs Tc Vs Va * An ADC typically operates on a “sampled” input signal (Vs(t) in the figure) which is derived from the continuously varying input signal (Va(t) in the figure) with a “sample-and-hold” (S/H) circuit. * The S/H circuit samples the input signal Va(t) at uniform intervals of duration Tc, the clock period.

  • M. B. Patil, IIT Bombay
slide-123
SLIDE 123

ADC: sampling of input signal

S C buffer buffer S C clock clock clock

Va Vs → to ADC t t Va Vs Tc Vs Va * An ADC typically operates on a “sampled” input signal (Vs(t) in the figure) which is derived from the continuously varying input signal (Va(t) in the figure) with a “sample-and-hold” (S/H) circuit. * The S/H circuit samples the input signal Va(t) at uniform intervals of duration Tc, the clock period. * When the clock goes high, switch S (e.g., a FET or a CMOS pass gate) is closed, and the capacitor C gets charged to the signal voltage at that time. When the clock goes low, switch S is turned off, and C holds the voltage constant, as desired.

  • M. B. Patil, IIT Bombay
slide-124
SLIDE 124

ADC: sampling of input signal

S C buffer buffer S C clock clock clock

Va Vs → to ADC t t Va Vs Tc Vs Va * An ADC typically operates on a “sampled” input signal (Vs(t) in the figure) which is derived from the continuously varying input signal (Va(t) in the figure) with a “sample-and-hold” (S/H) circuit. * The S/H circuit samples the input signal Va(t) at uniform intervals of duration Tc, the clock period. * When the clock goes high, switch S (e.g., a FET or a CMOS pass gate) is closed, and the capacitor C gets charged to the signal voltage at that time. When the clock goes low, switch S is turned off, and C holds the voltage constant, as desired. * Op-amp buffers can be used to minimise loading effects.

  • M. B. Patil, IIT Bombay
slide-125
SLIDE 125

Successive Approximation ADC

4−bit DAC Comparator

VA C VDAC

  • D2

D3 D0 D1

  • M. B. Patil, IIT Bombay
slide-126
SLIDE 126

Successive Approximation ADC

4−bit DAC Comparator

VA C VDAC

  • D2

D3 D0 D1 * Suppose we have a 4-bit DAC. We can use it to perform A-to-D conversion by successively setting the four bits as follows.

  • M. B. Patil, IIT Bombay
slide-127
SLIDE 127

Successive Approximation ADC

4−bit DAC Comparator

VA C VDAC

  • D2

D3 D0 D1 * Suppose we have a 4-bit DAC. We can use it to perform A-to-D conversion by successively setting the four bits as follows.

  • Start with D3D2D1D0 = 0000, I = 3.
  • M. B. Patil, IIT Bombay
slide-128
SLIDE 128

Successive Approximation ADC

4−bit DAC Comparator

VA C VDAC

  • D2

D3 D0 D1 * Suppose we have a 4-bit DAC. We can use it to perform A-to-D conversion by successively setting the four bits as follows.

  • Start with D3D2D1D0 = 0000, I = 3.
  • Set D[I] = 1 (keep other bits unchanged).
  • M. B. Patil, IIT Bombay
slide-129
SLIDE 129

Successive Approximation ADC

4−bit DAC Comparator

VA C VDAC

  • D2

D3 D0 D1 * Suppose we have a 4-bit DAC. We can use it to perform A-to-D conversion by successively setting the four bits as follows.

  • Start with D3D2D1D0 = 0000, I = 3.
  • Set D[I] = 1 (keep other bits unchanged).
  • If V DAC
  • > VA (i.e., C = 0), set D[I] = 0; else, keep D[I] = 1.
  • M. B. Patil, IIT Bombay
slide-130
SLIDE 130

Successive Approximation ADC

4−bit DAC Comparator

VA C VDAC

  • D2

D3 D0 D1 * Suppose we have a 4-bit DAC. We can use it to perform A-to-D conversion by successively setting the four bits as follows.

  • Start with D3D2D1D0 = 0000, I = 3.
  • Set D[I] = 1 (keep other bits unchanged).
  • If V DAC
  • > VA (i.e., C = 0), set D[I] = 0; else, keep D[I] = 1.
  • I ← I − 1; go to step 1.
  • M. B. Patil, IIT Bombay
slide-131
SLIDE 131

Successive Approximation ADC

4−bit DAC Comparator

VA C VDAC

  • D2

D3 D0 D1 * Suppose we have a 4-bit DAC. We can use it to perform A-to-D conversion by successively setting the four bits as follows.

  • Start with D3D2D1D0 = 0000, I = 3.
  • Set D[I] = 1 (keep other bits unchanged).
  • If V DAC
  • > VA (i.e., C = 0), set D[I] = 0; else, keep D[I] = 1.
  • I ← I − 1; go to step 1.

* At the end of four steps, the digital output is given by D3D2D1D0. Example → next slide.

  • M. B. Patil, IIT Bombay
slide-132
SLIDE 132

Successive Approximation ADC

5−bit DAC 1 2 3 4 5 step

D4 = 1 D3 = 0 D2 = 1 D1 = 1 D0 = 1 → reset D0 C = 0 D4 = 1 D3 = 0 D2 = 1 D1 = 1 D0 = 0 C = 1 D4 = 1 D3 = 1 D2 = 0 D1 = 0 D0 = 0 → reset D3 C = 0 D4 = 1 D3 = 0 D2 = 0 D1 = 0 D0 = 0 C = 1 D4 = 1 D3 = 0 D2 = 1 D1 = 0 D0 = 0 C = 1 20 k 30 k 16 k 24 k 20 k 22 k 23 k (Note: k ∝ VR) VR 10 k VA VDAC

  • C

VA D2 D4 D1 D3 D0 VDAC

  • M. B. Patil, IIT Bombay
slide-133
SLIDE 133

Successive Approximation ADC

5−bit DAC 1 2 3 4 5 step

D4 = 1 D3 = 0 D2 = 1 D1 = 1 D0 = 1 → reset D0 C = 0 D4 = 1 D3 = 0 D2 = 1 D1 = 1 D0 = 0 C = 1 D4 = 1 D3 = 1 D2 = 0 D1 = 0 D0 = 0 → reset D3 C = 0 D4 = 1 D3 = 0 D2 = 0 D1 = 0 D0 = 0 C = 1 D4 = 1 D3 = 0 D2 = 1 D1 = 0 D0 = 0 C = 1 20 k 30 k 16 k 24 k 20 k 22 k 23 k (Note: k ∝ VR) VR 10 k VA VDAC

  • C

VA D2 D4 D1 D3 D0 VDAC

  • * At the end of the 5th step, we know that the input voltage corresponds to 10110.
  • M. B. Patil, IIT Bombay
slide-134
SLIDE 134

Successive Approximation ADC

5−bit DAC 1 2 3 4 5 step

D4 = 1 D3 = 0 D2 = 1 D1 = 1 D0 = 1 → reset D0 C = 0 D4 = 1 D3 = 0 D2 = 1 D1 = 1 D0 = 0 C = 1 D4 = 1 D3 = 1 D2 = 0 D1 = 0 D0 = 0 → reset D3 C = 0 D4 = 1 D3 = 0 D2 = 0 D1 = 0 D0 = 0 C = 1 D4 = 1 D3 = 0 D2 = 1 D1 = 0 D0 = 0 C = 1 20 k 30 k 16 k 24 k 20 k 22 k 23 k (Note: k ∝ VR) VR 10 k VA VDAC

  • C

VA D2 D4 D1 D3 D0 VDAC

  • * At the end of the 5th step, we know that the input voltage corresponds to 10110.

* For the digital representation to be accurate up to ± 1

2 LSB, ∆V corresponding to 1 2 LSB is added to VA (see [Taub]).

  • M. B. Patil, IIT Bombay
slide-135
SLIDE 135

Successive Approximation ADC

digital

  • utput

N−bit SAR N−bit DAC Successive Approximation Register clock logic Control

5−bit DAC

Comparator

VR S/H VA VDAC

  • C

VR VDAC

  • V′

A(t)

VA D2 D4 D1 D3 D0

  • M. B. Patil, IIT Bombay
slide-136
SLIDE 136

Successive Approximation ADC

digital

  • utput

N−bit SAR N−bit DAC Successive Approximation Register clock logic Control

5−bit DAC

Comparator

VR S/H VA VDAC

  • C

VR VDAC

  • V′

A(t)

VA D2 D4 D1 D3 D0 * Each step (setting SAR bits, comparison of VA and V DAC

  • ) is performed in one clock cycle → conversion

time is N cycles, irrespective of the input voltage value VA.

  • M. B. Patil, IIT Bombay
slide-137
SLIDE 137

Successive Approximation ADC

digital

  • utput

N−bit SAR N−bit DAC Successive Approximation Register clock logic Control

5−bit DAC

Comparator

VR S/H VA VDAC

  • C

VR VDAC

  • V′

A(t)

VA D2 D4 D1 D3 D0 * Each step (setting SAR bits, comparison of VA and V DAC

  • ) is performed in one clock cycle → conversion

time is N cycles, irrespective of the input voltage value VA. * S. A. ADCs with built-in or external S/H (sample-and-hold) are available for 8- to 16-bit resolution and conversion times of a few µsec to tens of µsec.

  • M. B. Patil, IIT Bombay
slide-138
SLIDE 138

Successive Approximation ADC

digital

  • utput

N−bit SAR N−bit DAC Successive Approximation Register clock logic Control

5−bit DAC

Comparator

VR S/H VA VDAC

  • C

VR VDAC

  • V′

A(t)

VA D2 D4 D1 D3 D0 * Each step (setting SAR bits, comparison of VA and V DAC

  • ) is performed in one clock cycle → conversion

time is N cycles, irrespective of the input voltage value VA. * S. A. ADCs with built-in or external S/H (sample-and-hold) are available for 8- to 16-bit resolution and conversion times of a few µsec to tens of µsec. * Useful for medium-speed applications such as speech transmission with PCM.

  • M. B. Patil, IIT Bombay
slide-139
SLIDE 139

Counting ADC (digital-ramp ADC)

digital

  • utput

clock N−bit Counter Comparator reset clock N−bit DAC start conversion

S/H t C VDAC

  • Tc

VR VA Tc VDAC

  • VA
  • M. B. Patil, IIT Bombay
slide-140
SLIDE 140

Counting ADC (digital-ramp ADC)

digital

  • utput

clock N−bit Counter Comparator reset clock N−bit DAC start conversion

S/H t C VDAC

  • Tc

VR VA Tc VDAC

  • VA

* The “start conversion” signal clears the counter; counting begins, and V DAC

  • increases with each clock cycle.
  • M. B. Patil, IIT Bombay
slide-141
SLIDE 141

Counting ADC (digital-ramp ADC)

digital

  • utput

clock N−bit Counter Comparator reset clock N−bit DAC start conversion

S/H t C VDAC

  • Tc

VR VA Tc VDAC

  • VA

* The “start conversion” signal clears the counter; counting begins, and V DAC

  • increases with each clock cycle.

* When V DAC

  • exceeds VA, C becomes 0, and counting stops.
  • M. B. Patil, IIT Bombay
slide-142
SLIDE 142

Counting ADC (digital-ramp ADC)

digital

  • utput

clock N−bit Counter Comparator reset clock N−bit DAC start conversion

S/H t C VDAC

  • Tc

VR VA Tc VDAC

  • VA

* The “start conversion” signal clears the counter; counting begins, and V DAC

  • increases with each clock cycle.

* When V DAC

  • exceeds VA, C becomes 0, and counting stops.

* Simple scheme, but (a) conversion time depends on VA, (b) slow (takes (2N − 1) clock cycles in the worst case) → tracking ADC

  • M. B. Patil, IIT Bombay
slide-143
SLIDE 143

Tracking ADC

digital

  • utput

clock N−bit Counter N−bit DAC Comparator Up/Down

S/H C VDAC

  • t

VR Tc VA VDAC

  • Tc

VA

  • M. B. Patil, IIT Bombay
slide-144
SLIDE 144

Tracking ADC

digital

  • utput

clock N−bit Counter N−bit DAC Comparator Up/Down

S/H C VDAC

  • t

VR Tc VA VDAC

  • Tc

VA

* The counter counts up if V DAC

  • < VA; else, it counts down.
  • M. B. Patil, IIT Bombay
slide-145
SLIDE 145

Tracking ADC

digital

  • utput

clock N−bit Counter N−bit DAC Comparator Up/Down

S/H C VDAC

  • t

VR Tc VA VDAC

  • Tc

VA

* The counter counts up if V DAC

  • < VA; else, it counts down.

* If VA changes, the counter does not need to start from 000· · · 0, so the conversion time is less than that required by a counting ADC.

  • M. B. Patil, IIT Bombay
slide-146
SLIDE 146

Tracking ADC

digital

  • utput

clock N−bit Counter N−bit DAC Comparator Up/Down

S/H C VDAC

  • t

VR Tc VA VDAC

  • Tc

VA

* The counter counts up if V DAC

  • < VA; else, it counts down.

* If VA changes, the counter does not need to start from 000· · · 0, so the conversion time is less than that required by a counting ADC. * used in low-cost, low-speed applications, e.g., measuring output from a temperature sensor or a strain gauge

  • M. B. Patil, IIT Bombay
slide-147
SLIDE 147

Dual-slope ADC

slope = − VA RC slope = − VR RC T1 T2 −V1 R C Vo = − 1 RC

  • Vi dt

t Vi S VA VR

  • M. B. Patil, IIT Bombay
slide-148
SLIDE 148

Dual-slope ADC

slope = − VA RC slope = − VR RC T1 T2 −V1 R C Vo = − 1 RC

  • Vi dt

t Vi S VA VR

* t = 0: reset integrator output Vo to 0 V by closing S momentarily.

  • M. B. Patil, IIT Bombay
slide-149
SLIDE 149

Dual-slope ADC

slope = − VA RC slope = − VR RC T1 T2 −V1 R C Vo = − 1 RC

  • Vi dt

t Vi S VA VR

* t = 0: reset integrator output Vo to 0 V by closing S momentarily. * Integrate VA (voltage to be converted to digital format, assumed to be positive) for a fixed interval T1.

  • M. B. Patil, IIT Bombay
slide-150
SLIDE 150

Dual-slope ADC

slope = − VA RC slope = − VR RC T1 T2 −V1 R C Vo = − 1 RC

  • Vi dt

t Vi S VA VR

* t = 0: reset integrator output Vo to 0 V by closing S momentarily. * Integrate VA (voltage to be converted to digital format, assumed to be positive) for a fixed interval T1. * At t = T1, integrator output reaches −V1 = − VA T1 RC .

  • M. B. Patil, IIT Bombay
slide-151
SLIDE 151

Dual-slope ADC

slope = − VA RC slope = − VR RC T1 T2 −V1 R C Vo = − 1 RC

  • Vi dt

t Vi S VA VR

* t = 0: reset integrator output Vo to 0 V by closing S momentarily. * Integrate VA (voltage to be converted to digital format, assumed to be positive) for a fixed interval T1. * At t = T1, integrator output reaches −V1 = − VA T1 RC . * Now apply a reference voltage VR (assumed to be negative, with |VR| > VA), and integrate until Vo reaches 0 V.

  • M. B. Patil, IIT Bombay
slide-152
SLIDE 152

Dual-slope ADC

slope = − VA RC slope = − VR RC T1 T2 −V1 R C Vo = − 1 RC

  • Vi dt

t Vi S VA VR

* t = 0: reset integrator output Vo to 0 V by closing S momentarily. * Integrate VA (voltage to be converted to digital format, assumed to be positive) for a fixed interval T1. * At t = T1, integrator output reaches −V1 = − VA T1 RC . * Now apply a reference voltage VR (assumed to be negative, with |VR| > VA), and integrate until Vo reaches 0 V. * Since V1 = VA T1 RC = |VR| T2 RC , we have T2 = T1 VA |VR| → T2 gives a measure of VA.

  • M. B. Patil, IIT Bombay
slide-153
SLIDE 153

Dual-slope ADC

slope = − VA RC slope = − VR RC T1 T2 −V1 R C Vo = − 1 RC

  • Vi dt

t Vi S VA VR

* t = 0: reset integrator output Vo to 0 V by closing S momentarily. * Integrate VA (voltage to be converted to digital format, assumed to be positive) for a fixed interval T1. * At t = T1, integrator output reaches −V1 = − VA T1 RC . * Now apply a reference voltage VR (assumed to be negative, with |VR| > VA), and integrate until Vo reaches 0 V. * Since V1 = VA T1 RC = |VR| T2 RC , we have T2 = T1 VA |VR| → T2 gives a measure of VA. * In the dual-slope ADC, a counter output – which is proportional to T2 – provides the desired digital output.

  • M. B. Patil, IIT Bombay
slide-154
SLIDE 154

Dual-slope ADC

N−bit Counter comparator SPDT A integrator

  • verflow

clock clock digital output

C

B

slope = − VA RC slope = − VR RC T2 T1 = 2N Tc R Vo Tc t −V1 VA VR reset

  • M. B. Patil, IIT Bombay
slide-155
SLIDE 155

Dual-slope ADC

N−bit Counter comparator SPDT A integrator

  • verflow

clock clock digital output

C

B

slope = − VA RC slope = − VR RC T2 T1 = 2N Tc R Vo Tc t −V1 VA VR reset

* Start: counter reset to 000· · · 0, SPDT in position A.

  • M. B. Patil, IIT Bombay
slide-156
SLIDE 156

Dual-slope ADC

N−bit Counter comparator SPDT A integrator

  • verflow

clock clock digital output

C

B

slope = − VA RC slope = − VR RC T2 T1 = 2N Tc R Vo Tc t −V1 VA VR reset

* Start: counter reset to 000· · · 0, SPDT in position A. * Counter counts up to 2N at which point the overflow flag becomes 1, and SPDT switches to position B → T1 = 2N Tc where Tc is the clock period.

  • M. B. Patil, IIT Bombay
slide-157
SLIDE 157

Dual-slope ADC

N−bit Counter comparator SPDT A integrator

  • verflow

clock clock digital output

C

B

slope = − VA RC slope = − VR RC T2 T1 = 2N Tc R Vo Tc t −V1 VA VR reset

* Start: counter reset to 000· · · 0, SPDT in position A. * Counter counts up to 2N at which point the overflow flag becomes 1, and SPDT switches to position B → T1 = 2N Tc where Tc is the clock period. * The counter starts counting again from 000· · · 0, and stops counting when Vo crosses 0 V. The counter output gives T2 in binary format.

  • M. B. Patil, IIT Bombay
slide-158
SLIDE 158

References

* K. Gopalan, Introduction to Digital Microelectronic Circuits, Tata McGraw-Hill, New Delhi, 1978. * H. Taub and D. Schilling, Digital Integrated Electronics, McGraw-Hill, 1977.

  • M. B. Patil, IIT Bombay