-
时钟闪烁移动
#include"reg51.h"
sbit SET_K = P1^0; //设置
sbit PLUS_K = P1^1;//左移加1
sbit SHIFT_K = P1^2;//左移
sbit CHANGE_K = P1^3;//切换 年、月、日
bit SecFlag = 0;
bit FlashFlag = 0;
unsigned int Counter = 0;
unsigned char Led0,Led1,Led2,Led3,Led4;
unsigned char Shift;
code unsigned char LedSeg[10] = {0x3f,0x06,0x5B,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
void Time0() interrupt 1 // 0: EX0 1:Time0 2: EX1 3: Time1,4:serial 中断
{
static unsigned int IntCnt;
TH0 = 0xfc;
TL0 = 0x66;
if(++IntCnt > 1000)
{
IntCnt = 0;
SecFlag = 1;
}
switch(++Counter%5) //显示功能
{
case 0:
- 2022-03-02 21:20:39下载
- 积分:1
-
数字图像处理编程入门
数字图像处理编程入门-digital image processing program entry
- 2022-02-03 00:56:05下载
- 积分:1
-
Linux security tutorial linux
Linux安全教程linux-security-Linux security tutorial linux-security
- 2022-05-07 12:04:19下载
- 积分:1
-
RT12232F系列LCD技术资料,(带中文字库说明)
RT12232F系列LCD技术资料,(带中文字库说明)-RT12232F series of LCD technology information (with the Chinese character note)
- 2023-03-29 06:50:03下载
- 积分:1
-
Win32多线程编程,很好
Win32多线程编程,非常好用
- 2022-04-11 14:39:42下载
- 积分:1
-
Project 2002 中文教学手册
Project 2002 中文教学手册 -Project 2002 Chinese teaching manuals Project 2002 Chinese teaching manuals Project 2002 Chinese teaching manuals
- 2023-06-09 16:30:05下载
- 积分:1
-
《C专家编程》讲述了C语言的重要特性,并在此基础上介绍了C++的一些性质。...
《C专家编程》讲述了C语言的重要特性,并在此基础上介绍了C++的一些性质。- C programming experts about the C language s key features, and on this basis, introduced the C++ Some properties.
- 2022-04-24 16:16:12下载
- 积分:1
-
very simple JAVA compression type examples of what Notes are very sound teaching...
十分简洁的JAVA压缩类例子注释什么的都十分完善十分适用于傻瓜教学-very simple JAVA compression type examples of what Notes are very sound teaching applies to fool
- 2022-01-30 20:45:23下载
- 积分:1
-
nxp平台,手机mmi开发文档,对于新老程序员有很大益处
nxp平台,手机mmi开发文档,对于新老程序员有很大益处-nxp platforms, mobile phone MMI development documents, for new and old programmers have great benefits
- 2022-11-01 07:05:02下载
- 积分:1
-
字符串函数大全,帮你掌握c语言中的字符串
字符串函数大全,帮你掌握c语言中的字符串-String functions Daquan, to help you master the language of the string c! !
- 2022-05-26 07:02:57下载
- 积分:1