-
时钟闪烁移动
#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
-
本课件是《自动控制理论基础》这门课程本人多年教学经验的积累,有很高的参考实用价值,属于自动控制理论的精品教学课件。...
本课件是《自动控制理论基础》这门课程本人多年教学经验的积累,有很高的参考实用价值,属于自动控制理论的精品教学课件。-the courseware is "based automatic control theory" This course my years of teaching experience accumulation, a high reference value, automatic control theory is the quality courseware.
- 2022-01-25 20:12:34下载
- 积分:1
-
我收藏的一些经典汇编程序设计教程,包括IBM
我收藏的一些经典汇编程序设计教程,包括IBM-pc汇编程序设计第五版完整版。-My collection of some of the classic compilation of programming tutorials, including the IBM-pc assembly programming the fifth edition of the full version.
- 2023-04-15 16:50:05下载
- 积分:1
-
北邮数字信号处理DSP的习题答案,非常经典.
北邮数字信号处理DSP的习题答案,非常经典.-BUPT digital signal processing DSP answer the questions, very classic.
- 2022-07-03 17:09:26下载
- 积分:1
-
C_C++常见bug的书
C_C++常见bug的书-3,对于调试中碰到的问题很有帮助-C_C common bug book-3 for debugging problems they encountered in helpful
- 2022-05-19 00:03:40下载
- 积分:1
-
电子书 ASP.Net/XML深入编程技术(中文)
电子书 ASP.Net/XML深入编程技术(中文)-EBooks ASP.Net/XML-depth programming techniques (English)
- 2022-03-01 21:45:38下载
- 积分:1
-
pure C Forum electronic magazine 2004.10. SP1 (No. 1 overall) SP1
纯C论坛电子杂志2004.10。SP1(总排名第一)SP1
- 2022-08-02 13:23:19下载
- 积分:1
-
- 2022-01-27 22:49:29下载
- 积分:1
-
Flex + LCDS + Java 入门教程,利用flex的lcds来协调java代码和flex代码的通信问题。...
Flex + LCDS + Java 入门教程,利用flex的lcds来协调java代码和flex代码的通信问题。-Flex+ LCDS+ Java Getting Started tutorial for lcds to coordinate the use of flex and flex code java code communication problems.
- 2022-02-01 07:41:42下载
- 积分:1
-
ANSI C编译器
ANSI C COMPILER
LIBRARIES
- 2022-08-23 09:34:00下载
- 积分:1