unsigned char
unsigned char code digittab[][8]={
{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},//" ",0*/
{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},//" ",0*/
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF},//"_",0*/
{0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF},//"_",0*/
{0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF},//"_",0*/
{0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF},//"_",0*/
{0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF},//"_",0*/
{0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},//"_",0*/
{0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},//"_",0*/
{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},//"_",0*/
{0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01},//"|",0*/
{0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02},//"|",0*/
{0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04},//"|",0*/
{0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08},//"|",0*/
{0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10},//"|",0*/
{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20},//"|",0*/
{0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40},//"|",0*/
{0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80},//"|",0*/
{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},//" ",0*/
//Graph 1
{0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00},//"unnamed file",0*/
{0x00,0x00,0x3C,0x24,0x24,0x3C,0x00,0x00},//"unnamed file",0*/
{0x00,0x7E,0x42,0x42,0x42,0x42,0x7E,0x00},//"Unnamed file",0*/
{0xFF,0x81,0x81,0x81,0x81,0x81,0x81,0xFF},//"unnamed file",0*/
//Graph 2
{0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00},
{0x00,0x00,0x24,0x18,0x18,0x24,0x00,0x00},
{0x00,0x42,0x24,0x18,0x18,0x24,0x42,0x00},
{0x81,0x42,0x24,0x18,0x18,0x24,0x42,0x81},
//Graph 3
{0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00},
{0x00,0x00,0x24,0x18,0x18,0x24,0x00,0x00},
{0x00,0x10,0x24,0x1A,0x58,0x24,0x08,0x00},
{0x08,0x10,0x24,0x9A,0x59,0x24,0x08,0x10},
{0x0C,0x10,0xA4,0x9A,0x59,0x25,0x08,0x30},
{0x0E,0x90,0xA4,0x9A,0x59,0x25,0x09,0x70},
{0x8F,0x90,0xA4,0x9A,0x59,0x25,0x09,0xF1},
{0x0C,0x12,0x12,0x12,0x12,0x12,0x0C,0x00},
{0x04,0x06,0x04,0x04,0x04,0x04,0x0E,0x00},
{0x0C,0x12,0x10,0x08,0x04,0x02,0x1E,0x00},
{0x0C,0x12,0x10,0x0C,0x10,0x12,0x0C,0x00},
{0x08,0x0C,0x0C,0x0A,0x0A,0x1E,0x08,0x00},
{0x1E,0x02,0x02,0x0E,0x10,0x10,0x0E,0x00},
{0x0C,0x12,0x02,0x0E,0x12,0x12,0x0C,0x00},
{0x1E,0x12,0x10,0x08,0x04,0x04,0x04,0x00},
{0x0C,0x12,0x12,0x0C,0x12,0x12,0x0C,0x00},
{0x0C,0x12,0x12,0x1C,0x10,0x12,0x0C,0x00},
{0x0C,0x12,0x12,0x12,0x1E,0x12,0x12,0x00},
{0x0E,0x12,0x12,0x0E,0x12,0x12,0x0E,0x00},
{0x0C,0x12,0x02,0x02,0x02,0x12,0x0C,0x00},
{0x0E,0x12,0x12,0x12,0x12,0x12,0x0E,0x00},
{0x1E,0x02,0x02,0x0E,0x02,0x02,0x1E,0x00},
{0x1E,0x02,0x02,0x0E,0x02,0x02,0x02,0x00},
{0x0C,0x12,0x02,0x1A,0x12,0x12,0x0C,0x00},
{0x12,0x12,0x12,0x1E,0x12,0x12,0x12,0x00},
{0x0E,0x04,0x04,0x04,0x04,0x04,0x0E,0x00},
[page]
{0x10,0x10,0x10,0x10,0x12,0x12,0x0C,0x00},
{0x12,0x12,0x0A,0x06,0x0A,0x12,0x12,0x00},
{0x02,0x02,0x02,0x02,0x02,0x02,0x1E,0x00},
{0x12,0x1E,0x1E,0x12,0x12,0x12,0x12,0x00},
{0x12,0x16,0x16,0x1A,0x1A,0x12,0x12,0x00},
{0x1E,0x12,0x12,0x12,0x12,0x12,0x1E,0x00},
{0x0E,0x12,0x12,0x0E,0x02,0x02,0x02,0x00},
{0x0C,0x12,0x12,0x12,0x16,0x1A,0x1C,0x00},
{0x0E,0x12,0x12,0x0E,0x06,0x0A,0x12,0x00},
{0x0C,0x12,0x02,0x0C,0x10,0x12,0x0C,0x00},
{0x1E,0x04,0x04,0x04,0x04,0x04,0x04,0x00},
{0x12,0x12,0x12,0x12,0x12,0x12,0x0C,0x00},
{0x12,0x12,0x12,0x12,0x0C,0x0C,0x0C,0x00},
{0x12,0x12,0x12,0x12,0x1E,0x1E,0x12,0x00},
{0x12,0x12,0x0C,0x0C,0x0C,0x12,0x12,0x00},
{0x11,0x11,0x0A,0x04,0x04,0x04,0x04,0x00},
{0x1E,0x10,0x08,0x0C,0x04,0x02,0x1E,0x00},
};
unsigned int timecount;
unsigned char cnta;
unsigned char cntb;
void main(void)
{
TMOD=0x01;
TH0=(65536-3000)/256;
TL0=(65536-3000)%6;
TR0=1;
ET0=1;
EA=1;
while(1)
{;
}
}
void t0(void) interrupt 1 using 0
{
TH0=(65536-2000)/256;
TL0=(65536-2000)%6;
P1=0XFF; //Eliminate the display ghosting problem
P0=~digittab[cntb][cnta];
P1=~(0x01< cnta++; if(cnta==8) { cnta=0; } timecount++; if(timecount==200) { timecount=0; cntb++; if(cntb==70) { cntb=0; } } }
Previous article:51 single chip counter counting digital tube display
Next article:51 MCU analog serial port (232)
- Popular Resources
- Popular amplifiers
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
- 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
- uasyncio monitor
- Complementary push-pull drive, totem pole drive
- Double gifts with one registration | Become a pioneer in experiencing FLUKE's new products
- [Evaluation and experience of Zhongke Yihaiwei EQ6HL45 development platform] +01. Unboxing (zmj)
- Discussion: The Future of RF
- What do you need to prepare to participate in TI's MSP430 online training hands-on session on June 2?
- If your city also implements "closed management", will it have a big impact on your life? How many masks do you still have?
- 【GD32L233C-START Review】4. Implementation of USB Mouse
- Hourglass: The filter that is indispensable to communication systems
- Digital tube dynamic scanning