A new type of digital tube control module
By using interrupt port chips and I2C communication protocols in the digital display tube circuit, the problem of excessive resource consumption of microcontroller GPIO ports is solved, resource saving and circuit design simplification are achieved, and system stability is improved.
Patent Information
- Application Number
- CN202420134013.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-19
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2034-01-19
AI Technical Summary
The existing digital display tube circuit is directly connected to the microcontroller through the pins of the digital tube, resulting in serious consumption of peripheral resources of the microcontroller GPIO port, which can easily lead to overload and damage to the microcontroller circuit.
By connecting the interrupt port chip (such as CAT9555) between the microcontroller and the digital tube, expanding the peripheral interface, and using the I2C communication protocol to communicate with the microcontroller host, controlling the display of the digital tube.
It effectively saves the peripheral resources of the microcontroller, reduces the complexity of the circuit design, and can be embedded in various circuits that need to be displayed simply and quickly, significantly improving the stability of the system.
Smart Images

Figure CN222705161U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of digital tube control modules, in particular to a novel digital tube control module. Background Art
[0002] The existing digital display tube circuit is directly connected to the microcontroller through the pins of the digital tube, such as Figure 1 As shown. Controlling a 4-bit digital tube requires consuming 12 GPIO port peripheral resources of the microcontroller (8 digital display control signals and 4 bit display control signals). The digital tube display circuit seriously consumes the GPIO port peripheral resources of the microcontroller. In addition, because the pins of the digital tube are directly connected to the microcontroller, when the digital tube is working, it needs to consume part of the working circuit of the microcontroller, which can easily cause the microcontroller circuit to overload, thereby damaging the microcontroller. Utility Model Content
[0003] The utility model aims to provide a novel control module of a digital tube.
[0004] The above technical objectives of the utility model are achieved through the following technical solutions:
[0005] A novel digital tube control module comprises a single-chip microcomputer and a digital tube, and an interrupt port chip is connected between the single-chip microcomputer and the digital tube to expand the peripheral interface; the digital tube control circuit communicates with the single-chip microcomputer host by adopting the I2C communication protocol.
[0006] Furthermore, the model of the interrupt port chip is CAT9555.
[0007] Furthermore, the eight digital display pins (A~G, DP) of the digital tube are connected to the I / O0.0~I / O0.7 pins of CAT9555 in sequence, and the four bit display pins (DIG1~DIG4) are connected to the I / O1.0~I / O1.3 pins of CAT9555 in sequence; the A0, A1, and A2 pins of CAT9555 are the address pins of the I2C communication slave and are configured as a low level; the SDA1 and SCKL1 pins are connected to the two GPIO ports of the microcontroller.
[0008] In summary, the utility model has the following beneficial effects: the utility model can be applied to electronic circuits that require the use of multiple digital tube displays; it can effectively save the peripheral resources of the microcontroller and reduce the complexity of circuit design; the utility model can be simply and quickly embedded in various circuits that require display. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 It is the circuit diagram of the existing four-dimensional digital display tube;
[0010] Figure 2It is a circuit diagram of the display module of the utility model. DETAILED DESCRIPTION
[0011] The utility model is further described in detail below in conjunction with the accompanying drawings, and the technical solutions in the embodiments of the utility model are clearly and completely described. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0012] like Figure 2 As shown, a new type of digital tube control module includes a single-chip microcomputer and a digital tube, and an interrupt port chip is connected between the single-chip microcomputer and the digital tube to expand the peripheral interface. Specifically, the interrupt port chip uses a digital tube plus a 16-bit I2C controlled interrupt port chip (CAT9555, hereinafter referred to as CAT9555) to form a digital tube control circuit. First, the power supply of CAT9555 is 5V, which ensures that the output capacity of the CAT9555 chip can drive the eight-bit digital tube to display normally. Then, the 8 digital display pins (A~G, DP) of the digital tube are connected to I / O0.0~I / O0.7 of CAT9555 in sequence, and the 8 bit display pins (DIG1~DIG4) are connected to I / O1.0~I / O1.3 of CAT9555 in sequence. The high and low levels of each digital display pin of the digital tube can be controlled by configuring the P0 register in CAT9555. And the level of each digital display pin of the digital tube can be obtained by reading the value in the P0 register. Similarly, the P1 register can also be used to control and obtain the level of the bit display. This new digital tube control circuit uses a high-speed I2C communication protocol to communicate with the single-chip host. The highest communication rate is 400KHz. It can achieve high-speed control of the display of the digital tube, and the display effect is no different from the display effect of the digital tube pin directly connected to the single-chip microcomputer. The A0, A1, and A2 pins of CAT9555 are the address pins of the I2C communication slave, which are configured as a low level, indicating that the slave address is 0x00. R1 and R2 are pull-up resistors in the I2C communication line, which ensure the stability and reliability of the I2C bus signal and ensure the speed and accuracy of data transmission. This new digital tube control circuit only needs to connect the two pins SDA1 and SCKL1 to the GPIO peripherals of the single-chip microcomputer to control the normal display of the 4-bit digital tube through the I2C protocol.
[0013] Test requirements and results:
[0014] (1) During the specific communication stress test, a total of 100,000 stress tests were performed, and the CNC control circuit was able to correctly display the numbers that the microcontroller needed to display, and no garbled communication numbers appeared.
[0015] (2) The digital tube flashes continuously for 24 hours without losing the display. After re-entering the command, the display can be displayed normally.
[0016] (3) Compared with the traditional method of directly connecting the pins of the digital tube to the microcontroller, the display time of the new digital tube control circuit is about 1ms, which has no significant difference compared with the traditional method and is lower than the human eye retention time (50ms).
[0017] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed, but such modifications are protected by patent law as long as they are within the scope of the claims of the present invention.
Claims
1. A new type of digital tube control module, including a single chip microcomputer and a digital tube, characterized in that: An interrupt port chip is connected between the single-chip microcomputer and the digital tube to expand the peripheral interface; the digital tube control circuit adopts the I2C communication protocol to communicate with the single-chip microcomputer host; the model of the interrupt port chip is CAT9555; the 8 digital display pins A~G and DP of the digital tube are connected to the I / O0.0~I / O0.7 pins of CAT9555 in sequence, and the 4 bit display pins DIG1~DIG4 are connected to the I / O1.0~I / O1.3 pins of CAT9555 in sequence; the A0, A1, and A2 pins of CAT9555 are the address pins of the I2C communication slave and are configured as a low level; the two pins SDA1 and SCKL1 are connected to the two GPIO ports of the single-chip microcomputer.