C12 Embedded systems in MicroPython and C · Practice
The ADC's input: sampling capacitors, dividers and references
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
Check
A source of 10 kΩ drives a 12-bit ADC that samples onto 5 pF through 1 kΩ.
(a)
What is the time constant?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
What acquisition time settles a full-scale step to half a code?
Check
A 10 kΩ source (plus 1 kΩ switch) charges 10 pF for 2 µs after a full-scale step on a 12-bit ADC.
(a)
How many codes short is the reading?
(b)
What fraction of the step did it reach?
Check
A 12 V supply is measured through 100 kΩ over 33 kΩ.
(a)
What does the pin see?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What current does the divider draw?
(c)
What source resistance does the ADC see?
Check
A 10-bit ADC samples onto 10 pF.
(a)
What pin capacitor keeps the charge-sharing error under half a code?
Write units the way you normally would: 1.5 nF, 1500 pF and 0.0015 µF are the same answer.
(b)
With exactly that capacitor, how many codes does a full-scale charge share dip the pin?
Check
A source of 10 kΩ feeds a 10 nF capacitor at the pin.
(a)
What corner frequency does it make?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
How long does a full-scale change take to settle to half a 12-bit code?
Check
The 3.3 V reference is actually 1% high, and the input is 1 V.
(a)
What code does the ADC give?
(b)
What error results if the program assumes 3.3 V?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
Check
Acquisition time for a 22 kΩ source, 1 kΩ switch, 10 pF, 12 bits?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
Pin voltage for 6 V through 68 kΩ over 47 kΩ?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
Pin capacitor for half-a-code charge sharing with 8 pF at 12 bits?
Write units the way you normally would: 1.5 nF, 1500 pF and 0.0015 µF are the same answer.
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in C12