Commonly used LED displays include LED status displays (commonly known as light-emitting diodes), LED seven-segment displays (commonly known as digital tubes), and LED sixteen-segment displays. Light-emitting diodes can display two states and are used for system status display; digital tubes are used for digital display; and LED sixteen-segment displays are used for character display.
1. Introduction to digital tube
1) Digital tube structure
The digital tube is composed of 8 light-emitting diodes (hereinafter referred to as segments), which can be used to display numbers 0 to 9, characters A to F, H, L, P, R, U, Y, the symbol "-" and the decimal point "." through different combinations. The appearance structure of the digital tube is shown in the figure below. The digital tube is divided into two structures: common cathode and common anode.
[page]
2) Working principle of digital tube
The anodes (positive ends of diodes) of the 8 light-emitting diodes of the common anode digital tube are connected together. Usually, the common anode is connected to a high level (usually connected to the power supply), and the other pins are connected to the output end of the segment drive circuit. When the output end of a segment drive circuit is at a low level, the segment connected to this end is turned on and lights up. Various numbers or characters can be displayed according to different combinations of light-emitting segments. At this time, the segment drive circuit is required to absorb the rated segment conduction current, and the corresponding current limiting resistor needs to be determined according to the external power supply and the rated segment conduction current.
The cathodes (negative ends of diodes) of the eight light-emitting diodes of the common cathode digital tube are connected together. Usually, the common cathode is connected to a low level (generally grounded), and the other pins are connected to the output end of the segment drive circuit. When the output end of a segment drive circuit is at a high level, the segment connected to this end is turned on and lights up, and various numbers or characters can be displayed according to different combinations of light-emitting segments. At this time, the segment drive circuit is required to provide the rated segment conduction current, and the corresponding current limiting resistor needs to be determined according to the external power supply and the rated segment conduction current.
3) Digital tube font encoding
In order for the digital tube to display the corresponding numbers or characters, the segment data port must output the corresponding font code. Referring to Figure 7.10 (a), each bit of the font code is defined as follows: data line D0 corresponds to field a, D1 corresponds to field b, and so on. If a common anode digital tube is used, data 0 indicates that the corresponding field is bright, and data 1 indicates that the corresponding field is dark; if a common cathode digital tube is used, data 0 indicates that the corresponding field is dark, and data 1 indicates that the corresponding field is bright. To display "0", the font code of the common anode digital tube should be: 11000000B (ie C0H); the font code of the common cathode digital tube should be: 00111111B (ie 3FH). And so on.
2. Static display interface
Static display means that when a digital tube displays a certain character, the corresponding light-emitting diode is constantly turned on or off. Each digital tube in this display mode is independent of each other, and the common end is constantly grounded (common cathode) or connected to the positive power supply (common anode). The 8 fields of each digital tube are connected to an 8-bit I/O port address. As long as the I/O port has a segment code output, the corresponding character will be displayed and remain unchanged until the I/O port outputs a new segment code. With static display mode, a smaller current can achieve higher brightness, and it takes up less CPU time, is simple to program, and is easy to monitor and control. However, it occupies many port lines, has a complex hardware circuit, and is costly, so it is only suitable for occasions with fewer display bits.
3. Dynamic display interface
Dynamic display is to light up each digital tube one by one in turn. This method of lighting up the display bit by bit is called bit scanning. Usually, the segment selection lines of each digital tube are connected in parallel and controlled by an 8-bit I/O port; the bit selection line of each bit (common cathode or anode) is controlled by another I/O port line. When displaying in dynamic mode, each digital tube is selected in turn in time-sharing. To make it display stably, a scanning method must be adopted, that is, only one digital tube is selected at a certain moment, and the corresponding segment code is sent out, and another digital tube is selected at another moment, and the corresponding segment code is sent out. By following this regular cycle, each digital tube can display the characters to be displayed. Although these characters are displayed separately at different times, due to the visual persistence effect of the human eye, as long as the interval between each bit display is short enough, it can give people the feeling of simultaneous display.
The dynamic display method saves I/O ports and the hardware circuit is simpler than the static display method, but its brightness is not as good as the static display method. In addition, when the number of display bits is large, the CPU has to scan them sequentially, which takes up more CPU time.
Previous article:MCU Basics: Typical Keyboard and Display Interface Circuits
Next article:Simple MCU I/O port expansion example
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- Selling Zedboard Zynq7020 development board
- Calibration of medical devices
- Doesn't high input impedance mean high loss? Why does sampling require high input impedance? Low output impedance, such as running...
- [Mill Edge AI Computing Box FZ5 Review] Object Detection Demo
- What serial port is UART?
- Read the good book "Operational Amplifier Parameter Analysis and LTspice Application Simulation" 01 LTspice Installation and Example Run
- IIC Timing Diagram
- Lock-in Amplifier Design
- EEWORLD University ----RISC-V 5th workshop
- What is transparent transmission and point-to-multipoint transmission? What are their classic applications and advantages?