DEPT : Revision Purpose (Logic Family, Memory System, OP-Amp, Clipper-Clamper)

Created by
BBorhan
Last edited time
Tag

Lecture 1 to 3 :

Logic Families : TTL NOT*, NAND***, and CMOS*, CMOS NOT Gate, TTL and CMOS Tri-static logic, Totem-pole**, definitions and differences*

Questions:

If both A and B is logic 1, the emitter-base junction of T1 would be reverse biased, while the collector-base junction would be forward biased due to sufficient voltage through R1, thereby turning on T2. The voltage drop across the emitter-base junction of T2 is adequate to activate T3, resulting in the activation of T1, T2, and T3. Conversely, the voltage drop across the emitter-base junction of T4 is approximately 0.9 (0.7+0.2=0.9, considered as 0.7 by Sir), which is insufficient (≥1.4 required) to activate T4, resulting in T4 remaining off. Consequently, the output will be logic 0, as T3 and V0 (output) are now short-circuited.

If either A or B are logic 0, the emitter-base junction of T1 would be forward biased, while the collector-base junction would be reverse biased, causing T2 and T3 to turn off. However, there will be sufficient voltage to activate T4 (≥1.4), leading to the activation of T4 and short-circuiting of the output terminal with T4. Hence, the output will be logic 1 (5 - 0.7*2 = 3.6 Volts).

ABY
001
011
101
110

PropertyOpen Collector TTL NAND GateTotem-Pole TTL NAND Gate
Output ConfigurationOpen collector output, requires external pull-up resistorTotem-pole output with push-pull configuration
Output Voltage LevelsLower output voltage levels (typically around 0.2V when low and Vcc when high)Higher output voltage levels (close to Vcc when high and close to ground when low)
Output ImpedanceHigh output impedance when high, low impedance when low due to pull-up resistorLow output impedance when high, low impedance when low
Output Driving CapabilityCan sink current but cannot source current, requires external pull-up resistorCan both sink and source current, capable of driving loads directly
Noise ImmunityBetter noise immunity due to open collector configurationSlightly less noise immunity compared to open collector configuration
SpeedGenerally slower due to higher output impedanceGenerally faster due to lower output impedance
Circuit ComplexitySimpler circuit design with fewer componentsMore complex circuit design with additional transistors for totem-pole output
ApplicationsSuitable for applications requiring wired-OR configurationsSuitable for general-purpose applications requiring both sinking and sourcing of current
Power ConsumptionLower power consumption due to open collector configurationSlightly higher power consumption due to additional transistors and push-pull configuration

Because of current spike problem.

The active pull-up or totem-pole output of the TTL gate always has one transistor cutoff and the other turned on. We can not connect two outputs together. If one is trying to pull the output high, the other is trying to pull it low. We will have a very low impedance path to ground and very large current. For the same reason, the output must not be connected to any voltage source or to ground through a low impedance path.

Totem Pole means the addition of an active pull up the circuit in the output of the Gate which results in a reduction of propagation delay.

Logic operation is the same as the open collector output. The use of transistors Q4 and diode is to provide quick charging and discharging of parasitic capacitance across Q3. The resistor is used to keep the output current to a safe value.

When the input is low, the corresponding base-emitter junction is forward biased, and the base-collector junction is reverse biased. As a result transistor Q2 is cut off and also transistor Q4 is cut off. Transistor Q3 goes to saturation and diode D2 starts conducting and output is connected to Vcc and goes to logic high. Similarly, when input is at logic high, the base emitter junction is reverse biased, and the base-collection is forward biased.

There has enough voltage (≥1.4) to turn on Q2. Then Q2 turns on the Q4. But, Q3 goes to cutoff state because of having 0.7 (maybe 0.9) at the base-emitter junction. So, the output is connected with Q4 to GND and goes to logic low or 0.

Quantization error in the context of TTL (Transistor-Transistor Logic) devices refers to the discrepancy between the ideal analog voltage levels and the discrete voltage levels that the TTL device can recognize or output.

The maximum number of outputs a TTL gate can drive without affecting the gate’s performance. (Typically, its 10)

The term CMOS stands for “Complementary Metal Oxide Semiconductor”. Complementary Metal Oxide Semiconductor transistor consists of P-channel MOS (PMOS) and N-channel MOS (NMOS).

NMOS is built on a p-type substrate with n-type source and drain diffused on it. The majority carriers are electronics. When a high voltage is applied, it will conduct otherwise not.

PMOS consists of P-type source and drain diffused on a n-type substrate. Majority carriers are holes. When a high voltage is applied to he gate, the PMOS will not conduct, otherwise it will.

