所需E币: 4
时间: 2019-12-24 19:15
大小: 69.09KB
INTRODUCTIONThisapplicationnotedescribestheimplementationofsoftwareReal-TimeClockandCalendar(RTCC).Theimplementationcanbeusedeitherseparately,replacingoneofthehardwareRTCCdevicesonthemarket,oraspartofanapplication.Inthelatterexample,thereisnoneedfortheI2C™communicationchannel.Theimplementationprovidesthetime(seconds,minutes,andhour),date(day,month,andyear),dayofweek,andonealarm.Theusercancustomizethefirmwareaccordingtohis/herownneeds.AN1303SoftwareReal-TimeClockandCalendarUsingPIC16F1827Author:CristianTomaDATAINTERFACEMicrochipTechnologyInc.TheReal-TimeClockandCalendarcommunicateswiththehostsystemviaatwo-wireI2Cbusasaslavedevice.AsetofI2CcommandsandRTCCregistersareINTRODUCTIONimplementedtoallowthehosttoreadandwritetimeThisapplicationnotedescribestheimplementationofanddateinformation.Allregistersarereadand……