单片机控制
#include <reg52.h>
#define uchar unsigned char
#define uint unsigned int
uchar code table[]="ziye334";
uchar code table1[]="0123456789";
uchar code table2[]="DAY-";
sbit rs=P2^5;
sbit rw=P2^6;
sbit en=P2^7;
sbit rst=P1^7;
sbit io=P3^5;
sbit clk=P1^6;
sbit ACC0=ACC^0;
sbit ACC7=ACC^7;
sbit key1=P1^0;
sbit key2=P1^1;
sbit key3=P1^2;
sbit key4=P1^3;
sbit key5=P1^4;
uchar num;
uchar t_sec,sec1,sec2;
uchar t_min,min1,min2;
uchar t_hr,hr1,hr2;
uchar t_mon,mon1,mon2;
uchar t_date,date1,date2;
uchar t_year,year1,year2;
uchar t_day,day1,flag;
void input_1byte(uchar TD)
{
uchar i;
ACC=TD;
for(i=8;i>0;i--)
{
io=ACC0;
clk=1;
clk=0;
ACC=ACC>>1;
}
}
uchar output_1byte(void)
{
uchar i;
for(i=8;i>0;i--)
{
时钟DS1302在液晶1602显示程序 ds1302ds1302隐藏>> #include <reg52.h> #define uchar unsigned char #define uint unsigned int uchar code table[]="ziye...
1602液晶显示DS1302实时时钟程序_计算机软件及应用_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 1602液晶显示DS1302实时时钟程序_计算机软件及应用_IT/...
1602液晶显示DS1302实时时钟程序_信息与通信_工程科技_专业资料。DS1302是DALLAS公司推出的一种高性能,低功耗,带RAM的实时时钟芯片,它可以对年/月/日/周/时/分...
1602液晶显示DS1302时钟程序1602液晶显示DS1302时钟程序隐藏>> /*=== 1602 液晶显示 DS1302 时钟 ===*/ #include <AT89X51.h> #include...
//基于 DS1302 的 LCD1602 显示的日历时钟 c 程序 #include<reg51.h> //包含单片机寄存器的头文件 #include<intrins.h> //包含_nop_()函数定义的头文件 ...
DS1302时钟芯片与液晶1602的程序_工学_高等教育_教育专区。基于c51的数字时钟例程DS1302 测试程序 晶振:11.0592MHZ /***包含头文件***/ #include "reg51.h"...
51单片机,DS1302时钟,1602... 23页 免费 51+DS1302+DS18B20+LCD160... 28页 免费 时钟芯片ds1302程序 2页 免费 1602+ds1302+18B20万年历显... 15页 ...
基于ds1302的51单片机简易实时时钟 1602显示 源程序_信息与通信_工程科技_专业...(y==1) address=0x80+x; else address=0xc0+x; LCD_write_command(...
ds1302液晶1602显示_电子/电路_工程科技_专业资料。DS1302液晶1602显示有秒表!... 时钟DS1302在液晶1602显... 11页 2下载券 DS1302+LCD1602显示程序 3页 ...
51控制实时时钟DS1302和液晶显示1602等(含详细注释DXL)_信息与通信_工程科技_...To_DS18B20(unsigned int i) //i=1要使之为6us,不然DS18B20读写程序会...
热门文档