-
时钟闪烁移动
#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
-
no files
no files
- 2022-06-18 06:29:30下载
- 积分:1
-
大名鼎鼎的thinking in c++的第二版本
中文版翻译的很差,这里是英文版...
大名鼎鼎的thinking in c++的第二版本
中文版翻译的很差,这里是英文版-Famous thinking in c++ The second version of the Chinese version of the translation of the very poor, here is the English version
- 2023-05-20 03:25:03下载
- 积分:1
-
基于DS1302芯片的数字时钟的c语言代码.
已经经过调试,运行正常...
基于DS1302芯片的数字时钟的c语言代码.
已经经过调试,运行正常-DS1302 chip based on the number of clock c language code. Have been debug, operating normally
- 2022-02-20 21:27:34下载
- 积分:1
-
Naranda Pali Course. Introduction to learning Pali language
Naranda Pali Course. Introduction to learning Pali language
- 2022-01-25 20:19:15下载
- 积分:1
-
mfc windows programming ninth chapter of the source code
mfc windows 程序设计第九章的源代码-mfc windows programming ninth chapter of the source code
- 2022-10-17 10:45:03下载
- 积分:1
-
mswdnm驱动开发相关的书籍,希望大家支持
MSWDNM驱动开发的相关书籍,希望大家支持-MSWDNM driven development related books, I hope you will support
- 2022-03-26 08:27:46下载
- 积分:1
-
这是我学C++是用的课件,如果感兴趣的话可以看看。对于初学者来说还是比较适合的。...
这是我学C++是用的课件,如果感兴趣的话可以看看。对于初学者来说还是比较适合的。-This is me C is the courseware, if interested can look at the case. For newcomer is quite suitable.
- 2022-04-11 01:43:08下载
- 积分:1
-
java编程思想,经典java入门教程!高手必备!
java编程思想,经典java入门教程!高手必备!-java programming ideas, classic java Tutorial! Master essential!
- 2022-04-07 23:16:08下载
- 积分:1
-
用VC制作带弹出式菜单的按钮
带有弹出式菜单的按钮可以使一个按钮具有多项选择功能,扩展了按钮的功能,相当于把多个按钮集成于一体,可以减少按钮数目。...
用VC制作带弹出式菜单的按钮
带有弹出式菜单的按钮可以使一个按钮具有多项选择功能,扩展了按钮的功能,相当于把多个按钮集成于一体,可以减少按钮数目。 -VC produced by the button with a pop-up menu button with a pop-up menu can make a button with a multiple-choice functions, extended functions of the button, which is equivalent to integration of multiple buttons in one can reduce the number of buttons.
- 2022-03-28 19:58:47下载
- 积分:1