(完整word版)DS1302时钟芯片51单片机c语言程序.pdf
《(完整word版)DS1302时钟芯片51单片机c语言程序.pdf》由会员分享,可在线阅读,更多相关《(完整word版)DS1302时钟芯片51单片机c语言程序.pdf(5页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、#ifndef _DS1302_H_#define _DS1302_H_#define uchar unsigned char#define uint unsigned int#include sbit SCLK=P32;sbit IO=P24;sbit RST=P33;#define R_Second 0 x81#define W_Second 0 x80#define R_Minute 0 x83#define W_Minute 0 x82#define R_Hour 0 x85#define W_Hour 0 x84#define R_Day 0 x87#define W_Day 0 x
2、86#define R_Month 0 x89#define W_Month 0 x88#define R_Week 0 x8B#define W_Week 0 x8A#define R_Year 0 x8D#define W_Year 0 x8C#define R_Control 0 x8F#define W_Control 0 x8E void DS1302_Write_Byte(uchar Date);uchar DS1302_Read_Byte();void Write_DS1302(uchar Adr,uchar Date);uchar Read_DS1302(uchar Adr);
3、void Init_DS1302();#endif 精品资料-欢迎下载-欢迎下载 名师归纳-第 1 页,共 5 页 -#include ds1302.h/*函數名稱:DS1302_Write_Byte(uchar Date)函數功能:单字节写輸入參數:写的字节輸出參數:无備注:*/void DS1302_Write_Byte(uchar Date)uchar i;for(i=0;i 1;SCLK=0;/*函數名稱:uchar DS1302_Read_Byte()函數功能:单字节读輸入參數:无輸出參數:读出的数据備注:*/uchar DS1302_Read_Byte()精品资料-欢迎下载-欢迎下
4、载 名师归纳-第 2 页,共 5 页 -文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H
5、8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:C
6、F8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 H
7、E1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY
8、6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码
9、:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5
10、 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4uchar i,Temp=0;for(i=0;i 1;SCLK=0;if(IO=1)Temp=Temp|0 x80;SCLK=1;return Temp;/*函數名稱:Write_DS1302(uchar Adr,uchar
11、 Date)函數功能:写数据輸入參數:写的寄存器地址和数据輸出參數:无備注:*/void Write_DS1302(uchar Adr,uchar Date)RST=0;SCLK=0;RST=1;DS1302_Write_Byte(Adr);DS1302_Write_Byte(Date);RST=0;/*函數名稱:uchar Read_DS1302(uchar Adr)精品资料-欢迎下载-欢迎下载 名师归纳-第 3 页,共 5 页 -文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q
12、4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G
13、7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9
14、F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A
15、1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N1
16、0G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1R9F1C9 ZY6H8D9A1Q4文档编码:CF8N10G7N4F5 HE1K1
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 完整 word DS1302 时钟 芯片 51 单片机 语言 程序
限制150内