| Electronic Components Datasheet Search |
|
AN3133 Datasheet(PDF) 20 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3133 Datasheet(HTML) 20 Page - STMicroelectronics |
|
20 / 43 page ![]() Useful RTC configuration examples AN3133 20/43 Doc ID 16956 Rev 5 3.2 Configuring the alarm behavior using the MSKx bits The alarm behavior can be configured through the MSKx bits (x = 1, 2, 3, 4) of the RTC_ALRMARx registers and the MASKSS[3:0] bits of the RTC_ALRMASSMSKR register. Table 8 shows all the possible alarm settings. As an example, to configure the alarm time to 23:15:07 on Monday, MSKx bits must be set to 0000b. Table 7. Calendar clock equal to 1Hz with different clock sources Clock source Prescalers ck_spre RTCDIV[2:0] PREDIV_A[6:0] PREDIV_S(1) 1. Bits [12:0] for medium-density products and Bits [14:0] for medium+ and high-density products. HSE = 1 MHz 6 (div64) 124 (div125) 124 (div125) 1 Hz HSI = 16 MHz 6 (div64) 124 (div125) 1999 (div2000) 1 Hz LSE = 32.768 kHz 0 (div1) 127 (div128) 255 (div256) 1 Hz LSI = 38 kHz(2) 2. LSI accuracy is not suitable for calendar application. 0 (div1) 124 (div125) 303 (div304) 1 Hz Table 8. Alarm combination MASKSS [3:0] MSK4 MSK3 MSK2 MSK1 Alarm behavior 0x0 0 0 0 0 All fields are used in alarm comparison: Alarm occurs at 23:15:07, each Monday. 0x0 0 0 0 1 Seconds don’t care in alarm comparison The alarm occurs every second of 23:15, each Monday. 0x0 0 0 1 0 Minutes don’t care in alarm comparison The alarm occurs at the 7th second of every minute of 23:XX, each Monday. 0x0 0 0 1 1 Minutes and seconds don’t care in alarm comparison 0x0 0 1 0 0 Hours don’t care in alarm comparison 0x0 0 1 0 1 Hours and seconds don’t care in alarm comparison 0x0 0 1 1 0 Hours and minutes don’t care in alarm comparison 0x0 0 1 1 1 Hours, minutes and seconds don’t care in alarm comparison The alarm is set every second, each Monday, during the whole day. 0x0 1 0 0 0 Week day (or date, if selected) don’t care in alarm comparison Alarm occurs all days at 23:15:07. 0x0 1 0 0 1 Week day and seconds don’t care in alarm comparison 0x0 1 0 1 0 Week day and minutes don’t care in alarm comparison 0x0 1 0 1 1 Week day, minutes and seconds don’t care in alarm comparison 0x0 1 1 0 0 Week day and Hours don’t care in alarm comparison |
|
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 |