SpecificationsTTLCMOSECL
Basic GateNANDNOR/NANDOR/NOR
ComponentsPassive Elements & TransistorsMOSFETsPassive Elements & Transistors
Fan-out10>5025
Noise ImmunityStrongExtremely StrongGood
Noise MarginModerateHighLow
TPD in ns1.5 to 301 to 2101 to 4
Clock Rate in MHz3510>60
Power/Gate in mWatt100.002540 to 55
Figure of Merit1000.740 to 50

PropertyCMOS/MOFET SwitchBJT Switch
Operating PrincipleUtilizes complementary pairs of MOSFETs
For MOSFET: Metal-oxide semiconductor field
Utilizes bipolar junction transistors (BJTs)
Voltage OperationOperates with both positive and negative voltagesRequires a positive voltage for operation
Power ConsumptionGenerally lower power consumptionTypically higher power consumption
SpeedFaster switching speedSlower switching speed
Noise ImmunityHigh noise immunity due to low output impedanceSusceptible to noise due to high output impedance
Voltage DropMinimal voltage dropModerate voltage drop
FabricationTypically fabricated using CMOS technologyFabricated using semiconductor processes
Input ImpedanceHigh input impedanceModerate input impedance
Output ImpedanceLow output impedanceModerate output impedance
Temperature SensitivityLow sensitivity to temperature variationsModerate sensitivity to temperature variations
Area OccupancyRequires larger silicon areaRequires smaller silicon area
CharacteristicSpeedPower UtilizationPacking Density
NAND GatesFastModerate to LowHigh
NOR GatesFastModerate to LowHigh
NOT GatesFastLowHigh
AND GatesModerateModerate to LowModerate to High
OR GatesModerateModerate to LowModerate to High
XOR GatesModerateModerate to LowModerate to High
XNOR GatesModerateModerate to LowModerate to High

  1. TTL (Transistor-Transistor Logic)
  1. CMOS (Complementary Metal-Oxide-Semiconductor)
  1. ECL (Emitter-Coupled Logic)
  1. RTL (Resistor-Transistor Logic)
  1. NMOS (N-type Metal-Oxide-Semiconductor)
  1. DTL (Diode-Transistor Logic)
  1. CTL (Complementary Transistor Logic)

Let’s assume that the threshold voltage (VT) of the NMOS transistor is 0.5 V. When VGS = 5V or when VGS > VT , (Let’s assume that logic ‘1’ is 5V) then MOSFET will be ON and acts as a close switch. Therefore, in actual case also, the output will be very close to 0V or logic ‘0’.

Similarly, when VGS = 0V or logic ‘0’ then MOSFET will be OFF and it will act as a open switch. And through the drain resistor, the output will get connected to the supply voltage. That means when input is 0 then output is VDD.

Out of Question

CMOS inverter/NOT gate

Vin is logic ‘0’, then PMOS will be ON and NMOS will OFF.

Vin is logic ‘1’, then PMOS will be OFF and NMOS will ON.

TSL inverter/Tri Static TTL inverter

Data InputControlData Output
00High - Z
10High - Z
011
110

CMOS Tri-state inverter

EAY
00/1A
10/1High-Z

Lecture 4 to 5

Topic: RAM, ROM classifications*, comparisons*, designing RAM***, ROM*

CSR/WModeData pins
01ReadData out
00WriteData in
1XStandbyHigh Z

MODECEOEWEData Pin
Read001Data Out
Write010Data in
Standby1XXHigh Z

PROMEPROMEEPROMFlash MemoryMROM
Programmable ROMErasable ProgrammableElectrically Erasable ProgrammableFlash Electrically Erasable ROMMask ROM
Not erasableErasable using UV lightErasable electricallyErasable electricallyNo applicable
One-time programmableReprogrammable after using UVReprogrammable electricallyReprogrammable electricallyNot programmable after manufacturing
SlowSlower than EEPROMSlower than FlashFaster than EPROM and EEPROMFast
Density lowLow to mediumLow to mediumHighHigh
Cost lowMediumMedium to highLow to mediumLow

A 32x4 memory refers to a memory organization where there are 32 memory locations and each location can store 4 bits of data.

Address line = 2^5 = 5

Input and output line : 4

Operations:

A 64x4 memory refers to a memory organization where there are 64 memory locations and each location can store 4 bits of data.

Address line =log226log_2 2^6 = 6

Input and output line : 4

Static Random Access Memory (SRAM) is a type of semiconductor memory that uses bistable latching circuitry (flip flop) to store each bit of data/ It is fast and not require refreshing like DRAM.

The architecture of SRAM:

Clipper and Clamper Circuit

