软件的实时时钟和日历使用PIC16F1827

上传:lecture69136 浏览: 4 推荐: 0 文件:pdf 大小:69.09 KB 上传时间:2022-10-23 09:20:55 版权申诉

INTRODUCTION

Thisapplicationnotedescribestheimplementationof

softwareReal-TimeClockandCalendar(RTCC).The

implementationcanbeusedeitherseparately,

replacingoneofthehardwareRTCCdevicesonthe

market,oraspartofanapplication.Inthelatter

example,thereisnoneedfortheI

2

C™communication

channel.

Theimplementationprovidesthetime(seconds,

minutes,andhour),date(day,month,andyear),dayof

week,andonealarm.Theusercancustomizethe

firmwareaccordingtohis/herownneeds.AN1303SoftwareReal-TimeClockandCalendarUsingPIC16F1827Author:CristianTomaDATAINTERFACEMicrochipTechnologyInc.TheReal-TimeClockandCalendarcommunicateswiththehostsystemviaatwo-wireI2Cbusasaslavedevice.AsetofI2CcommandsandRTCCregistersareINTRODUCTIONimplementedtoallowthehosttoreadandwritetimeThisapplicationnotedescribestheimplementationofanddateinformation.Allregistersarereadand

上传资源
用户评论