| Electronic Components Datasheet Search |
|
PCF2123 Datasheet(PDF) 24 Page - NXP Semiconductors |
|
|
|||||||||||||||||||||||||||||
PCF2123 Datasheet(HTML) 24 Page - NXP Semiconductors |
|
24 / 54 page ![]() PCF2123_1 © NXP B.V. 2008. All rights reserved. Product data sheet Rev. 01 — 19 November 2008 24 of 54 NXP Semiconductors PCF2123 SPI Real time clock/calendar 9.8.3 Timer flags When a minute or second interrupt occurs, bit MSF is set to logic 1. Similarly, at the end of a timer countdown or alarm event, bit TF or AF are set to logic 1. These bits maintain their value until overwritten by software. If both countdown timer and minute or second interrupts are required in the application, the source of the interrupt can be determined by reading these bits. To prevent one flag being overwritten while clearing another a logical AND is performed during a write access. Writing a logic 1 will cause the flag to maintain its value, whilst writing a logic 0 will cause the flag to be reset. Three examples are given for clearing the flags. Clearing the flags is made by a write command, therefore bits 7, 6, 4, 1 and 0 must be written with their previous values. Repeatedly re-writing these bits has no influence on the functional behavior. Table 31, Table 32 and Table 33 show what instruction must be sent to clear the appropriate flag. Clearing the alarm flag (bit AF) operates in exactly the same way, see Section 9.7.1. 9.9 Interrupt output An active LOW interrupt signal is available at pin INT. Operation is controlled via the bits of register Control_2. Interrupts may be sourced from four places: second and minute timer, countdown timer, alarm function or offset function. With bit TI_TP, the timer generated interrupts can be configured to either generate a pulse or to follow the status of the interrupt flags (bits TF and MSF). Correction interrupt pulses are always 1 ⁄ 128 second long. Alarm interrupts always follow the condition of AF. Table 30. Flag location in register Control_2 Register Bit 7 6 5 4 3 2 1 0 Control_2 - - MSF - AF TF - - Table 31. Example to clear only TF (bit 2) in register Control_2 Register Bit 7 6 5 4 3 2 1 0 Control_2 - - 1 - 1 0 - - Table 32. Example to clear only MSF (bit 5) in register Control_2 Register Bit 7 6 5 4 3 2 1 0 Control_2 - - 0 - 1 1 - - Table 33. Example to clear both TF and MSF (bit 2 and bit 5) in register Control_2 Register Bit 7 6 5 4 3 2 1 0 Control_2 - - 0 - 1 0 - - |
|
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 |