Book Analog Interfacing to Embedded Microprocessors
Result = 1000 0000
Set bit 4 of SAR, DAC voltage = 2.8125v (2.5 + .3125)
Comparator output high, leave bit 4 set
Result = 1001 0000
Set bit 3 of SAR, DAC voltage = 2.968v (2.8125 + .15625)
Comparator output high, leave bit 3 set
Result = 1001 1000
20 Analog Interfacing to Embedded Microprocessors
Set bit 2 of SAR, DAC voltage = 3.04v (2.968 + .078125)
Comparator output low, reset bit 2
Result = 1001 1000
Set bit 1 of SAR, DAC voltage = 3.007v (2.8125 + .039)
Comparator output low, reset bit 1
Result = 1001 1000
Set bit 0 of SAR, DAC voltage = 2.988v (2.8125 + .0195)
Comparator output high, leave bit 0 set
Final result = 1001 1001
Using the 0-to-5v, 8-bit DAC, this corresponds to:
2.5 + .3125 +