Q and As in Digital
Q and As in Digital
4. Change the sign and take the I’s complement of the result to get the final
answer.
Question:
1001 — 1101
Result from Step 1: 0010
Theorem (1) says that when the OR sum of two variables is inverted, this is the
same as inverting each variable individually and then ANDing these inverted
variables.
Theorem (2) says that when the AND product of two variables is inverted, this is
the same as Inverting each variable individually and then ORing them
For Question
Q. 5. What is a BCD code? What are its advantages and disadvantages?
Redundant codes. Since the maximum decimal digit is 9, the maximum code
that can be represented using each of the 4 bits is 1001. This means that 1010,
1011, 1100, 1101, 1110 and 1111 are effectively redundant (although in some
systems, redundant codes can be used for representing positive and negative
numbers).
Fast conversion between BCD and decimal. The major advantage of BCD is the
ease and the speed with which decimal numbers can be converted into BCD
representation (Think how you convert a large decimal number to its ordinary
binary representation). If very little arithmetic is being done, then slower
performance is a less serious drawback.
Q. 6. Design a circuit that will generate an odd parity bit for 3-bit input and
implement it using exclusive gates.
Ans. As we have studied earlier, a parity bit is an extra bit to be included with
a binary message to make the number of l’s either odd (i.e. odd parity) or even
(i.e. even parity). The message, including the parity bit, is transmitted and then
checked at the receiving end for errors. An error is detected if the checked parity
does not correspond to the one transmitted.
Parity generator: the logic circuit that generates the parity bit in the
transmitter.
Parity checker: the logic circuit that checks the parity in the receiver.
The truth table below is for an odd parity generator for the Transmitting Unit.
Note that the truth table displays property = 2 from the previous page. The
minterms all have an even number of l’s (i.e. 000,011,101,110). Thus the odd
parity generator can be implemented as shown below:
The truth table below is for an odd parity checker for the Receiving Unit. Note
that the output C of the parity checker is a I when an odd parity error occurs.
Since the function for C consists of the eight minterms with numerical values
having an even number of 0’s, the function can be expressed with XNOR
(equivalence) operators as follows
(A) 26 (B) 36
(A)4 (B)5
(C)3 (D)2.
Ans. (D) 2.
Ans. 177.25
001—111—111.010—101
Ans.
(1) 11001 — 10110 using l’s complement
Ans.
Ans. (A+B’C)
Ans. 2222
0010—0010—0010-0010
Example. Perform the following 2’s complement arithmetic. Also show each
problem in base 10.
Answer: 111100001 ÷ 1101 = 100101
Theorem (1) says that when the OR sum of two variables is inverted, this is the
same as inverting each variable individually and then ANDing these inverted
variables.
Theorem (2) says that when the AND product of two variables is inverted, this
is the same as inverting each variable individually and then ORing them.
For Question
For: (x+y)’ x’ * y’
Use Karnaugh map. Draw the logic circuit for the simplified function
using NOR gates only.
Ans. (AB’+ACD’+A’B’D+CD’)
Ans. Complements are used in digital computers for simplifying the subtraction
operation and logical manipulations. Since A B = A + (-B) and complement systems
provide a convenient way of representing negative numbers, we can convert a
subtraction to an addition. When implemented with digital hardware, it is more
efficient to use complements than to use direct subtraction. Since multiplication and
division correspond to repeated addition and subtraction, respectively, it is possible
to perform the four basic arithmetic operations using only the hardware for addition
when negative numbers are represented in complement form.
One’s complement
The ones’ complement form of a negative binary number is the bitwise NOT applied
to
Two’s complement
The problems of multiple representations of 0 and the need for the end-around
carry are circumvented by a system called two’s complement. In two’s complement,
negative numbers are represented by the bit pattern which is one greater (m an
unsigned sense) than the ones’ complement of the positive value.
Ans. The Karnaugh map, known as a Veitch diagram (KV-map or K-map for
short), is a method to simplify Boolean algebra expressions. The Karnaugh map
reduces the need for extensive calculations by taking advantage of humans’
pattern-recognition capability, permitting the rapid identification and elimination of
potential race hazards.
In a Karnaugh map the Boolean variables are transferred (generally from a truth
table) and ordered according to the principles of Gray code in which only one
variable changes in between squares. Once the table is generated and the output
possibilities are transcribed, the data is arranged into the largest possible groups
containing 2ri cells (n = 0,1,2,3...) and the minterm is generated through the
axiom laws of Boolean algebra.
Ans.
Q. 27. What is electronics?
The branch of engineering which deals with the flow of electrons through vacuum,
gas or semiconductor is called Electronics.
Ans. Digital electronics is the branch of electronics dealing with discrete levels
of voltage in circuitry. Most digital electronics is based on signals that are coded to
operate at just 2 levels. The idea that just 2 levels are needed to convey
information is not new. Over 200 years ago, the Admiralty telegraph was invented
to convey messages comparatively rapidly over long distances.
George Boole published his famous work. An Investigation of the Laws of Thought
in 1854. In it, he set up the foundations of “Boolean algebra”. Electronic logic really
began to develop from the 1890s when automatic telephone exchanges were
introduced,, to control the routing of telephone circuits.
Digital electronics is a particular behavior where two voltage values or ranges are
used as a basis for communication between electronic components, devices and
systems.
The human ear can detect sounds in the range of 20 Hz to 20 kHz. This is
considered to be the range of frequencies that need to be transmitted for a hi-fi
music system. If it is not intended to transmit music but only speech, then the
bandwidth required can be reduced to extend from 300 Hz to 4 kHz. This reduced
bandwidth is the range that normal telephone lines use.
A fax machine is able to send pictures along a telephone line. However, as soon
as a moving picture is required to be transmitted then the bandwidth of the signal
has to increase considerably to accommodate all of the additional information. A
typical colour television picture signal occupies a bandwidth from 50Hz to
approximately 6MHz, or 300 times the bandwidth of a hi-fi music signal. To
transmit information requires either the various signals to be passed along cables
(metal or optical fiber) or to be modulated onto a radio frequency carrier signal.
Most commercial radio stations have a carrier frequency that is greater than 150
kHz and can extend well into the GHz region of the radio spectrum. A television
signal transmitted at a frequency of 487.25MHz will occupy a bandwidth that
extends to 493.25MHz. Some basic applications of electronics systems are
discussed as follows
Audio systems
The pre-amplifier has two main functions. It contains the signal source selector so
that the tuner, CD player etc. can be selected. It also provides extra amplification
of the signals and boosts them to the level required by the amplifier (approximately
2 V). The pre-amplifier will also contain the other controls, e.g., volume, treble,
bass, balance etc.
The amplifier boosts the level of the signal from the pre-amplifier to the
level required by the loudspeakers without distorting the signal. A typical hi-fl
amplifier is capable of delivering 100 watts of electrical power to each loudspeaker.
The loudspeakers change the electrical audio signals into sound. Most hi-
fi speakers nominally have an impedance of 8W, while car speakers have an
impedance of 4W. Most loudspeakers are very inefficient and often more than 95%
of the power delivered to the speaker by the amplifier just heats up the
loudspeaker without being converted into sound.
Radio
The given below Figure shows the basic block diagram of a simple radio
receiver.
The aerial receives radio waves from transmitting stations, and other sources of
radio waves, which induce alternating currents and voltages in the aerial. These
mall voltages and currents then pass to the radio frequency (RF) tuned circuit which
filter out the required radio station.
For now we will work very mechanically and slowly - we will work much more
quickly later.
1. Break the decimal number into its integer and fractional parts;
— The fractional part of 443.62510 is 0.62510 (or .62510 - this form will suit us
better!)
2. Divide the integer part of the number repetitively by 2 until a Zero value results,
recording the remainders from each division, then assemble the remainders, most
recent leftmost, to form the integer part of the result;
Divide the integer part of the number respective by 2 until
a Zero value results, recording the remainders from each division, then assemble
the remainders, most recent left most, to form the integer part of the result.
3. Multiply the fractional part of the number repetitively by 2 (recording any integer
overflows) until either a Zero value results or we find sufficient digits of accuracy,
then assemble the overflows, most recent rightmost, to form the result’s fractional
part;
The fractional part of the result is 1012 (i.e. 0.1012)
4. Place a radix point between the integer and fractional parts of the result and
write in a subscript to indicate the base.
Somewhat earlier in this chapter, we mentioned that the basic Boolean gates
were AND, OR, and NOT; and indicated that the NAND and NOR gates could be
considered as “derived”. From the viewpoint of Boolean algebra, this is true. From
the viewpoint of electrical engineering, this is false as the two “derived” gates are
often used to construct the gates for the functions that appear to be logically
simpler.
2. The same circuit can also be used as a decoder, by using the address inputs
as a binary number and producing an output signal on the single output that
matches the binary address input. In this application, the data input line functions
as a circuit enabler — if the circuit is disabled, no output will show activity
regardless of the binary input number.
Ans. A self-starting counter is one in which every possible state, even those
not in the desired count sequence, has a sequence of transitions that eventually
leads to a valid counter state. This guarantees that no matter how the counter
starts up, it will eventually enter the proper counter sequence.
Ans. The term register can be used in a variety of specific applications, but in
all cases it refers to a group of flip-flops operating as a coherent unit to hold data.
This is different from a counter, which is a group of flip-flops operating to generate
new data by tabulating it.
(A) 4 (B)3
(C) 5 (D) 1.
Ans. (A) 4
(A) 10 (B) 3
(C)4 (D)2.
Ans. (C) 4
A decade counter is one that counts in decimal digits, rather than binary. A
decimal counter may have each digit binary encoded (that is, it may count in
binary-coded decimal, as the 7490 integrated circuit did) or other binary encodings
(such as the bi quinary encoding of the 7490 integrated circuit). Alternatively, it
may have a “fully decoded” or one-hot output code in which each output goes high
in turn; the 4017 was such a circuit. The latter type of circuit finds applications in
multiplexers and demultiplexers, or wherever a scanning type of behavior is useful.
Similar counters with different numbers of outputs are also common. The decade
counter is also known as a mod-l0 counter.
OCTAL TO BINARY ENCODER -
Octal-to-Binary take 8 inputs and provides 3 outputs, thus do the opposite of what
the 3-to-8 decoder does. At any one time, only one input line has a value of 1. The
figure below shows the truth table of an Octal-to-binary encoder.
For an 8-to-3 binary encoder with inputs 10-17 the logic expressions of the
outputs Y0-Y7 are:
Based on the above equations, we can draw the circuit as shown below:
Q. 11. Explain the working of master slave JK flip-flop.
Ans. The memory elements in a sequential circuit are called flip-flops. A flip-
flop circuit has two outputs, one for the normal value and one for the complement
value of the stored bit. Binary information can enter a flip-flop in a variety of ways
and gives rise to different types of flip-flops.
Q. 12. Explain how Parallel In Serial Out (PISO) shift register works.
Ans. Shift Registers consists of a number of single bit “D-Type Data Latches”
connected together in a chain arrangement so that the output from one data latch
becomes the input of the next latch and so on, thereby moving the stored data
serially from either the left or the right direction. The number of individual Data
Latches used to make up Shift Registers are determined by the number of bits to be
stored with the most common being 8-bits wide. Shift Registers are mainly used to
store data and to convert data from either a serial to parallel or parallel to serial
format with all the latches being driven by a common clock (Clk) signal making
them Synchronous devices.
They are generally provided with a Clear or Reset connection so that they can
be “SET” or “RESET” as required.
Parallel-in to Serial-out Shift Registers act in the opposite way to the Serial-in
to Parallel-out one above. The DATA is applied in parallel form to the parallel input
pins PA to PD of the register and is then read out sequentially from the register
one bit at a time from PA to PD on each clock cycle in a serial format.
As this type of Shift Register converts parallel data, such as an 8-bit data word
into serial data it can be used to multiplex many different input lines into a single
serial DATA stream which can be sent directly to a computer or transmitted over a
communications line. Commonly available IC’s include the 74HC165 8-bit Parallel-
in/ Serial-out Shift Registers.
Ans.
The Karnaugh maps for the next state variables are shown in Table these, and
from minimizing taking advantage of the ‘don’t care’ conditions:
Table: Karnaugh maps for the next state variables for a mod-6 binary up-
counter
Using the above equations to determine the next state values for the unused
states of 6 (i.e. Q2 QI Q0 110) and 7, we find that they lead to states 7 and 4,
respectively. (The states can also be found by considering the Boolean values used
in the ‘don’t care’ conditions in the Karnaugh maps during minimisation). These are
shown, together with the state diagram in Fig. Which illustrates the sequence of
states the circuit moves through as it is clocked.
Fig. State diagram for the mod-6 binary up-counter implemented using D-type
flip-flops
Note that rather than using the ‘don’t care’ states to aid minimization they
could have been used to ensure the unused count states led to specific states. A
common choice is for them to lead to state 0 so that if either state was entered due
to a circuit error then at the next clock cycle the counter would ‘reset’. (To achieve
this 0’s are simply entered in place of the x’s before the Karnaugh maps are used
for minimization.)
Q. 15. The device which changes from serial data to parallel data is:
A is False, B is True
A is False, C is True
A, B, C are False
A, B, C are True
(a) Write the Truth table for F. Use the convention True = 1 and False = 0.
(d) Draw logic circuit using minimum number of 2-input NAND gates.
Ans. The full-adder circuit adds three one-bit binary numbers (C A B) and
outputs two one-bit binary numbers, a sum (S) and a carry (Cl). The full-adder is
usually a component in a cascade of adders, which add 8, 16, 32, etc. binary
numbers. The carry input for the full-adder circuit is from the carry output from the
circuit “above” itself in the cascade. The carry output from the full adder is fed to
another full adder “below” itself in the cascade. Basically a full adder is a logic
element which operates on two binary digits and a carry digit from a preceding
stage, producing as output a sum digit and a new carry digit. It is also known as
three-input adder.
Ans. A one-bit register or a flip-flop which indicates overflow, carry, or sign bit
from past or current operations. 8085 microprocessor has a set 5 flip-flops which
serves as the status flags & they are: Sign Flag, Carry Flag, Auxiliary Carry Flag,
and Parity Flag & Zero Flag.
1. Zero flag: if result is 0 than it is set condition i.e.1 otherwise it is reset i.e. is 0.
2. Carry flag: if an extra bit arises than it is set condition i.e.1 otherwise it is
reset i.e. is 0.
4. Parity flag: if number of l’s in the answer is even than it is set condition i.e.1
otherwise it is reset i.e. is 0.
Ans. We know logic reduction problems where the input conditions were
completely specified. That is, a 3-variable truth table or Karnaugh map had 2’ = 2
or 8-entries, a full table or map. It is not always necessary to fill in the complete
truth table for some real-world problems. We may have a choice to not fill in the
complete table.
For example, when dealing with BCD (Binary Coded Decimal) numbers encoded
as four bits, we may not care about any codes above the BCID range of (0, 1, 2.
.9). The 4-bit binary codes for the hexadecimal numbers (Ah, Bh, Ch, Eh, Fh) are
not valid BCD codes. Thus, we do not have to fill in those codes at the end of a
truth table, or K-map, if we do not care to. We would not normally care to fill in
those codes because those codes (1010, 1011, 1100, 1101, 1110, 1111) will never
exist as long as we are dealing only with BCD encoded numbers. These six invalid
codes are don’t cares as far as we are concerned. That is, we do not care what
output our logic circuit produces for these don’t cares.
Ans. In digital circuits, a shift register is a cascade ol flip flops, sharing the
same clock, which has the output of any one but the last flip-flop connected to the
“data” input of the next one in the chain, resulting in a circuit that shifts by one
position the one-dimensional “bit array” stored in it, shifting in the data present at
its input and shifting out the last bit in the array, when enabled to do so by a
transition of the clock input. More generally, a shift register may be
multidimensional, such that its “data in” input and stage outputs are themselves bit
arrays: this is implemented simply by running several shift registers of the same
bit-length in parallel.
Shift registers can have both parallel and serial inputs and outputs.
These are often configured as serial-in, parallel-out (SIPO) or as parallel-in, serial-
out (PISO). There are also types that have both serial and parallel input and types
with serial and parallel output. There are also bi-directional shift registers which
allow shifting in both directions: L-R or R-L
An edge-triggered flip-flop changes states either at the positive edge (rising edge)
or at the negative edge (falling edge) of the clock pulse on the control input. The
three basic types are introduced here: S-R, J-K and D.
Notice the small triangle, called the dynamic input indicator, is used to
identify an edge-triggered flip-flop.
The S-R, J-K and D inputs are called synchronous inputs because data on
these inputs are transferred to the flip-flop’s output only on the triggering edge of
the clock pulse. On the other hand, the direct set (SET and clear (CLR) inputs are
called asynchronous inputs, as they are inputs that affect the state of the flip-flop
independent of the clock. For the synchronous operations to work properly, these
asynchronous inputs must both be kept LOW.
The basic operation is illustrated below, along with the truth table for this type
of flip-flop. The operation and truth table for a negative edge-triggered flip-flop are
the same as those for a positive except that the falling edge of the clock pulse is
the triggering edge.
Note that the S and R inputs can be changed at any time when the clock input is
LOW or HIGH (except for a very short interval around the triggering transition of
the clock) without affecting the output. This is illustrated in the timing diagram
below:
Edge-triggered J-K flip-flop
The J-K flip-flop works very similar to S-R flip-flop. The only difference is
that this flip-flop has NO invalid state. The outputs toggle (change to the opposite
state) when both J and K inputs are HIGH. The truth table is shown below.
Edge-triggered D flip-flop
While the master-slave U flip flop is also triggered on the edge of a clock, its
components are each triggered by clock levels. The “edge-triggered D flip-flop”
does not have the master-slave properties.
Uses
• A single flip-flop can be used to store one bit, or binary digit, of data. See preset.
• Any one of the flip-flop types can be used to build any of the others.
• Many logic synthesis tools will not use any other type than D flip-flop and D latch.
• Level sensitive latches cause problems with Static Timing Analysis (STA) tools and
Design For Test (DFT). Therefore, their usage is often discouraged.
• One use is to build finite state machines from electronic logic. The flip-flops
remember the machine’s previous state, and digital logic uses that state to
calculate the next state.
Q.29. Explain the working of half adder and full adder? How can we
construct full adder using half adders?
Ans. Half Adder and Full Adder.
A single bit binary adder circuit basically adds two bits and a carry bit,
generated by the addition of the least significant bits. The output of the single bit
adder circuit generates a sum bit and a carry bit. A single digit binary adder circuit
therefore has three inputs, one representing single bit number A, the other
representing the single bit number B and the third bit represents the single bit
carry. The single bit binary adder has two bit output. One bit represents the Sum
between numbers A and B. The other bit represents the carry bit generated due to
addition.
1. Half-Adder
The Half-Adder has a 2-bit input and a 2-bit output. The truth table of the Half
Adder has two input columns representing the two single bit numbers A and B. The
truth table also has two output columns representing the Sum bit and Carry Out bit.
Half –Adder Sum & Carry Out Boolean Expressions
The Sum and Carry Out expressions of the Half-Adder can be determined from
the truth table. The Half-Adder Sum and Carry Out outputs are defined by the
expressions
The Half-Adder Logic Circuit can be directly implemented from the Sum and
Carry Out Boolean expressions. Figure 14.6
1. Full-Adder
A Full-Adder can be fully described in terms of its Truth table, its Sum
and Carry Out Boolean Expressions and the circuit Implementation.
The Full-Adder has a 3-bit input and a 2-bit output. The truth table of
the Full- Adder has three input columns representing the two single bit numbers A,
B and the Carry In bit. The truth table also has two output columns representing
the Sum bit and Carry Out bit. Table 14.4
Full-Adder Sum & Carry Out Boolean Expressions
The Sum and Carry Out expressions of the Full-Adder can be determined from
the truth table. The Full-Adder Sum and Carry Out outputs are defined by the
expressions.
The Full-Adder Logic Circuit can be directly implemented from the Sum and
Carry out Boolean expressions.
Forming a Full-Adder using Half-Adders
The second use of the Demultiplexer is the reconstruction of Parallel Data from the
incoming serial data stream. Serial data arrives at the Data input of the
Demultiplexer at fixed time intervals. A counter attached to the Select inputs of the
Demultiplexer routes the incoming serial bits to successive outputs where each bit
is stored. When all the bits have been stored, data can be read out in parallel.
Ans. Example: Parity may also be calculated in software using a shift register
to count the number of ‘1’ bits in each byte. When the calculated parity from the
received character does not match the value of the received parity bit, then a parity
error is said to have occurred, and the character is normally discarded. This parity
check detects any number of odd errors but passes any number of even errors
without detecting an error.
Race Conditions
Race condition - Two or more variables are required to change at the same time.
Critical race - Depending on the outcome of the race the circuit may end up in one
of two or more possible states. The SR latch above demonstrates a critical race
condition.
The two possible final states are Q=1, Q’=O and Q0, Q’l.
Non critical race - regardless of the outcome of the race the circuit ends up in the
same state. For example:
In the appendix you will find the specifications for the MC14495 BCD to Seven
Segment Decoder/Driver. This device has seven outputs and four inputs. The
outputs are normally in the “0” state but rise to the “1” state for the proper
segments of a seven-segment display corresponding to the binary coded decimal
input:
There are a variety of devices available for seven segment display, utilizing gas
discharge, light emitting diode arrays and various other gadgets. For display in the
lab sessions, we will use a seven segment display using LEDs.
Any source of current for LEDs must have current limiting resistors. With many
seven segment display drivers these resistors are connected between the driver
and the LEDs. The MC14495 is unusual in that it has the current limiting resistors
included in the driver chip.
Q. 1. List two applications of De-Multiplexer.
2. The same circuit can also be used as a decoder, by using the address inputs as a
binary number and producing an output signal on the single output that matches
the binary address input. In this application, the data input line functions as a
circuit enabler — if the circuit is disabled, no output will show activity regardless of
the binary input number.
Q.5. What is the basic difference between a counter and a shift register?
Ans. The term register can be used in a variety of specific applications, but in all
cases it refers to a group of flip-flops operating as a coherent unit to hold data. This
is different from a counter, which is a group of flip-flops operating to generate new
data by tabulating it.
(A) 4 (B)3
(C) 5 (D) 1.
Ans. (A) 4
(A) 10 (B) 3
(C)4 (D)2.
Ans. (C) 4
A decade counter is one that counts in decimal digits, rather than binary. A decimal
counter may have each digit binary encoded (that is, it may count in binary-
coded decimal, as the 7490 integrated circuit did) or other binary encodings (such
as the bi quinary encoding of the 7490 integrated circuit). Alternatively, it may
have a “fully decoded” or one-hot output code in which each output goes high in
turn; the 4017 was such a circuit. The latter type of circuit finds applications in
multiplexers and demultiplexers, or wherever a scanning type of behavior is useful.
Similar counters with different numbers of outputs are also common. The decade
counter is also known as a mod-l0 counter.
Q. 9. Implement the following function using a 3 line to 5 line decoder
S(A, B, C) = Sm(1, 2, 4 7)
C(A, B, C) = Sm (3, 5, 6, 7)
Ans. You have 5 input lines and you need output lines. Now let lines are
d0 lsb
d1
d2
d3
d4 msb
Now connect output of 2-to-4 line decoder to enable pins of 3-to-8 line decoders
such that the first output makes first 3-to-8 line decoders enable. That’s it 32
output of 3-to-8 line decoders are your required output.
OCTAL TO BINARY ENCODER -
Octal-to-Binary take 8 inputs and provides 3 outputs, thus do the opposite of what
the 3-to-8 decoder does. At any one time, only one input line has a value of 1. The
figure below shows the truth table of an Octal-to-binary encoder.
For an 8-to-3 binary encoder with inputs 10-17 the logic expressions of the
outputs Y0-Y7 are:
Based on the above equations, we can draw the circuit as shown below:
Ans. The memory elements in a sequential circuit are called flip-flops. A flip-flop
circuit has two outputs, one for the normal value and one for the complement value
of the stored bit. Binary information can enter a flip-flop in a variety of ways and
gives rise to different types of flip-flops.
Master-slave flip-flop is constructed from two separate flip-flops. One circuit
serves as a master and the other as a slave. The logic diagram of an SR flip-flop is
shown in Figure. The master flip-flop is enabled on the positive edge of the clock
pulse CP and the slave flip-flop is disabled by the inverter. The information at the
external R and S inputs is transmitted to the master flip-flop. When the pulse
returns to 0, the master flip-flop is disabled and the slave flip-flop is enabled. The
slave flip-flop then goes to the same state as the master flip-flop.
The timing relationship is shown in Figure below and is assumed that the flip-flop is
in the clear state prior to the occurrence of the clock pulse. The output state of the
master-slave flip-flop occurs on the negative transition of the clock pulse. Some
master- slave flip-flops change output state on the positive transition of the clock
pulse by having an additional inverter between the CP terminal and the input of the
master.
Q. 21. Draw the circuit diagram of a mod-5 counter and convert it into
decade counter.
Ans. Decade counters and the general Modulo-n counter
The decade counter resets to zero by every 10th pulse. The output
known as binary coded decimal (BCD) is the same as a 4-bit binary scale up to
decimal number 9. Beyond 9, the counter repeats, starting again from 0. The reset
at 10 is so fast that you do not see it with a LED. The more general case is a
Module-n counter, which resets to zero for every n-th pulse. A decade counter is
the same as a Module-l0 counter.