实时时钟r8010代码

时间:2021-09-26 03:19:49
【文件属性】:

文件名称:实时时钟r8010代码

文件大小:6KB

文件格式:C

更新时间:2021-09-26 03:19:49

r8010

实时时钟读写代码,项目内已使用,运行正常!#ifndef __R8010_H #define __R8010_H #define _nop() _nop_() #define unchar unsigned char #define unint unsigned int #define unlong unsigned long sbit scl = P4^4; sbit sda = P2^0; extern unchar time_buf1[8]; //= {20,18,7,4,8,8,8,4};//空年月日时分秒周 extern unchar time_buf[8]; void NXF8010_init(); void start(); void stop(); void respons(); void write_byte(unchar date); unchar read_byte(); void _write_add(unchar address,unchar date); unchar read_add(unchar address); void Write8010(void); void read8010(); #endif


网友评论