| Electronic Components Datasheet Search |
|
AN1216 Datasheet(PDF) 9 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1216 Datasheet(HTML) 9 Page - STMicroelectronics |
|
9 / 11 page ![]() DocID007016 Rev 2 9/11 AN1216 11 alarm_hour = 1; // to hold the repetition period alarm_minute = 49; // for an alarm (& an interrupt on pin 26) alarm_second = 35; // every 1hr 49min 35sec (for example). // Start the Timekeeper oscillator. *TIMEKEEPER_SEC &= 0x7F; // RPT4 set *TKPER_AL_DAY |= 0x80; // enable IRQ request on pin40 (M48T37V/Y) *TKPER_AL_IT |= 0x80; while (1) { /*******************************************************************/ /* read_the_port is a read of MCU I/O to detect an alarm interrupt */ /* lcd_min_display is a lcd software driver used for routine debug */ /* Those library were developed for FLASH+PSD development board. */ /*******************************************************************/ read_the_ports(); lcd_min_display(0,3,*TIMEKEEPER_HOUR); // display current time lcd_min_display(0,7,*TIMEKEEPER_MIN); lcd_min_display(0,13,*TIMEKEEPER_SEC); if (dip_sw==0x0E) // dip_sw is updated by read_the_port // if detect alarm interrupt from TIMEKEEPER { Update_Next_Alarm(alarm_hour,alarm_minute,alarm_second); lcd_min_display(1,3,*TKPER_AL_HOUR); // display next alarm time lcd_min_display(1,7,*TKPER_AL_MIN); lcd_min_display(1,13,*TKPER_AL_SEC); } } } |
|
|
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 |