Electronics Circuits and Systems II — Quick-Review Notes

Demultiplexer vs. Decoder

• Demultiplexer (Demux): single data input, nn control lines, 2n2^n mutually-exclusive outputs; routes the single input to one selected output.
• Decoder: nn data inputs, 2n2^n outputs; converts binary code to one-hot code (no data input to route).
• Block symbols: Demux – triangle with 11 input, multiple outputs. Decoder – block with nn inputs on left, 2n2^n outputs on right.

Using a 4!:!164!:!16 Decoder to Realise Logic Functions

• Generate 1616 minterm lines D<em>0D</em>15D<em>0 \ldots D</em>{15}.
• Form each function by OR-ing required minterms:
F<em>1(A,B,C,D)=Σ(0,1,2,4,6,7,12,14)F<em>1(A,B,C,D)=\Sigma(0,1,2,4,6,7,12,14)F</em>2(A,B,C,D)=Σ(3,5,8,10,13,15)F</em>2(A,B,C,D)=\Sigma(3,5,8,10,13,15)
F3(A,B,C,D)=Σ(5,6,7,11,12)F_3(A,B,C,D)=\Sigma(5,6,7,11,12)
• OR gates may share minterm lines for economy.

Railway-Platform Priority Decoder (Concept)

• Inputs: platform busy switches P<em>1,P</em>2,P<em>3,P</em>4P<em>1,P</em>2,P<em>3,P</em>4 (logic 11 when OCCUPIED).
• Outputs: track-changer controls T<em>1,T</em>2,T<em>3T<em>1,T</em>2,T<em>3 and outer signal SS. • Design rules: – Give highest priority to lowest-numbered free platform. – S=1S=1 (green) iff at least one platform free. • Implement with combinational priority logic using AND/OR/NOT only (no storage): – Free flags F</em>i=P<em>iF</em>i=\overline{P<em>i}. – Select P</em>1P</em>1 when F<em>1F<em>1; else P</em>2P</em>2 when F<em>1F</em>2\overline{F<em>1}F</em>2; etc.
– Derive T<em>1,T</em>2,T3T<em>1,T</em>2,T_3 from selected path truth table.

RAM Technologies

• Bipolar RAM: Schottky TTL cells; very fast access (≈1010 ns) but high power & low density.
• MOS RAM: NMOS/CMOS; lower power, higher density, slower (≈4545 ns+).
• DRAM cell vs. SRAM cell:
– DRAM: single MOS + capacitor ⇒ refresh, very high density, low cost, slower.
– SRAM: 66-MOS latch ⇒ no refresh, faster, lower density, higher power per bit.

Fundamental Memory Terms

• Memory Address Register (MAR): holds address of word to access; size = address bits.
• Memory Buffer Register (MBR): data register (read/write) whose width = word length.
• Memory Cycle Time: minimum time between successive independent accesses (includes access + recovery).
• Volatile Memory: retains data only while power applied (e.g.
DRAM, SRAM).

Example – 8K×208\text{K}\times20 Memory

• Words stored: 81928\,192.
• Bits stored: 8192×20=1638408\,192\times20=163\,840.
• Address bits: log28192=13\log_2 8\,192 = 13MAR=13\text{MAR}=13 bits.
MBR=20\text{MBR}=20 bits (word size).

Expanding 16×416\times4 (7489) to 16×816\times8

• Parallel connect two identical ICs.
• Tie address lines A<em>0A<em>0A</em>3A</em>3 and enable pins together.
• Lower-order chip supplies data bits D<em>0D<em>0D</em>3D</em>3, upper chip D<em>4D<em>4D</em>7D</em>7.
• Outputs form an 88-bit word per address.

D/A Converter Essentials

• Key specs: resolution (LSB), accuracy, monotonicity, differential/integral linearity, settling time, output drive.
• Bits for 1010 mV resolution on 1010 V full scale:
N=log<em>2(10/0.01)=10N=\lceil \log<em>2(10/0.01) \rceil =10 bits. • 1212-bit converter, V</em>FS=10V</em>{FS}=10 V ⇒ LSB=102121=2.44 mV\text{LSB}=\dfrac{10}{2^{12}-1}=2.44\text{ mV}; percentage =0.0244%=0.0244\%.

55-bit Ladder DAC (input 00=00 V, 11=1010 V)

• Contribution of bit kk (MSB k=4k=4) =10 V/25×2k=10\text{ V}/2^{5}\times2^{k}.
• Output for 1011010110 =10×(1/2+0/4+1/8+1/16+0/32)=10×0.8125=8.125 V=10\times(1/2+0/4+1/8+1/16+0/32)=10\times0.8125=8.125\text{ V}.
• Full-scale (all 11): 10×(11/32)=9.6875 V10\times(1-1/32)=9.6875\text{ V}.

Counter-(Ramp) Type ADC

• Blocks: sample-and-hold, binary counter, DAC, comparator, clock.
• Operation: counter runs until DAC ≥ V<em>INV<em>{IN} → comparator stops count; counter value = digital output. • Example (given): – LSB=20.46/1023=0.02 V\text{LSB}=20.46/1023=0.02\text{ V}. – Digital code for V</em>A=7.456V</em>A=7.456 V ⇒ 7.456/0.02=372<em>10=101110100</em>2\lfloor7.456/0.02\rfloor=372<em>{10}=101110100</em>{2}.
– Conversion time: 372372 counts / 2 MHz=186 µs2\text{ MHz}=186\text{ µs}.
– Resolution =0.02 V=0.02\text{ V}.

Programmable Logic Devices (PLDs)

• Families: PROM, PLA, PAL, GAL, CPLD, FPGA.
• PLA: both AND & OR planes programmable; allows any sum-of-products; outputs may be registered.
• Example PLA (33 inputs, 44 product terms, 22 outputs) realises F<em>1F<em>1, F</em>2F</em>2 from specified minterms.

TTL NAND (Totem-Pole) Gate

• Multi-emitter input transistor → phase-splitter → totem-pole output pair provides low-impedance pull-up/pull-down.
• Pros: high speed, good fan-out, symmetrical transitions.
• Cons: higher power, requires careful bus wiring (no wired-OR).

Bus-Oriented Logic Gates

• Tri-state buffer & inverter are basic bus drivers; output can be 00, 11, or high-Z (disconnect) enabling shared lines.

Bistable Devices

• Clocked RS FF waveforms: level-sensitive; ignore simultaneous R=S=1R=S=1.
• NAND gate latch with cross-feedback behaves as RS FF – truth table verifies.
• JK FF eliminates invalid state; master-slave arrangement (two cascaded latches) achieves edge-triggering.

Ring vs. Johnson Counters

• Ring: nn FFs circulate a single 11nn distinct states.
• Johnson (twisted ring): complement of last FF fed to first ⇒ 2n2n states; pattern for 44-bit: 0000,1000,1100,1110,1111,0111,0011,00010000,1000,1100,1110,1111,0111,0011,0001 then repeats.

Counter Designs

• Divide-by-1010 asynchronous (ripple) using T-FFs: connect four FFs for binary count, decode 10101010 with gate → asynchronous clear.
• Synchronous Mod-1010 with non-binary sequence 0,2,4,5,6,8,9,3,1,70,2,4,5,6,8,9,3,1,7:
– Draw state diagram (arrows follow sequence).
– Transition table lists present / next states & required JK inputs.
– Karnaugh maps give minimal expressions.
– Implement with 44 JK FFs plus gating for next-state logic.