| Electronic Components Datasheet Search |
|
PCF2123 Datasheet(PDF) 22 Page - NXP Semiconductors |
|
|
|||||||||||||||||||||||||||||
PCF2123 Datasheet(HTML) 22 Page - NXP Semiconductors |
|
22 / 63 page ![]() PCF2123 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet Rev. 5 — 27 April 2011 22 of 63 NXP Semiconductors PCF2123 SPI Real time clock/calendar 8.6.4 Countdown timer function The 8-bit countdown timer at address 0Fh is controlled by the register Timer_clkout at address 0Eh. The register Timer_clkout selects one of 4 source clock frequencies for the timer (4.096 kHz, 64 Hz, 1 Hz, or 1 ⁄ 60 Hz) and enables or disables the timer. [1] When not in use, CTD must be set to 1 ⁄ 60 Hz for power saving. [2] Time periods can be affected by correction pulses. Remark: Note that all timings which are generated from the 32.768 kHz oscillator are based on the assumption that there is 0 ppm deviation. Deviation in oscillator frequency will result in deviation in timings. This is not applicable to interface timing. The timer counts down from a software-loaded 8-bit binary value, n. Loading the counter with 0 stops the timer. Values from 1 to 255 are valid. When the counter reaches 1, the countdown timer flag (bit TF) will be set and the counter automatically re-loads and starts the next timer period. Reading the timer will return the current value of the countdown counter (see Figure 15). If a new value of n is written before the end of the current timer period, then this value will take immediate effect. NXP does not recommend changing n without first disabling the counter (by setting bit TE = 0). The update of n is asynchronous to the timer clock, Table 28. Bits CTD0 and CTD1 for timer frequency selection and countdown timer durations CTD[1:0] Timer source clock frequency[1] Delay Minimum timer duration n= 1 Maximum timer duration n=255 00 4.096 kHz 244 μs 62.256 ms 01 64 Hz 15.625 ms 3.984 s 10 1 Hz[2] 1 s 255 s 11 1 ⁄ 60 Hz [2] 60 s 4 h 15 min In this example it is assumed that the timer flag is cleared before the next countdown period expires and that the pin INT is set to pulsed mode. Fig 15. General countdown timer behavior 001aaf906 n duration of first timer period after enable may range from n − 1 to n + 1 03 xx 02 01 03 02 01 03 02 01 03 n 03 xx countdown value, n timer source clock countdown counter TE TF INT |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |