文件名称:STC12C5A60S2_DS1302_Test
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2016-05-04
- 文件大小:
- 62kb
- 下载次数:
- 0次
- 提 供 者:
- yush*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
DS1302外部时钟芯片单字节读写测试程序
1、程序说明:
该例程演示了外部时钟芯片DS1302测试程序,单片机端口
通过SPI协议与DS1302通信,单片机以单字节方式读写DS1302.
2、实验操作
将拨码开关S10的SMG端拨到ON端, 表示该端接通。
同时把拨码开关的其他端置为断开状态,即不拨到ON端。
否则将影响到实验效果。
该程序下载到开发板运行后
数码管即显示时间,格式为:小时-分钟-秒。
因为有后备电池,再板子断电情况下,可保持时间值
并且可继续更新时间值。
-DS1302 external clock chip single byte read and write test procedures
1, descr iption of the procedures:
This routine demonstrates the external clock chip DS1302 port test program, microcontroller
Through the SPI protocol and DS1302 communication, DS1302. microcontroller to read and write to a single byte mode
2, experimental operation
The dial switch SMG S10 end of the ON to the side, indicating that the end is connected.
At the same time the other end of the dial switch is disconnected, that is, no dial to the ON side.
Otherwise, it will affect the experimental results.
The program is downloaded to the development board running
Digital tube display time format: hour minute second.
Because there is a back-up battery, and then board the power case, can keep the value of time
And can continue to update the value of time.
1、程序说明:
该例程演示了外部时钟芯片DS1302测试程序,单片机端口
通过SPI协议与DS1302通信,单片机以单字节方式读写DS1302.
2、实验操作
将拨码开关S10的SMG端拨到ON端, 表示该端接通。
同时把拨码开关的其他端置为断开状态,即不拨到ON端。
否则将影响到实验效果。
该程序下载到开发板运行后
数码管即显示时间,格式为:小时-分钟-秒。
因为有后备电池,再板子断电情况下,可保持时间值
并且可继续更新时间值。
-DS1302 external clock chip single byte read and write test procedures
1, descr iption of the procedures:
This routine demonstrates the external clock chip DS1302 port test program, microcontroller
Through the SPI protocol and DS1302 communication, DS1302. microcontroller to read and write to a single byte mode
2, experimental operation
The dial switch SMG S10 end of the ON to the side, indicating that the end is connected.
At the same time the other end of the dial switch is disconnected, that is, no dial to the ON side.
Otherwise, it will affect the experimental results.
The program is downloaded to the development board running
Digital tube display time format: hour minute second.
Because there is a back-up battery, and then board the power case, can keep the value of time
And can continue to update the value of time.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
8、DS1302外部SPI时钟单字节实验\Application\Doc\readme.txt
..............................\...........\Header\ds1302.h
..............................\...........\......\STC12C5A60S2.H
..............................\...........\Source\ds1302.c
..............................\...........\......\main.c
..............................\...........\.tartup\STARTUP.A51
..............................\DS1302_Test.plg
..............................\DS1302_Test.uvgui.Administrator
..............................\DS1302_Test.uvopt
..............................\DS1302_Test.uvproj
..............................\DS1302_Test_uvopt.bak
..............................\DS1302_Test_uvproj.bak
..............................\Lis\ds1302.lst
..............................\...\DS1302_Test.m51
..............................\...\main.lst
..............................\...\STARTUP.lst
..............................\Obj\ds1302.obj
..............................\...\DS1302_Test
..............................\...\DS1302_Test.hex
..............................\...\DS1302_Test.lnp
..............................\...\DS1302_Test.plg
..............................\...\main.obj
..............................\...\STARTUP.obj
..............................\Application\Doc
..............................\...........\Header
..............................\...........\Source
..............................\...........\Startup
..............................\Application
..............................\Lis
..............................\Obj
8、DS1302外部SPI时钟单字节实验