| 数据搜索系统,热门电子元器件搜索 |
|
ST52X430 数据表(PDF) 28 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST52X430 数据表(HTML) 28 Page - STMicroelectronics |
|
28 / 88 page ![]() ST52T430/E430 28/88 Routine associated to the interrupt with higher priority will start. In order to avoid possible conflicts between interrupt masking set in the main program, or inside high level language compiler macros, the GIP is hung up through the User Global Interrupt Mask or the Macro Global Interrupt Mask (see Figure 4.2). UEGI/UDGI instruction switches on/off the User Global Interrupt Mask, enabling/disabling the GIR for the main program. MEGI/MDGI instructions switch the Macro Global Interrupt Mask on/off, in order to ensure that the macro will not be broken. 4.3 Interrupt Sources ST52x430 manages interrupt signals generated by the internal peripherals (PWM/Timers, UART and Analog to Digital Converter) or coming from the INT/PC0 pin. The External Interrupt can be programmed to be active on the rising or falling edge of INT/PC0 signal by setting the PEXTINT bit of the Configuration Register to 0. WARNING: Changing the interrupt priority an interrupt request is generated. Each peripheral can be programmed in order to generate the associated interrupt; further details are described in the related chapter. 4.4 Interrupt Maskability The interrupts can be masked by configuring the REG_CONF 0 by means of LDCR, or LDCE, instruction. The interrupt is enabled when the bit associated to the mask interrupt is “1". Viceversa, when the bit is ”0", the interrupt is masked and is kept pendent. For example: LDRC 10,6 //load the constant 6 in the RAM Register 10 LDCR 0, 10 // set the CONF_REG 0 with the value stored in the RAM Register 10 the result is CONF_REG0 =00000110 enabling the interrupts deriving from the ADC (INT_ADC) and from the PWM/TIMER 0 (INT_PWM/TIMER0). Reset Configuration ‘000000’ Table 4.1 Configuration Register 0 Description Bit Name Value Description 0MSKE 0 External Interrupt Masked 1 External Interrupt Not Masked 1 MSKAD 0 A/D Converter Interrupt Masked 1 A/D Converter Interrupt Not Masked 2 MSKTM0 0 PWM/TIMER 0Interrupt Masked 1 PWM/TIMER 0 Interrupt Not Masked 3 MSKTM1 0 PWM/TIMER 1 Interrupt Masked 1 PWM/TIMER 1 Interrupt Not Masked 4 MSKTM2 0 PWM/TIMER 2 Interrupt Masked 1 PWM/TIMER 2 Interrupt Not Masked 5MSCI 0 SCI Interrupt Masked 1 SCI Interrupt Not Masked 6 PEXTINT 0 External Interrupt Polarity Active on Rising 1 External Interrupt Polarity Active on Falling 7 Not used |
|
链接网址 |
| 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 |