11.07.2015 Views

ftrtc010 real time clock - Faraday Technology Corporation

ftrtc010 real time clock - Faraday Technology Corporation

ftrtc010 real time clock - Faraday Technology Corporation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FTRTC010REAL TIME CLOCKVersion 1.4 | December 2006RTC CounterThe RTC counter includes second, minute, hour, and day counters. The second counter increases every second butrounds to zero when the value exceeds 59. Similarly, the minute counter increases every minute but rounds zero whenthe value exceeds 59, the hour counter increases every hour but rounds to zero when the value exceeds 23. The daycounter increases every day. When RTCRSTn is reset, these counters are set to zero. The counters belong to theCLK1HZ <strong>clock</strong> domain and are read only.RTC Auto Alarm LogicThe auto alarm logic can auto trigger an interrupt by each second, minute, hour or day. For example, if the auto secondalarm function is enabled, the RTC auto alarm logic will trigger an interrupt every second. This function is useful forimplementing a <strong>clock</strong>. The programmer can enable the auto alarm function by writing one to the RTC control register.RTC Compare LogicThe RTC compare logic is used to determine rtc_alarm interrupt. This logic block includes second, minute and hourcomparators. If the AlarmSecond register equals to RTC counter’s second value, the AlarmMinute register equals to RTCcounter’s minute value and the AlarmHour register equals to RTC counter’s hour value, then rtc_alarm interrupt will betriggered. The programmer can enable this logic block by writing one to the RTC control register.Signal DescriptionsPCLK DomainCLK1HZ DomainPCLKPRSTnSync BlockRTC CounterCLK1HZRTCRSTnpselpenablepwritepaddrpwdataprdataAPBInterfaceRTC AlarmRegistersRTC ControlRegistersRTC RecoredRegisterRTC CompareLogicRTC Auto AlarmLogicrtc_alarmrtc_secrtc_minrtc_hourrtc_day

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!