单片机控制
t_hr=read_ds1302(0x85); hr1=t_hr&0x0f; hr2=(t_hr>>4); t_date=read_ds1302(0x87); date1=t_date&0x0f; date2=(t_date>>4); t_mon=read_ds1302(0x89); mon1=t_mon&0x0f; mon2=(t_mon>>4); t_day=read_ds1302(0x8b); day1=t_day&0x0f; t_year=read_ds1302(0x8d); year1=t_year&0x0f; year2=(t_year>>4); write_com(0x80+0x4e); write_date(table1[sec2]); write_com(0x80+0x4f); write_date(table1[sec1]); write_com(0x80+0x4d); write_date(':'); write_com(0x80+0x4c); write_date(table1[min1]); write_com(0x80+0x4b); write_date(table1[min2]); write_com(0x80+0x4a); write_date(':'); write_com(0x80+0x49); write_date(table1[hr1]); write_com(0x80+0x48); write_date(table1[hr2]); write_com(0x80+0x0f); write_date(table1[date1]); write_com(0x80+0x0e); write_date(table1[date2]);
时钟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读写程序会...
热门文档