📄 pcf8563.h
字号:
/*
****************************************************************************
* College of Physics And electronic engineering,GUANGXI Normal University .
*
* All rights reserved. ucosII's source code is an unpublished work and the
* use of a copyright notice does not imply otherwise. This source code
* contains confidential trade secret material of College of Physics And
* electronic engineering,GUANGXI Normal University . Any attemp
* or participation in deciphering, decoding, reverse engineering or in any
* way altering the source code is stricitly prohibited, unless the prior
* written consent of College of Physics And electronic engineering,GUANGXI Normal University
* is obtained.
* file name:18PCF8563.h
* description: 时钟驱动程序接口
* company:大学生科技创新基地
* data:2008-10-1
* author:黄一平
* modify:
//-*****************************************************************************/
//#include <reg51.h> /*特殊功能寄存器--8051*/
//#include <intrins.h>
/*----------------定义8563与MCU的连接---------------*/
sbit scl_8563 =P0^6;
sbit sda_8563 =P0^7;
/*----------------声明函数---------------*/
#define somenop _nop_();_nop_();_nop_();_nop_();
extern unsigned char sec,min,hou,day,week,mon,year;
//extern unsigned char Ini_8563[7] = {0,0,0,1,2,1,8}; //秒、分、小时、日、星期、月、年
void start_8563 (void);
void stop_8563 (void);
void write_byte_8563 (unsigned char dat);
unsigned char read_byte_8563 (void);
void set_8563 (void);
void read_8563 (void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -