Design of AT89C52 microcontroller to light up the digital tube

Publisher:NanoScribeLatest update time:2023-10-04 Source: elecfansKeywords:AT89C52 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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:

Design of AT89C52 microcontroller to light up the digital tube

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.

Design of AT89C52 microcontroller to light up the digital tube

So look at the program:

Design of AT89C52 microcontroller to light up the digital tube

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.


Keywords:AT89C52 Reference address:Design of AT89C52 microcontroller to light up the digital tube

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

Technical transformation and design of AT89C52 6PSD30-1 electronic control fuel injection pump test bench
    According to the production design needs, the 6PSD30-1 electronic control fuel injection pump test bench was technically transformed using the AT89C52 single-chip microcomputer , realizing multiple functions such as spindle speed preset, speed measurement and speed regulation, and completing the preset number of i
[Microcontroller]
Technical transformation and design of AT89C52 6PSD30-1 electronic control fuel injection pump test bench
Design of SD card reading and writing based on AT89C52 single chip microcomputer
For a long time, SD cards with Flash Memory as storage have been widely used in consumer electronic products due to their small size, low power consumption, erasable and non-volatile features. Especially in recent years, with the continuous decline in prices and the continuous increase in storage capacity, its appli
[Microcontroller]
Design of SD card reading and writing based on AT89C52 single chip microcomputer

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
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号