PARAMETERSCLIPPERCLAMPER
DefinitionClipper delimit the amplitude of the output voltage by clipping that part without affecting the remaining part.Clamper shifts the DC level of the output voltage either upward or downward depending on whether positive or negative clamper.
Output VoltageLess than the input voltage.Multiples of input voltage.
Energy storage componentNot requiredRequires (Capacitor is used as energy storage element)
Shape of Output WaveformShape changes (Rectangular, sinusoidal, triangular etc.)Shape remains same as input waveform.
DC LevelRemains sameDC level get shifted
ApplicationsIn transmitters, receivers, amplitude selector, noise limiter etc.In voltage multiplying circuits, Sonar, Radar system etc.

Positive Shunt Clipper

It clips the positive output voltage waveform.

When the positive half cycle is being passed, the diode is forward biased and the output voltage Vout V_{out} is zero because of being short-circuited the current doesn’t pass through output. Similarly, when the negative half cycle is being passed, the diode is reverse biased, so the output voltage Vout V_{out} is similar to the input, if we neglects the resistance.

Positive Series Clipper

It clips the positive output current waveform.

When the positive half cycle is passed, the diode is in reverse bias, and the voltage across  RL  R_{L}  is zero. Similarly, when the negative half cycle is passed, the diode is forward biased, so the voltage through  RL  R_{L}  is similar to the input voltage.

OP-Amp

An OP-Amp relaxation oscillator is also known as an astable multivibrator. It is used to generate square waves. The circuit diagram the Op-Amp relaxation oscillator is shown in the figure

The capacitor will charge exponentially towards +Vsat+V_{sat}. It never reaches VsatV_{sat} because when its voltage hits the UTP, the output then switches Vsat-V_{sat}. Now a negative voltage is being feedback, so, the capacitor reverse its charging direction. The capacitor voltage decreases. When it hits the LTP, the output switches back to +Vsat+V_{sat} because of the capacitor output is rectangular wave.

An op-amp relaxation oscillator is also known as astable multivibrator. It is used to generate square waves.

Assume that the output is in positive saturation. If Vcc=+10Vcc = +10  and Vee=10Vee = -10 and the value of capacitor is less than these voltage, we will get positive voltage in VoV_o output and a part of this voltage go through the resistors. When capacitor want to cross the voltage of resistor VoV_o becomes negative, then the resistor voltage becomes negative. In this way, when the capacitor again become less than the voltage of resistor it the VoV_o becomes positive again. In this way we get rectangular through this charging and discharging.

The output of a integrator is a triangular wave if input is a square wave. Here, we are converting a wave into square by using relaxation oscillator.


Converting to Square wave: …

Converting Square to Triangular: Basically triangular wave is generated by alternatively charging and discharging a capacitor with a constant current. This is achieved by connecting integrator circuit at the output of square wave generator. Assume, that V’ is high at +Vsat . This forces a constant current (+Vsat/3) through C to drive Vo negative linearly. When V’ is low at Vsat it forces a constant current (-Vsat/3) through C to drive Vo positive, linearly.

The non-inverting op-amp circuit diagram is shown below. The output voltage signal is given to the inverting terminal of the op-amp like feedback through a resistor where another resistor to the ground. These two resistors will provide necessary feedback to the operational amplifier. In perfect condition, op-amp’s input pin will provide maximum input impedance whereas the output pin will provide low impedance.

The current rule: No current flows into the input of the op-amp.

The voltage rule: The output of the op amp attempts to ensure that the voltage difference between the two inputs is zero.

f=2RCln(1+B1B)=...f = 2RCln(\frac{1+B}{1-B}) = ...

The output voltage is the integration of the input voltage. Here, the non-inverting is grounded and inverting connects with a resistor and a Capacitor which is connected with output too.

The note B is grounded so is A.

VA=0=VBV_A=0=V_B

The current is flowing from R1R_1 to Cf,C_f, so

I=Vin0R1I = \frac{V_{in}-0}{R_1} .. (ii), I=VoCf=CfdVodtI=\frac{-V_o}{C_f} = -C_f \frac{dV_o}{dt}… (i)

Vo=1R1Cf(Vindt)V_o = - \frac{1}{R_1C_f} \int (V_{in} dt)

v=vi+(vfvi)(1etRC)v = v_i + (v_f - v_i)(1 - e^{\frac{-t}{RC}})

v=βVsatv = \beta V_{sat}

vi=βVsatv_i = -\beta V_{sat}

vf=Vsatv_f = V_{sat}

t=T2t=\frac{T}{2}

Now,
βVsat=βVsat+(Vsat+βVsat)(1eT2RC)\beta V_{sat} = -\beta V_{sat} +(V_{sat}+\beta V_{sat})(1-e^{\frac{-T}{2RC}})

T=2RCln(1+β1β)T = 2RCln(\frac{1+\beta}{1-\beta})

-

Multivibrator