12.07.2015 Views

PCF85163 Real-time clock and calendar - Digikey

PCF85163 Real-time clock and calendar - Digikey

PCF85163 Real-time clock and calendar - Digikey

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.

NXP Semiconductors<strong>PCF85163</strong><strong>Real</strong>-<strong>time</strong> <strong>clock</strong> <strong>and</strong> <strong>calendar</strong>8.3.2.1 Interrupt outputBits TF <strong>and</strong> AF: When an alarm occurs, AF is set to logic 1. Similarly, at the end of a<strong>time</strong>r countdown, TF is set to logic 1. These bits maintain their value until overwrittenusing the interface. If both <strong>time</strong>r <strong>and</strong> alarm interrupts are required in the application, thesource of the interrupt can be determined by reading these bits. To prevent one flag beingoverwritten while clearing another, a logic AND is performed during a write access.TETF: TIMERto interface:read TFTI_TPTIEe.g. AIECOUNTDOWN COUNTERSETCLEARPULSEGENERATOR 20101TRIGGERfrom interface:clear TFCLEARINTset alarmflag AFAF: ALARMFLAGSETto interface:read AFAIEfrom interface:clear AFCLEAR013aaa087When bits TIE <strong>and</strong> AIE are disabled, pin INT will remain high-impedance.Fig 4.Interrupt schemeBits TIE <strong>and</strong> AIE: These bits activate or deactivate the generation of an interrupt whenTF or AF is asserted, respectively. The interrupt is the logical OR of these two conditionswhen both AIE <strong>and</strong> TIE are set.Countdown <strong>time</strong>r interrupts: The pulse generator for the countdown <strong>time</strong>r interrupt usesan internal <strong>clock</strong> <strong>and</strong> is dependent on the selected source <strong>clock</strong> for the countdown <strong>time</strong>r<strong>and</strong> on the countdown value n. As a consequence, the width of the interrupt pulse varies(see Table 7).Table 7. INT operation (bit TI_TP = 1) [1]Source <strong>clock</strong> (Hz)INT period (s)n=1 [2] n>1 [2]4096 1 ⁄ 8192 1 ⁄ 409664 1 ⁄ 128 1 ⁄ 641 1 ⁄ 64 1 ⁄ 641 ⁄ 60 1 ⁄ 64 1 ⁄ 64[1] TF <strong>and</strong> INT become active simultaneously.[2] n = loaded countdown value. Timer stops when n = 0.<strong>PCF85163</strong> All information provided in this document is subject to legal disclaimers. © NXP B.V. 2010. All rights reserved.Product data sheet Rev. 2 — 28 July 2010 8 of 43

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

Saved successfully!

Ooh no, something went wrong!