| Electronic Components Datasheet Search |
|
STFPC320 Datasheet(PDF) 31 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STFPC320 Datasheet(HTML) 31 Page - STMicroelectronics |
|
31 / 78 page ![]() STFPC320 Real-time clock (RTC) operation 31/78 6.9 Century bits These two bits will increment in a binary fashion at the turn of the century, and handle all leap years correctly. See Table 7 below for additional explanation. 6.10 Oscillator stop detection If the oscillator fail (OF) bit is internally set to a ‘1’, this indicates that the oscillator has either stopped, or was stopped for some period of time and can be used to judge the validity of the clock and date data. This bit will be set to ‘1’ any time the oscillator stops. In the event the OF bit is found to be set to ‘1’ at any time other than the initial power-up, the STOP bit (ST) should be written to a ‘1’, then immediately reset to a ‘0’. This will restart the oscillator. The following conditions can cause the OF bit to be set: ● The first time power is applied (defaults to a ‘1’ on power-up). Note: If the OF bit cannot be written to ‘1’ four (4) seconds after the initial power-up, the STOP bit (ST) should be written to a ‘1’, then immediately reset to a ‘0’. ● The voltage present on Vcc is insufficient to support oscillation. ● The ST bit is set to a ‘1’. ● External interference of the crystal If the oscillator fail interrupt enable bit (OFIE) is set to a ‘1’, the IRQ_N/SQW pin will also be activated. The IRQ_N/SQW output is cleared by resetting the OFIE or OF bit to ‘0’ (NOT by reading the Flag register). The OF bit will remain set to ‘1’ until written to logic ‘0’. The oscillator must start and have run for at least 4 seconds before attempting to reset the OF bit to ‘0’. If the trigger event occurs during the power-down condition, this bit will be set correctly. Table 7. Century bits CB1 CB0 Leap Year? Example (1) 1. Leap year occurs every four years (for years evenly divisible by 4), except for years evenly divisible by 100. The only exceptions are those years evenly divisible by 400 (the year 2000 was a leap year, year 2100 is not). 0 0 Yes 2000 0 1 No 2100 1 0 No 2200 1 1 No 2300 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | 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 |