| 数据搜索系统,热门电子元器件搜索 |
|
ST52T430 数据表(PDF) 31 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST52T430 数据表(HTML) 31 Page - STMicroelectronics |
|
31 / 88 page ![]() ST52T430/E430 31/88 Figure 4.6 Example of a sequence of Interrupt requests REMARK: The Interrupt priority must be set at the beginning of the main program, because at the RESET REG_CONF1=’00000000’, this condition could generate wrong operations. Further, changing the priority levels must be avoided in interrupt service routines. When a source provides an Interrupt request and the request processing is also enabled, the CU changes the normal sequential flow of a program by transferring program control to a selected service routine. When an interrupt occurs the CU executes a JUMP instruction to the address loaded in the related location of the Interrupt Vector. When the execution returns to the original program it immediately begins following the instruction that was interrupted. 4.6 Interrupts and Low power mode All interrupts allow the processor to leave the WAIT low power mode. Only the external Interrupt allows the processor to leave the HALT low power mode. 4.7 Interrupt RESET An eventually pending interrupt can be reset with the instruction RINT j, which resets the interrupt j-th where j identifies the peripherals as described in the following table (see Table 4.4). The assembler instruction: RINT 2 Resets the PWM/Timer 1 interrupt. Note: The RINT command must be preceded from a UDGI (or MDGI) command and followed by a UEGI (or MEGI) command. WARNING: If an interrupt is reset, with the RINT instruction within its own interrupt routine, the priority level of the interrupt becomes the lowest and the routine can be immediately interrupted by a lower priority interrupt request. Table 4.4 RINT Instruction code Peripheral Name Value A/D Converter 0 PWM/TIMER 0 1 PWM/TIMER 1 2 PWM/TIMER 2 3 SCI 4 External Interrupt 5 Table 4.4 RINT Instruction code Peripheral Name Value MAIN PROGRAM 5 4 3 2 1 0 INT2 INT0 INT2 INT1 INT2 INT3 INT4 MAIN PROGRAM PRIORITY LEVEL INT2 INT0 INT4 INT1 INT3 6 |
|
链接网址 |
| 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 |