-
时钟闪烁移动
#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
-
它的所有关于Linux系统
its all about a linux syatem
- 2022-03-22 00:03:17下载
- 积分:1
-
Sun Xin vc++ program text of the Fifth courseware programming source code
孙鑫vc++课程第五课件《文本编程》源代码-Sun Xin vc++ program text of the Fifth courseware programming source code
- 2022-11-28 19:00:03下载
- 积分:1
-
statistic算法
statistic算法-statistic algorithm
- 2022-05-27 00:19:22下载
- 积分:1
-
Beginning JavaScript
with DOM Scripting
and Ajax
Beginning JavaScript
with DOM Scripting
and Ajax
- 2023-03-17 20:30:05下载
- 积分:1
-
Lucene in Action为使用最好的Java开源搜索引擎的用户提供所有细节、最好的实践、警告、技巧。本书假设读者熟悉基本的Java编程。Lucene本身...
Lucene in Action为使用最好的Java开源搜索引擎的用户提供所有细节、最好的实践、警告、技巧。本书假设读者熟悉基本的Java编程。Lucene本身是个Java档案(JAR)文件并能集成到简单的命令行程序和大型企业级应用程序中。-No part of this publication may be reproduced, stored in a retrieval system, or transmitted,
in any form or by means electronic, mechanical, photocopying, or otherwise, without
prior written permission of the publisher
- 2022-02-20 03:22:58下载
- 积分:1
-
PCI BIOS SPECIFICATION
PCI BIOS SPECIFICATION
- 2022-09-11 19:45:04下载
- 积分:1
-
实战XML第二版(中文) William Psrdi 原著。很好的入门书籍。
实战XML第二版(中文) William Psrdi 原著。很好的入门书籍。 -Actual XML second edition (English) William Psrdi original. Very good entry-books.
- 2022-08-19 14:10:12下载
- 积分:1
-
Modbus_Application_Protocol_V1_1a,Modbus_Messaging_Implementation_Guide_V1_0a,Mo...
Modbus_Application_Protocol_V1_1a,Modbus_Messaging_Implementation_Guide_V1_0a,Modbus_over_serial_line_V1
- 2023-07-15 08:30:04下载
- 积分:1
-
visual c++ 时尚编程百例 全部源代码
visual c++ 时尚编程百例 全部源代码-visual c fashion programming source code all 100 cases
- 2022-03-12 02:56:33下载
- 积分:1