51单片机电子时钟程序
@翟冒4493:单片机电子钟程序 -
管贩18567285057…… 51单片机在数码管上显示的数字钟程序:#include "at89x51.h" unsigned char code dispcode[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x00}; unsigned char dispbitcode[]={0xfe,0xfd,0xfb,0xf7,0xef,0...
@翟冒4493:急求单片机51c编写的时钟显示程序 -
管贩18567285057…… #include<reg51.h> #define uchar unsigned char sbit set=P1^0; sbit setsecond=P1^1; sbit setminute=P1^2; uchar temp,second,minute; void task1() { if(set==1) {delay(10); if(set==1) { while(1) { if(setsecond==1) {second++; while(setsecond);} if(...
@翟冒4493:急求基于51单片机数字电子钟的汇编程序 -
管贩18567285057…… #include<reg51.h>#include<absacc.h>#define uchar unsigned char#define uint unsigned int/*七段共阴管显示定义*/ uchar code dispcode[ ]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F, 0xBF,0x86,0xCB,0xCF,0xEF,0xED,0xFD,0x87,0...
@翟冒4493:(51单片机)找一个电子时钟的(C语言)程序,用LED灯做秒表,四个数码管做时 - 分.急急急!
管贩18567285057…… 有XS128的 //延时控制 void delay(void) { int m,n; for(m=14000;m;m--) { for(n=1000;n;n--) {} } } void LED(void) { PORTB=0XFE; delay(); PORTB=0XFC; delay(); PORTB=0XF8; delay(); PORTB=0XF0; delay(); PORTB=0XE0; delay(); PORTB=0XC0; ...
@翟冒4493:51单片机制作简易电子钟,求电路图和程序,要求6位显示,24小时制 -
管贩18567285057…… #include "reg51.h" #define uint unsigned int #define uchar unsigned char unsigned char code led[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; uchar sec,min,hour; bit secup=00; uchar n=0; void delay(unsigned int ms) { unsigned int i=...
@翟冒4493:51单片机电子时钟程序 只要时间调整部分 急求 谢谢 -
管贩18567285057…… 以下是一段按键调整时间的程序.LED6: LCALL DISPLAY JNB P1.0,CLEAR //;判断键盘输入 JNB P1.1,SET_MINUTE JNB P1.2,SET_HOUR AJMP LED6 CLEAR: LCALL DISPLAY JNB P1.0,CLEAR MOV 30H,#12H //;时钟显示复位 A键 MOV...
@翟冒4493:怎么用51单片机做一个时钟 -
管贩18567285057…… 一片单片机+一个LED数码模块或LCD液晶模块+一段简单的程序=一个简单的时钟. 一片单片机+一片DS1302或其他的时基芯片+一个LED数码模块或LCD液晶模块+一段简单的程序=一个实用的时钟. 系统构成确定了以后,程序就有现成的了,可以移步到百度网页“百度一下”里搜索,资源多如牛毛.
@翟冒4493:用51单片机编程:电子时钟(设计电子时钟,用51单片机编程) -
管贩18567285057…… 如果有问题欢迎到我空间相关文章下留言 乐于回答~~ 程序如下: ; 定义管脚 S_SET BIT P1.0 ;数字钟秒控制位 M_SET BIT P1.1 ;分钟控制位 H_SET BIT P1.2 ;小时控制位 SECOND EQU 30H MINUTE EQU 31H HOUR EQU 32H ORG 00H ...
@翟冒4493:用51单片机实现时钟功能程序??? -
管贩18567285057…… #define uchar unsigned char //定义一下方便使用 #define uint unsigned int #define ulong unsigned long #include <reg52.h> //包括一个52标准内核的头文件 uchar code zixing[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90}; uchar code ...
@翟冒4493:用51单片机做一个电子时钟,请问源程序怎么写,用C++. -
管贩18567285057…… #include <windows.h>#include <time.h>#include <stdlib.h>#include <iostream>#include <string> using namespace std; class SystemTime { private: int year,month,day,hour,minute,second; public: const int T; SystemTime(int t); ~SystemTime(); ...
管贩18567285057…… 51单片机在数码管上显示的数字钟程序:#include "at89x51.h" unsigned char code dispcode[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x00}; unsigned char dispbitcode[]={0xfe,0xfd,0xfb,0xf7,0xef,0...
@翟冒4493:急求单片机51c编写的时钟显示程序 -
管贩18567285057…… #include<reg51.h> #define uchar unsigned char sbit set=P1^0; sbit setsecond=P1^1; sbit setminute=P1^2; uchar temp,second,minute; void task1() { if(set==1) {delay(10); if(set==1) { while(1) { if(setsecond==1) {second++; while(setsecond);} if(...
@翟冒4493:急求基于51单片机数字电子钟的汇编程序 -
管贩18567285057…… #include<reg51.h>#include<absacc.h>#define uchar unsigned char#define uint unsigned int/*七段共阴管显示定义*/ uchar code dispcode[ ]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F, 0xBF,0x86,0xCB,0xCF,0xEF,0xED,0xFD,0x87,0...
@翟冒4493:(51单片机)找一个电子时钟的(C语言)程序,用LED灯做秒表,四个数码管做时 - 分.急急急!
管贩18567285057…… 有XS128的 //延时控制 void delay(void) { int m,n; for(m=14000;m;m--) { for(n=1000;n;n--) {} } } void LED(void) { PORTB=0XFE; delay(); PORTB=0XFC; delay(); PORTB=0XF8; delay(); PORTB=0XF0; delay(); PORTB=0XE0; delay(); PORTB=0XC0; ...
@翟冒4493:51单片机制作简易电子钟,求电路图和程序,要求6位显示,24小时制 -
管贩18567285057…… #include "reg51.h" #define uint unsigned int #define uchar unsigned char unsigned char code led[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; uchar sec,min,hour; bit secup=00; uchar n=0; void delay(unsigned int ms) { unsigned int i=...
@翟冒4493:51单片机电子时钟程序 只要时间调整部分 急求 谢谢 -
管贩18567285057…… 以下是一段按键调整时间的程序.LED6: LCALL DISPLAY JNB P1.0,CLEAR //;判断键盘输入 JNB P1.1,SET_MINUTE JNB P1.2,SET_HOUR AJMP LED6 CLEAR: LCALL DISPLAY JNB P1.0,CLEAR MOV 30H,#12H //;时钟显示复位 A键 MOV...
@翟冒4493:怎么用51单片机做一个时钟 -
管贩18567285057…… 一片单片机+一个LED数码模块或LCD液晶模块+一段简单的程序=一个简单的时钟. 一片单片机+一片DS1302或其他的时基芯片+一个LED数码模块或LCD液晶模块+一段简单的程序=一个实用的时钟. 系统构成确定了以后,程序就有现成的了,可以移步到百度网页“百度一下”里搜索,资源多如牛毛.
@翟冒4493:用51单片机编程:电子时钟(设计电子时钟,用51单片机编程) -
管贩18567285057…… 如果有问题欢迎到我空间相关文章下留言 乐于回答~~ 程序如下: ; 定义管脚 S_SET BIT P1.0 ;数字钟秒控制位 M_SET BIT P1.1 ;分钟控制位 H_SET BIT P1.2 ;小时控制位 SECOND EQU 30H MINUTE EQU 31H HOUR EQU 32H ORG 00H ...
@翟冒4493:用51单片机实现时钟功能程序??? -
管贩18567285057…… #define uchar unsigned char //定义一下方便使用 #define uint unsigned int #define ulong unsigned long #include <reg52.h> //包括一个52标准内核的头文件 uchar code zixing[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90}; uchar code ...
@翟冒4493:用51单片机做一个电子时钟,请问源程序怎么写,用C++. -
管贩18567285057…… #include <windows.h>#include <time.h>#include <stdlib.h>#include <iostream>#include <string> using namespace std; class SystemTime { private: int year,month,day,hour,minute,second; public: const int T; SystemTime(int t); ~SystemTime(); ...