| 数据搜索系统,热门电子元器件搜索 |
|
STR720 数据表(PDF) 79 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STR720 数据表(HTML) 79 Page - STMicroelectronics |
|
79 / 401 page ![]() STR720 - WAKE-UP INTERRUPT UNIT (WIU) 79/401 8.6 Programming considerations The following paragraphs give some guidelines for the design of the application program. 8.6.1 Procedure for Entering/Exiting STOP mode 1 Program the polarity of the trigger event of external wake-up lines by writing register WUTR. 2 Check that at least one mask bit (register WUMR) is equal to 1 (at least one external wake-up line is not masked). 3 Reset at least the unmasked pending bits: this allows to generate a rising edge on the Interrupt channel WUI_INT when the trigger event occurs (an interrupt is recognized when a rising edge occurs). 4 Select the interrupt source of the channel (see description of INT_EN bit in the WUCTRL register) and set the WKUP-INT bit. Note If clock line is chosen as wake-up event, it should be considered that as long as clock source is active the corresponding pending bit will be seen at ‘1’. Note The change of PLL lock condition cannot be used as wake-up event. Selecting this input as the only wake-up source will stuck the system so as only a reset event can restore normal operations. 5 To generate an interrupt on the associated channel, set the related enable, mask and priority bits in the interrupt controller. 6 Reset the STOP bit in register WUCTRL. 7 To enter STOP mode, write the sequence 1, 0, 1 on the STOP bit in the WUCTRL register with three write operations. To reset the sequence it is sufficient to write twice a logic ‘0’ to the STOP bit of WUCTRL register (corresponding anyway to a bad sequence). If the sequence is not completed within 64 clock periods (system clock), a TIMEOUT expires and reset the sequence. In this case the software shall re-enter the sequence (1, 0,1). 8 The code to be executed just after the STOP sequence must check the STOP bit status to determine if the device entered STOP mode or not (See “Wake-up Mode Selection” on page 72. for details). If the device did not enter in STOP mode it is necessary to re-loop the procedure from the beginning, otherwise the procedure continues from next point (see also section 25.4 on page 368). 9 Poll the wake-up pending bits to determine which wake-up line caused the exit from STOP mode. 10 Clear the wake-up pending bit that was set. 1 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |