Problems and Countermeasures in DS program design of serial real time clock chip(串行实时时钟芯片DS程序设计中的问题与对策).docVIP
- 1、本文档共13页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Problems and Countermeasures in DS program design of serial real time clock chip(串行实时时钟芯片DS程序设计中的问题与对策).doc
Problems and Countermeasures in DS1302 program design of serial real time clock chip(串行实时时钟芯片DS1302程序设计中的问题与对策)
Own collection
Think its useful
So upload it to Baidu
Share it with everyone!
Problems and Countermeasures in DS1302 program design of serial real time clock chip
Author: Fan Guiqing Li Qingwu Jin Jianhua Henan Normal University Department of electronic engineering Tsinghua University and Liu Runsheng source: application of electronic technology
Abstract: several problems which are easily neglected and led to error in DSl302 program design of serial real time clock chip are pointed out
Analyze the cause of the problem
The method of solving the problem is also given
Keywords: serial clock, program design, reason, solution
The serial interface real-time clock chip DSl302 launched by American Dallas company can carry out trickle charging to the clock chip backup battery
The chip has the characteristics of small size, low power consumption, easy interface, and less CPUI / O ports
The chip can be used as real-time clock heads are widely used in intelligent instruments
I found dead in a few questions on the DSl302 programming is easy to neglect cause errors in debugging
Offer reader reference now
1 read operation error
According to the reference [2] operation chart and reference [1] and [2], it is known that single byte read operation takes 16 clocks at a time
The address byte is input on the rising edge of the first 8 clock cycles
The data bytes are output at the falling edge of the last 8 clock cycles
According to the hardware connection diagram of Figure 1, the following single byte read program is worked out:
DSREAD cardiac SETBP1.2; =0
CLRP1.1 = SCLK = 0
CLRP1.2; make =1
Boot chip
LCALLDSWSUB; write a 8 bit address
LCALLDSRSUB; read the 8 bit data
RET
DSWSUB cardiac MOVR7
08H
WL00P RRCA A for cardiac; address byte
MOVP1.0
C
SETBP1.1; on the rising edge of the clock
NOP; input address byte
CLRP1.1
DJNZR7 dead WL00P
RET
DSRSUB cardiac SETBP1.0; prepare for re
文档评论(0)