SCM C language programming: timing program within 100 000s

Single chip microcomputer STM32L151CCU6
1206RGB (single)
0201 package SLP0603 ESD electrostatic diode 5V one-way ESD

/* Name: Timing program within 100 000s

Description: Complete 0~99 999.9s on 6 digital tubes.

*/

#include

#include

#define uchar unsigned char

#define uint unsigned int

//segment code

Uchar code

DSY_CODE[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};

//6 numbers displayed on the digital tube

Uchar Digits_of_6DSY[]={0,0,0,0,0,0};

Uchar Count;

Sbit Dot=P0^7;

//delay

Void DelayMS(uint ms)

{

Uchar t;

While(ms--) for(t=0;t<120;t++);

}

/ / Main program

Void main()

{

Uchar i,j;

P0=0x00;

P3=0xff;

Count=0;

TMOD=0x01;

//Counter T0 mode 1

TH0=(65536-50000)/256; //50ms timing

TL0=(65536-50000)%256;

IE=0x82;

TR0=1; //Start T0

While(1)

{

j=0x7f;

/ / Display the contents of Digits_of_6DSY[5]~Digits_of_6DSY[0]

//The front high position, the lower low position, the i!=-1 in the loop can also be written as i!=0xff

For(i=5;i!=-1;i--)

{

j=_crol_(j,1);

7 Inches Tablet PC

The 7-inch tablet can be used as the golden size of a tablet computer. It is small and portable. It can be used at home and outdoors. You can browse the web, watch videos and play games. It is a household artifact. Although the size of the 7-inch tablet is inclined to the tablet, the function is more inclined to the mobile phone, so it can also be used as a substitute for the mobile phone. Compared with other sized tablets, the 7-inch tablet has obvious advantages in appearance and weight. Both the body size and the body weight have reached a very reasonable amount.

1.In appearance, the 7 inch tablet computer looks like a large-screen mobile phone, or more like a separate LCD screen.

2.In terms of hardware configuration, the 7 inch tablet computer has all the hardware devices of a traditional computer, and has its own unique operating system, compatible with a variety of applications, and has a complete set of computer functions.

3.The 7 inch tablet computer is a miniaturized computer. Compared with traditional desktop computers, tablet computers are mobile and flexible. Compared with Laptops, tablets are smaller and more portable

4.The 7 inch tablet is a digital notebook with digital ink function. In daily use, you can use the tablet computer like an ordinary notebook, take notes anytime and anywhere, and leave your own notes in electronic texts and documents.



7 Inches Tablet Pc,Quad Core Tablet 7 Inch,7 Inch Gaming Tablet,Supersonic Tablet 7 Inch

Jingjiang Gisen Technology Co.,Ltd , https://www.jsgisentec.com