Phone

    00852-6915 1330
  • Contents

I. Description

Nowadays, LCD,  VFD,  LED  and other display devices have brought infinite charm to intelligent household appliances. At present, major chip manufacturers have introduced various dedicated display driver chips,  they have become the mainstream of display drive technology. However, the display requirements of white goods are relatively low. Based on cost considerations, this article introduces a 74HC164-based display drive circuit design scheme, which not only achieves the same display effect, reduces costs, but also improves system reliability.

74HC16474HC164

Catalog

I. Description

II.74HC164 Advantage Analysis

III.74HC164 Chip Introduction

IV.74HC164 Display Drive Circuit

V. 74HC164 Display Circuit Driver

VI. Procedure Description

FAQ

Ordering & Quantity

 

II.74HC164 Advantage Analysis

 

Under normal circumstances, the display circuit of smart home appliances is controlled by a single-chip microcomputer, such as the displayed content and the display mode. The single-chip microcomputer plays an important role in the control circuit of smart home appliances. Its selection not only determines the realization of the control circuit but also has a great influence on the cost of the controller.

 

We use the serial input and parallel output functions of the 74HC164 chip to carry out serial communication with the microcontroller, and the parallel output port directly drives the display device. This solution can expand the I/O port of the single-chip microcomputer and reduce the resource requirements of the single-chip microcomputer. Moreover, the chip installation method is very flexible, which can reduce the number of connecting wires of the display panel, improve the reliability of the system, and has a greater cost advantage. , It is widely used in buttons and display drive circuits.  

 

III.74HC164 Chip Introduction

 

74HC164 is a high-speed silicon gate CMOS device, which is pin compatible with low-power Schottky TTL (LSTTL) devices. 74HC164 is an 8-bit edge-triggered shift register, serial input data, and then parallel output. Data is serially input through one of the two input terminals (DSA or DSB); either input terminal can be used as a high-level enable terminal to control the data input of the other input terminal. Either connect the two input terminals together, or connect the unused input terminals to a high level, so they must not be left floating. The pin distribution of 74HC164 is shown as in Fig. 1. Compatible with TTL level, the highest operating clock frequency is 20MHz, the fan-out factor is 10, the power dissipation is 500mW, and the output current Io (each end) is 25mA, which can directly drive LED display devices.

Figure 1 74hc164 pinout

Figure 1 74hc164 pinout

According to the logic function of the chip, the waveform diagram of the input and output signals can be obtained, as shown in Figure 2. The output signals Q0~Q7 are delayed by one clock cycle respectively, and can form 8 scan signals.

Figure 2 74HC164 signal waveform

Figure 2 74HC164 signal waveform

 

IV.74HC164 Display Drive Circuit

 

The circuit shown in Figure 3 is a hybrid display circuit composed of touch switches, nixie tubes and LEDs. Among them, 16 buttons, 2 nixie tubes, and 8 LEDs are a typical 538 scanning circuit. The 8 pins of the 74HC164 chip Q0~Q7 output column scan signals, and the microcontroller directly provides 5 rows of scan signals. The single-chip microcomputer provides clock input and data input signals for 74HC164 to control the display content. The circuit requires 8 pins of the single-chip microcomputer in total, which saves 6 pin resources compared with the conventional scanning circuit and has certain cost advantages.

 

Diode D2-D23 plays an isolation role to prevent the mutual interference of 74HC164 chip pin potential. For example: when a channel is selected, the 74HC164 output pins Q0~Q6 are high level, and Q7 is low level. At this time, if SW1 and SW2 are pressed at the same time, pin Q7 and pin Q6 are in a short-circuit state, which will damage the chip.

 

Clock input pins and data input pins need to be connected to ceramic capacitors to resist high-frequency interference, but the capacitance should not be too large to avoid excessive distortion of the input waveform and make the circuit unable to work normally. It is recommended to use 100-1000pF.

Figure 3 shows a practical example of the circuit

Figure 3 shows a practical example of the circuit

 

V. 74HC164 Display Circuit Driver

 

Take the 78K0S series 8-bit MCU UPD78F9116 from NEC Corporation of Japan as an example, the driver needs to detect 16, the number of keys to be detected, the display drive 2 8-segment digital tubes, and the number of LEDs 16 (8 expanded on the basis of the reference circuit). The single-chip microcomputer directly provides 6 line scan signals, and at the same time provides clock input and data input signals for 74HC164 to control the display content. The IO port is defined as follows:

