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

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

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