NivaarExam PrepOfficial exam papers ↗

17-Phys-A5 · December 2018

Question 5 of 6

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

17-Phys-A5-B — Analog and Digital Electronic Circuits — National Exams, December 2018
3 hours duration. Open book exam. Answer all SIX (6) questions.

Reference texts: A. S. Sedra & K. C. Smith, Microelectronic Circuits, 8th ed. (BJT/MOSFET biasing and small-signal amplifiers Ch. 6–7, current-mirror loads and cascodes Ch. 7–8, feedback amplifiers Ch. 10, high-frequency response and open-circuit time constants Ch. 9, D/A converters Ch. 17); M. M. Mano & M. D. Ciletti, Digital Design, 6th ed. (Boolean algebra Ch. 2, static CMOS logic gates Ch. 10).

Question 5 (15 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. 8-bit DAC, $V_{ref}=5\,\text{V}$, $B_{in}=10110100_2$.

Find. (a) $V_{out}$. (b) $V_{LSB}$.

DACB_inV_refv_O
Fig. 5 — 8-bit DAC block: digital word $B_{in}$ and reference $V_{ref}$ in, analog $v_O$ out.

Approach. An $n$-bit DAC produces $V_{out}=V_{ref}\cdot D/2^n$, where $D$ is the binary word's decimal value; $V_{LSB}=V_{ref}/2^n$ is the step size (one LSB's worth of output).

  1. (a) Convert $B_{in}$ to decimal. $$B_{in}=10110100_2=1(128)+0(64)+1(32)+1(16)+0(8)+1(4)+0(2)+0(1)=180$$
  2. Compute $V_{out}$. $$\boxed{V_{out}=V_{ref}\cdot\frac{D}{2^8}=5\,\text{V}\times\frac{180}{256}=3.5156\ \text{V}}$$
  3. (b) Compute $V_{LSB}$. $$\boxed{V_{LSB}=\frac{V_{ref}}{2^8}=\frac{5\,\text{V}}{256}=19.53\ \text{mV}}$$

Check: $180\times19.53\,\text{mV}=3.5156\,\text{V}$, i.e. the output is simply the code times one LSB. Full scale (code 255) would be $5\times255/256=4.980\,\text{V}$, one LSB short of $V_{ref}$, and this input sits at about 70 % of that range, as expected for a code whose MSB is set.

QuantityValue
$D$ (decimal of $B_{in}$)180
(a) $V_{out}$3.5156 V
(b) $V_{LSB}$19.53 mV