Now let's use the two digital tubes on the experiment board to do an experiment to display the numbers 00 to 99 in a loop. First, complete the necessary hardware part.
Digital tubes are divided into common cathode and common anode types. Both can be driven by microcontrollers, but the driving methods are different, and the corresponding display codes of 0 to 9 are exactly the opposite.
First, let's introduce the single-chip microcomputer driving method of two common anode digital tubes. The circuit is as follows:
Netizens can see that: P2.6 and P2.7 ports control the power supply of tens and ones of the digital tube respectively. When the corresponding port becomes a low level, the corresponding transistor will be turned on, and +5V will supply power to the corresponding bit of the digital tube through the IN4148 diode and the driving transistor. At this time, as long as the P0 port sends out the digital display code, the digital tube can display the number normally.
Because two different digits need to be displayed, a dynamic scanning method must be used. That is, the ones digit is displayed for 1 millisecond first, and then the tens digit is displayed for 1 millisecond, and this cycle continues. In this way, as long as the scanning time is less than 1/50 second, the two different digits will be stably displayed due to the visual residual effect of the human eye.
Next, we will introduce a single-chip microcomputer driving method for common cathode digital tubes. The circuit is as follows:
Netizens can see that +5V directly supplies power to the 8 segments of the digital tube through a 1K resistor, and the P2.6 and P2.7 ports control the power supply of the tens and ones of the digital tube respectively. When the corresponding port becomes low level, the corresponding bit can absorb current. The data output by the P0 port of the microcontroller is equivalent to short-circuiting the digital segments that the digital tube does not want to display to the ground, so that the digital tube will display the required numbers.
Netizens can see that the hardware of common cathode digital tubes is simpler, so in mass production, the hardware overhead is small, PCB area is saved, welding workload is reduced, and overall cost is reduced. Therefore, the use of common cathode digital tubes is more conducive to mass production. The test boards sold now all use common cathode digital tubes.
Previous article:Introduction to the working principle and key technologies of LED light sources
Next article:8X8LED dot matrix display principle and programming technology
Recommended ReadingLatest update time:2024-11-16 16:56
- Popular Resources
- Popular amplifiers
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Understanding C language pointers
- Intelligent POS system block diagram analysis and its seven key functional module solutions
- Animation demonstrates the working principle of capacitors and the principle of capacitive sensors
- AT commands in C language
- Circuit Playground Bluefruit NeoPixel Animated Remote Control
- 5224. FAQs on debugging C2000 CLA on CCS V1.0
- GD32F105RBT6 About FMC internal flash operation issues
- This week's review information is here~
- A pitfall of threadx queue, and also pay attention to a mistake in the tough guy tutorial
- About 48V input buck type DCDC chip