-
时钟闪烁移动
#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
-
以前给公司员工做Domain培训的时候写的一份简单的教程,讲述Windows和linux环境下的Domain服务器的搭建和管理...
以前给公司员工做Domain培训的时候写的一份简单的教程,讲述Windows和linux环境下的Domain服务器的搭建和管理-Prior to the company training staff to do when Domain written a simple tutorial on Windows and linux environment the Domain server and management structures
- 2022-09-25 12:00:03下载
- 积分:1
-
这是一个编写完美代码的电子书 This is a code to prepare the perfect e...
这是一个编写完美代码的电子书 This is a code to prepare the perfect e-book-This is a code to prepare the perfect e-book
- 2022-11-07 07:35:03下载
- 积分:1
-
we look at we look at we look at we look at we look at we look at we look at
我们看着我们看着我们看着我们看着我们看着我们看着我们看着我们看着
- 2022-03-28 10:24:35下载
- 积分:1
-
程序在DOS程序绘制mandle分形
program to draw mandle fractals in dos turboc
- 2022-01-30 15:02:45下载
- 积分:1
-
Learning sql good Dongdong you. Everyone to share. Ha ha.
学习sql的好东东呀。大家分享一下。呵呵。-Learning sql good Dongdong you. Everyone to share. Ha ha.
- 2023-08-15 09:20:03下载
- 积分:1
-
正则表达式电子文档
正则表达式电子文档-Regular expressions are electronic documents
- 2022-03-22 19:46:40下载
- 积分:1
-
是关于g729这方面的中文电子书,值得大家学习
是关于g729这方面的中文电子书,值得大家学习-G729 in this area on the Chinese e-books, what is worth learning
- 2022-02-04 06:14:16下载
- 积分:1
-
相当简单 简洁的模拟银行系统
功能不多
实现方便
相当简单 简洁的模拟银行系统
功能不多
实现方便-quite simple concise functional simulation of the banking system not easy to achieve
- 2022-08-16 11:04:22下载
- 积分:1
-
谭浩强经典的cobol书籍,对于很难找到比较好资料的cobol学习者来说是很宝贵的。...
谭浩强经典的cobol书籍,对于很难找到比较好资料的cobol学习者来说是很宝贵的。-Hao strong COBOL classic books, for it is difficult to find better information COBOL learners is very valuable.
- 2023-06-10 13:25:05下载
- 积分:1