The circuit only drives one digital tube, which is a common cathode tube with the common end connected to ground. The segment tube is directly connected to the P2 port of the microcontroller. The microcontroller used is AT89C52. The circuit diagram is as follows:
Through yesterday's explanation of the digital tube, we know that if we want to light up a common cathode digital tube, we only need to connect the common terminal to low level and the segment tube to high level, as shown in the figure below.
So look at the program:
Line 4: field table of common cathode digital tube;
Line 17: for loop, loops 10 times to control the display content of the digital tube;
Line 19: Send the content to be displayed to the digital tube;
The content this time is very simple, I hope it can be a reference for beginners.
Previous article:Detailed description of the usage skills of AT89S51 microcontroller timing counter
Next article:Design of automatic curtain control system based on STC89C52 microcontroller
Recommended ReadingLatest update time:2024-11-24 18:04
Recommended posts
- Selection of digital input chips such as liquid level switches
- Dearexperts,Iwouldliketoask,fordigitalquantityinputintothesingle-chipmicrocomputer,arethereanychipsavailable,suchasliquidlevelswitches,24V,thereare5,Iwanttoconnecttothesingle-chipmicrocomputer,itwouldbebestif
- zhaozhibin Test/Measurement
- STM32L4 series USB driver
- Higuys,isthereastandardUSBdriverfortheSTM32L4x6series?SuitableforWIN10environment? https://www.stmcu.com.cn/Product/pro_detail/STM32L4x6/design_resource STM32L4x6designresources,thereareUSBrelatedones,youcanfindthemyou
- yuhplc ST - Low Power RF
- Will x86 architecture chips dominate the smart cockpit again?
- YouandIbothknowthattheworldisdominatedbytwomajorinstructionsetarchitectures:x86andArm.TheformerdominatesthePCfield,andthelatterdominatesthemobilephoneandportablefield. Inthefieldofsmartcockpitsin
- eric_wang Automotive Electronics
- [Fudan Micro FM33LG0 Series Development Board Review] Development Board Development Environment
- Developmentboarddevelopmentenvironment 1.Choiceofdevelopmenttools Inmanydevelopmentenvironments,KeilandIARarethemostcompatible,butasmanymanufacturerssetuptheirownshops,thesetoolsarenotupdatedsoquickly.T
- 北方 Domestic Chip Exchange
- Apply for free evaluation! ——ESP32-S2-Kaluga-1 new multimedia development board, flexible disassembly and assembly to meet various needs
- ESP32-S2-Kaluga-1 introduce: TheESP32-S2-Kaluga-1kitisanewmultimediadevelopmentboardkitlaunchedbyEspressif.ItincludesLCDscreendisplay,Touchpanelcontrol,Cameroimageacquisition,Audioaudioplaybackandotherfunctio
- okhxyyo Domestic Chip Exchange
- [MPS Mall Big Offer Experience Season] Unboxing
- EVM54304-MN-01A 1.Actualunboxingphotos 2.SchematicDesign 3.Productfunctiondetails Details TheEVM54304-MN-01AisanevaluationboardfordemonstratingtheperformanceoftheMPM54304product,whichisaquad-output
- 小火苗 Switching Power Supply Study Group
- Popular Resources
- Popular amplifiers
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Principles and Applications of Single Chip Microcomputers 3rd Edition (Zhang Yigang)
- Principles and Applications of Single Chip Microcomputers and C51 Programming (3rd Edition) (Xie Weicheng, Yang Jiaguo)
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- Single chip microcomputer and PC telephone remote communication system
- The silk screen is AA6B SOT23-6 package with 2.2UH inductor 3.7~4.2V boost to 5V
- How fast can electric vehicles be “fast charged”?
- 5G millimeter wave RF algorithm technology
- Share NFC universal card reader circuit diagram
- SAM-L10-L11 series Questions and Answers
- I have some questions about temperature control. I am about to cry.
- Three major investment groups bid for Philips Semiconductors
- LC filter design issues in DCDC step-down circuits
- EEWORLD University Hall----RMB settlement, VAT invoice issuance and various payment methods