Search Terms

Technical Trivia by Dr. FB

Description of up-down counter using 74HC192 and 74HC4511 ICs


Dr. FB

This is an addition to the "Radio Geek" article “Making an Up/Down counter (1)” in last month’s issue of this web magazine. This article provides supplementary explanations about the ICs and 7-segment LED used in the up-down counter.

Relationship between BCD and decimal

Figure 1 shows a block diagram of a single-digit up-counter using the 74 series ICs. IC1 (74HC192) is an IC that is presetable synchronous 4-bit up-down counter and represents the number of clock signals in BCD. IC2 (74HC4511) is an IC that directly drives a 7-segment LED from the BCD (Binary Coded Decimal) signal.


Figure 1. Block diagram of the up counter using an IC 74HC192

As an example, suppose that three clock signals are input to the clock input of IC1. Three signals, "LLHH" representing “3” in BCD appear at the output pins Q0~Q3 of IC1 where L is 0 V (GND level) and H is 5 V, almost the same as the supply voltage. This is expressed in BCD or binary numbers as "0011."
Q0: L (0)
Q1: L (0)
Q2: H (1)
Q3: H (1)

The IC2 (74HC4511) is a 7-segment decoder that converts A to D BCD inputs into a 7-segment display. When all 4 bits are "L," the BCD notation is "0000," and the 7-segment LEDs light up with the number "0." When all 4 bits are "H," the BCD notation is "1111," which means "15."

Since it is 4 bits, it can represent numbers to the fourth power of 2, from 0 to 15. As it is a one-digit counter, it cannot express more than 10 in decimal, but it can be expressed in hexadecimal, as shown in the table below.


Figure 2. Representation of binary, BCD, and hexadecimal numbers relative to decimal numbers

IC2 receives the number of clock signals in BCD format, and outputs them with signals for the 7-segment LEDs a~g. The corresponding table is shown in Figure 3.


Figure 3. Relationship between BCD input and 7-segment output

Output signals on IC2 as Active-High

When output pins a~g of IC2 are set H, the output is applied to the 7-segment LEDs through a 330 Ω resistor, and each segment of the LEDs lights up. The 330 Ω resistor serves to limit the current flowing to the LEDs. When the output is H, the LEDs light up, and this output is called active "H" (Active High). When working a logic circuit with ICs, you may encounter active-low and active-high pins. This simply means how the pin is activated. This active H affects the type of 7-segment LED connected after this IC. Details are described below.

About BCD(Binary Coded Decimal)

BCD is a way of expressing numbers that have properties between those of binary and decimal numbers. For single-digit numbers in decimal (0~9), binary notation and BCD notation are the same, but for numbers with two or more digits, they differ. BCD is a method of expressing a decimal number by dividing it into individual digits, each of which is represented by a binary number.

Representing 15 in 4 binary bits gives “1111,” and 8 bits gives “00001111.” Similarly, 15 expressed in BCD is divided into 1 in the tens place and 5 in the ones place in binary, so the tens place is 1 and the ones place is 5. Each digit is expressed in 4 bits, as shown below. (See Figure 2) BCD notation for 15 is "0001 0101."
10 place (1):0001
1 place (5): 0101

Active-High and a cathode common LED

IC2 (74HC4511), which drives the 7-segment LED, is an active-H IC. In other words, the output when each pin a~g goes H is used to light the 7-segment LED, so you can see that the 7-segment LED must be a cathode common LED, as shown in Figure 4.


Figure 4. Two types of 7-segment LED as a cathode common LED and anode common LED


Figure 5. 7-segment LED (cathode common)

For the cathode common LED shown in Figures 4 and 5, the cathodes of all diodes are bundled together and connected to GND (Common), and the anodes of each diode are connected to IC2 a~g separately through current limiting resistors. If the power supply voltage is 5 V, a resistor value of about 330 Ω is appropriate.

FBDX

Technical Trivia by Dr. FB backnumber

Page Top Home