pcf8563.h

来自「8563_LED_Display(时钟芯片)」· C头文件 代码 · 共 37 行

H
37
字号
/*
****************************************************************************
 * 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 + =
减小字号Ctrl + -
显示快捷键?