Docsity

From Logic to Memory: Understanding Multiplexers and Sequential Circuits, Study notes of Digital Electronics

Toggle sidebar
bg1
MARK EDWARDS NDUNGU
L1146697
ASSIGNMENT RESEARCH
I. COMBINATION CIRCUITS
A. MULTIPLEXERS
Multiplexers, shortened as “MUX” or “MPX” is a combination of logic circuit
designed to switch one of several input lines through a single common output line
by the application of control signals. They operate fast acting multiple position
rotary switches connecting or controlling multiple input lines called Channels
one at a time to the output(Combination circuit with 2n data inputs, n-control
inputs and only one output)
They are either digital circuits made from high speed logic gates used to switch
digital or Binary data or can be analogue types using transistors. The most basic
type of multiplexer device is that of one –way rotary switch as shown;
Basic Multiplexing Switch
The rotary switch, also called a wafer switch, is a mechanical device whose input is
selected by rotating a shaft (manual switch that you can use to select an individual data or
single lines simply by turning ON and OFF)
In digital electronics are also known as Data selectors because the can “select” each input
line and constructed from individual Analogue switches encased in single IC package as
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download From Logic to Memory: Understanding Multiplexers and Sequential Circuits and more Study notes Digital Electronics in PDF only on Docsity!

MARK EDWARDS NDUNGU

L114 6697

ASSIGNMENT RESEARCH

I. COMBINATION CIRCUITS

A. MULTIPLEXERS

 Multiplexer s , shortened as “MUX” or “MPX” is a combination of logic circuit designed to switch one of several input lines through a single common output line by the application of control signals. They operate fast acting multiple position rotary switches connecting or controlling multiple input lines called Channels one at a time to the output (Combination circuit with 2n^ data inputs, n-control inputs and only one output)  They are either digital circuits made from high speed logic gates used to switch digital or Binary data or can be analogue types using transistors. The most basic type of multiplexer device is that of one –way rotary switch as shown;

Basic Multiplexing Switch

The rotary switch, also called a wafer switch, is a mechanical device whose input is selected by rotating a shaft (manual switch that you can use to select an individual data or single lines simply by turning ON and OFF) In digital electronics are also known as Data selectors because the can “select” each input line and constructed from individual Analogue switches encased in single IC package as

opposed to the mechanical type selectors such as normal convectional switches and relays. They are used as one method of reducing the no. of logic gates required in a circuit design or when a single data line/bus is required to carry two or more different digital signals.eg; a single 8-channel multiplexer NOTE; Multiplexers are different in operation to Encoders, where they are able to switch an n-built input pattern to multiple output lines that are represent the Binary coded output equivalent of the active input.

2-input Multiplexer Design

The input A of this sample 2-1 line multiplexer circuit constructed from a standard NAND gates acts to control which input (1 0 or 1 1 )gets passed to the output at Q E.g. Q= A.1 1 +A.1 0 When we increase the number of data inputs to be selected further simplify by following procedure and larger multiplexer circuits can be implemented using smaller 2-to-1 MUX as they are basic building blocks. So for a 4=input MUX we would therefore require tow data set lines as 4-inputs represents 2 2 data controls lines give a circuit with four inputs 10 ,1 1 ,1 2 ,1 3 and two data select lines A and B. Q=abA+abB+abC +abD ( 4-to-1 Channel MUX ) MUX Symbol There are also types that can switch their inputs and have arrangements or 4-to-2, 8-to- or even 16-to-4 etc. config.

Y3= (((D.S1)* S0))

Truth table S1 S0 D Y3 Y2 Y1 Y 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 0 0 0 0 1 0 1 0 1 0 0 1 1 0 0 0 0 0 1 1 1 1 0 0 0

C. ENCODERS

An Encoder is a combinational circuit that performs the reverse operation of Decoder. It has a maximum if 2n^ inputs lines and n outputs (without a single output line) 4-to-2 Encoder Y3 A Y2 A Y Y 4-to- Encoder

At any time only one of this 4 inputs can be ‘1’ in order to get respective binary code at the output. The truth table of 4-to-2 encoder is shown below INPUTS OUTPUTS Y3 Y2 Y1 Y0 A1 A 0 0 0 1 0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 1 1 From the truth table we can write Boolean Function for each output as $$A_ {1} =Y_ {3} +Y_ {2} $$ $$A_ {0} =Y_ {3} +Y_ {1} $$ Using a circuit diagram; Y3 A Y A Y There is also the Octal to Binary Encoder (8-to-3) which consist of 8 inputs; Y7 to Y 0 and 3 outputs; A2, A1, and A0. Each input line corresponds to each octal digit and three out outs generate corresponding binary code.

 There is the ambiguity, when all outputs of encoder are equal to zero.  If more than one input is active High, then the encoder produces an output, which may not be the correct code. Uses of Encoders  Are common electronic circuit used in all digital systems.  Used to translate decimal values to binary in order to perform the binary function such as addiction, subtraction and division.  Other applications especially for priority Encoders may include detecting interrupts in microprocessors applications.

D. PARITY CHECKER

 It’s a combination circuit that accepts an n-1 bit stream data and generates the additional bit that is to be transmitted with the bit stream. This additional or extra bit is termed as s parity bit.  The parity check is a logic circuit that checks for possible errors in the transmission. This circuit can be an even or odd parity checker depending on the type of parity generated at the transmission end.  When this circuit is used as even parity checker , the no. of input bits must be always even. When parity errors occurs, the ‘sum even’ output goes low and ‘sum odd’ output goes high.  If this logic circuit is used as an odd parity checker , the no. of input should be odd where ‘sum odd’ output goes low and ‘sum even’ goes high.

Even Parity Checker Consider that three input message along with even parity bit is generated at the transmitting end. These 4 bits are applied as input to the parity checker circuit which checks the possibility of error on the data. Since the data is transmitted with even parity, four bits received at circuit must have an even number of 1s. If any error occurs, the received message consists of odd number of 1s. The output of the parity checker is denoted by PEC (parity error check). Odd Parity Checker Consider that a three bit message along with odd parity bit is transmitted at the transmitting end. Odd parity checker circuit receives these 4 bits and checks whether any error are present in the data. If the total number of 1s in the data is odd, then it indicates no error, whereas if the total number of 1s is even then it indicates the error since the data is transmitted with odd parity at transmitting end.

Circuit Diagram Truths Table Inputs Outputs E S R Qn+1 Qn+ 1 0 0 Qn Qn 1 0 1 0 1 1 1 0 1 0 1 1 1 X x Condition Operation S = R = 0 : No change (^) If S = R = 0 then output of NAND gates 3 and 4 are forced to become 1. Hence R' and S' both will be equal to 1. Since S' and R' are the input of the basic S- R latch using NAND gates, there will be no change in the state of outputs. S = 0, R = 1, E = 1 (^) Since S = 0, output of NAND-3 i.e. R' = 1 and E = 1 the output of NAND-4 i.e. S' =

Hence Qn+1 = 0 and Qn+1 bar = 1. This is reset condition. S = 1, R = 0, E = 1 (^) Output of NAND-3 i.e. R' = 0 and output of NAND-4 i.e. S' = 1. Hence output of S-R NAND latch is Qn+1 = 1 and Qn+1 bar = 0. This is the reset condition.

S = 1, R = 1, E = 1 (^) As S = 1, R = 1 and E = 1, the output of NAND gates 3 and 4 both are 0 i.e. S' = R' = 0. Hence the Race condition will occur in the basic NAND latch. JK Flip Flops This is a cascade of two S-R flip flop with feedback from the output of second to input of first. Master is a positive level triggered. But due to the presence of the inverter in the clock line, the slave will respond to the negative level. Hence when the clock = 1 (positive level) the master is active and the slave is inactive. Whereas when clock = 0 (low level) the slave is active and master is inactive. Circuit Diagram Operation

slave flip flop will avoid the race around condition. Delay/ D Flip Flops  Delay or D Flip Flop is the simple gated S-R latch with a NAND inverter connected between S and R inputs.  It has only one input. The input data is appearing at the output after some time. Due to this data delay between i/p and o/p, it is called delay flip flop. S and R will be the complements of each other due to NAND inverter. Hence S = R = 0 or S = R = 1, these input condition will never appear.  This problem is avoid by SR = 00 and SR = 1 conditions. Block Diagram Circuit diagram

Inputs Outputs E D Qn+1 Qn+ 1 0 0 1 1 1 1 0 Operation Condition Operation E = 0 (^) Latch is disabled. Hence no change in output. E = 1 and D = 0 (^) If E = 1 and D = 0 then S = 0 and R = 1. Hence irrespective of the present state, the next state is Qn+1 = 0 and Qn+1 bar = 1. This is the reset condition. E = 1 and D = 1 (^) If E = 1 and D = 1, then S = 1 and R = 0. This will set the latch and Qn+1 = 1 and Qn+1 bar = 0 irrespective of the present state. Practical Demonstration of D Flip-Flop:

 The Edge triggered D flip flops are used in the sampling circuits to sample the date at particular time interval. I.e. at a sharp interval when the clock changes from low to high the input data will be delivered to the output and it remains the same until the next clock low to high. We can adjust the sampling intervals by changing the clock pulse widths.  It is used as a buffer to store the intermediate data  It is also used to introduce the delay in the circuits. Toggle / T flip flops  Toggle flip flop is basically a JK flip flop with J and K terminals permanently connected together.  It has only input denoted by T as shown in the Symbol Diagram. The symbol for positive edge triggered T flip flop Symbol diagram

Block Diagram Truths table Inputs Output E T Qn+1 Qn+ 1 0 Qn Qn 1 1 Qn Qn Operation Condition Operation T = 0, J = K = 0 The output Q and Q bar won't change T = 1, J = K = 1 Output will toggle corresponding to every leading edge of clock signal.