时钟芯片ds12c887的C51驱动程序
文件名称:ds12c887.c
适用范围:时钟芯片ds12c887的驱动程序
*************************************************************/
#i nclude
/* 命令常量定义*/
#define CMD_START_DS12C887 0x20 /* 开启时钟芯片
*/
#define CMD_START_OSCILLATOR 0x70 /* 开启振荡器,
处于抑制状态*/
#define CMD_CLOSE_DS12C887 0x30 /* 关掉时钟芯片
*/
/* 所有的置位使用或操作,清除使用与操作*/
#define MASK_SETB_SET 0x80 /* 禁止刷新*/
#define MASK_CLR_SET 0x7f /* 使能刷新*/
#define MASK_SETB_DM 0x04 /* 使用HEX格式
*/
#define MASK_CLR_DM 0xfb /* 使
用BCD码格式*/
#define MASK_SETB_2412 0x02 /* 使
用24小时模式*/
#define MASK_CLR_2412 0xfd /* 使用12小时模
式*/
#define MASK_SETB_DSE 0x01 /* 使用夏令时*/
#define MASK_CLR_DSE 0xfe /* 不使用夏令时
*/
/* 寄存器地址通道定义*/
xdata char chSecondsChannel _at_ 0xdf00;
xdata char chMinutesChannel _at_ 0xdf02;
xdata char chHoursChannel _at_ 0xdf04;
xdata char chDofWChannel _at_ 0xdf06;
xdata char chDateChannel _at_ 0xdf07;
xdata char chMonthChannel _at_ 0xdf08;
xdata char chYearChannel _at_ 0xdf09;
非常好我支持^.^
(9) 100%
不好我反对
(0) 0%
下载地址
时钟芯片ds12c887的C51驱动程序下载
相关电子资料下载
- 基于51单片机DS18B20温度测量仿真设计 254
- 求一种WT588F02KD-24SS数码管时钟语音播报芯片设计方案 131
- 圆扬LE audio CWDK-Q1 EVB开发板介绍 - 采用高通最新LE audio QCC5181芯片方案 243
- Stathera的MEMS时钟芯片有什么优势 1376
- 单片机定时器的工作原理、分类及应用实例 300
- 时钟芯片和晶振的区别 761
- 60V/3A 宽输出范围,同步降压转换器ZCC5160 134
- 基于高通 QCC5181 aptX adptivite 24 bit-96KHz/Lossless蓝牙扩大机方案 2282
- 北京革新创展科技有限公司-全功能51单片机开发实验教学方案 347
- 利用单片机IO引脚驱动LED电路 742