Hardware Connection:
program:
#include #include #define uchar unsigned char #define uint unsigned int uchar code Table_OF_Digits[]= { 0x00,0x3e,0x41,0x41,0x41,0x3e,0x00,0x00, 0x00,0x00,0x00,0x21,0x7f,0x01,0x00,0x00, 0x00,0x27,0x45,0x45,0x45,0x39,0x00,0x00, 0x00,0x22,0x49,0x49,0x49,0x36,0x00,0x00, 0x00,0x0c,0x14,0x24,0x7f,0x04,0x00,0x00, 0x00,0x72,0x51,0x51,0x51,0x4e,0x00,0x00, 0x00,0x3e,0x49,0x49,0x49,0x26,0x00,0x00, 0x00,0x40,0x40,0x40,0x4f,0x70,0x00,0x00, 0x00,0x36,0x49,0x49,0x49,0x36,0x00,0x00, 0x00,0x32,0x49,0x49,0x49,0x3e,0x00,0x00, }; uchar i=0,t=0,Num_Index = 0; void main() { P3 = 0x80; Num_Index = 0; TMOD = 0x00; TH0 = (8192-2000)/32; TL0 = (8192-2000)%32; TR0 = 1; IE = 0x82; while(1); } void LED_Screen_Display() interrupt 1 { TH0 = (8192-2000)/32; TL0 = (8192-2000)%32; P3 = _crol_(P3,1); P0 = ~Table_OF_Digits[Num_Index * 8 +i]; if(++i == 8) i = 0; if(++t == 250) { t = 0x00; if(++Num_Index == 10) Num_Index = 0; } }
Previous article:Single chip 8x8LED dot matrix screen display pattern
Next article:Design a doorbell using a single chip timer
- Popular Resources
- Popular amplifiers
- 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
- Introduction to SPI NAND flash
- Talk about Jtag, Jlink and Ulink
- What do you think of the official open source of Huawei's Ark Compiler?
- What knowledge is needed to control a microcontroller through a network?
- Nortel IP Voice Convergence Network Builds China's Electric Power Information Highway
- A method for increasing amplifier gain
- Current Status and Future Development of Satellite Mobile Communications
- Verilog-A analog circuit behavior model and simulation
- Ka-band communication satellite and Ka-band transponder technology
- Motor drive circuit design 1