1. 首页
  2. 课程学习
  3. 嵌入式
  4. 软件的实时时钟和日历使用PIC16F1827

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

上传者: 2022-10-23 09:20:55上传 PDF文件 69.09 KB 热度 6次

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

用户评论