Each subroutine scans 2 groups of 31 keys, and scans all keys within 8 times. Display scan channel number 0~3, display time of each channel (1 digital tube or 1 group of LED) occupies 1/4, and the refresh cycle depends on the frequency of subroutine execution. The program must be executed cyclically. It can be called as a regular subroutine or directly embedded in the main program file. It is more appropriate to execute it every 1~3mS. The confirmation time for a button to be lifted or pressed (24mS~32mS)--(72ms~96mS), the response speed can meet people's operating habits, the display refresh frequency is set to 250Hz--83Hz, if it is lower than 40~50Hz Flashing. The program flow chart is shown in Figure 4.

Figure 4 Program flow chart

Figure 4 Program flow chart

 

VI. Procedure Description

 

(1) External name and global variable declaration


FAQ

  • How does the 74HC164 transmit data in the microcontroller circuit?

  1. One pin of the single-chip microcomputer is like a faucet, and the data is sent one by one, that is, like the water from the faucet, dripping drop by drop. The 74H164 is like a small bowl receiving water. It is just full after receiving 8 drops of water. At this time, it is sent to the digital tube.
  2. The single-chip microcomputer must send an 8-bit (or more) data, if it is sent at the same time, it is a parallel transmission, if it is a bit by bit, it is a serial transmission. The data of the single-chip microcomputer is sent to the 74HC164 bit by bit, which is serial, and the 74HC164 sends the data to the digital tube at once, which is parallel. So 74HC164 plays a role from serial transmissionto paralleltransmission.
  • What is the difference between 74HC164D and 74HC164N MCU?

The D in 74HC164D represents a chip package. The N in 74HC164N means dual in-line plastic packaging.

  • What is the difference between 74HC164 and 74LS164, can they be used together?

74ls164 is a TTL circuit, the power supply voltage is 5V, the high-level output current Ioh is -0.4MA, and the low-level output current is 8MA.

74HC164 is a CMOS circuit, the power supply voltage is 2V ~ 6V, the output drive current can reach plus or minus 20MA. If the power supply voltage you use is 5V and the output drive current is suitable for 74ls164, they can be used together.

  • What devices can 74hc164 be replaced with?

74HC164 is a CMOS device with a power supply voltage of 2V-6V. It can be directly replaced by 74HCT164, 40H164. If the power supply voltage is 5V and the output drive current is small, it can also be replaced by 74164, 74LS164, 74F164, 74ALS164.

  • Which of 74LS164 and 74HC164 has higher driving capability?

74LS164 is a TTL device with a high-level driving capability of about 0.4mA and a low-level driving capability of about 8mA. 74HC164 is a CMOS device, with high-level and low-level drive capability up to 20mA. The above data comes from DATASHEET. But generally speaking, the high-level output capability of many CMOS devices is weak, smaller than TTL, and the low-level drive capability is stronger.

  • Can 74hc164n be used to drive the digital tube?

Of course, you can use the 164 chip to drive the nixie tube, which is mostly used in situations where the IO port resources are tight and the display data refresh of the nixie tube is slow. When designing the circuit, multiple 164 chips are used in cascade, no matter how many digital tubes are driven, only 2 IO ports of the single-chip microcomputer are occupied. It can be said that it is the most IO port-saving driving method, and it is still driven statically, without strobe and brightness Low phenomenon.

The disadvantage is that multiple 164s are used in cascade connection, which will cause the single-chip microcomputer to send a large amount of display data (1 byte per nixie tube) at one time when refreshing the display data. During this process, the nixie tube will be all on, although the data is sent The process duration is very short, but it still affects the display effect. It is recommended to turn off the digital tube when refreshing the data.

Kynix

Kynix was founded in 2008, specializing in the electronic components distribution business. We adhere to honesty and ethics as our business philosophy and have gradually established an excellent reputation and credibility in our international business. With the accurate quotation, excellent credit, reasonable price, reliable quality, fast delivery, and authentic service, we have won the praise of the majority of customers.

Join our mailing list!

Be the first to know about new products, special offers, and more.

Leave a Reply

We'd love to hear from you! Feel free to share your thoughts and comments below. Rest assured, your email address will remain private.

Name *
Email *
Captcha *
Rating:

Kynix

  • How to purchase

  • Order
  • Search & Inquiry
  • Shipping & Tracking
  • Payment Methods
  • Contact Us

  • Tel: 00852-6915 1330
  • Email: info@kynix.com
  • Follow Us

authentication

Kynix

© 2008-2026 kynix.com all rights reserve.