| 数据搜索系统,热门电子元器件搜索 |
|
ST52T400 数据表(PDF) 38 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST52T400 数据表(HTML) 38 Page - STMicroelectronics |
|
38 / 94 page ![]() ST52T400/T440/E440/T441 38/94 4.2 Global Interrupt Request Enabling When an Interrupt occurs, it generates a Global Interrupt Pending (GIP), which can be masked by software. After a GIP, a Global Interrupt Request (GIR) will be generated and an Interrupt Service Routine associated to the interrupt with higher pri- ority will start. In order to avoid possible conflicts between interrupt masking set in the main pro- gram, or inside macros, the GIP is masked through the User Global Interrupt Mask or the Macro Global Interrupt Mask (see Figure 4.3). UEGI/UDGI instruction switches the User Global Interrupt Mask on/off, enabling/disabling the GIR for the main program. MEGI/MDGI instructions switches the Macro Glo- bal Interrupt Mask on/off in order to ensure that the macro will not be broken. 4.3 Interrupt Sources ST52x400/440/441 manages interrupt signals generated by the internal peripherals (PWM/ TIMER, TRIAC Driver and Analog Comparator) or deriving from the External Interrupt on pin PA7. The External Interrupt can be programmed to be active on the rising or falling edge of INT/PA7 sig- nal by setting the PEXTINT bit of the Configura- tion 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.Configuration Register 0 is also used to enable/disable the Brown-Out (see the related chapter). 4.4 Interrupt Maskability The interrupts can be masked by configuring the Configuration Register 0 by means of an LDCR or an 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 pending. For example: LDRC 10,6 (loads the constant 6 in the RAM Register 10) LDCR 0,10 (sets REG_CONF0 with the value stored in RAM Register 10) the result is REG_CONF0=00000110, enabling the interrupts coming from the Analog Comparator (INT_AC) and from the PWM/TIMER (INT_PWM/ TIMER). Reset Configuration ‘00000000’ Table 4.1 Configuration Register 0 Description Bit Name Value Description 0 MSKE 0 External Interrupt Masked 1 External Interrupt Not Masked 1 MSKAC(*) 0 Analog Comparator Interrupt Masked 1 Analog Comparator Interrupt Not Masked 2 MSKTM 0 PWM/TIMER Interrupt Masked 1 PWM/TIMER Interrupt Not Masked 3 MSKTRF 0 TRIAC Falling Edge Interrupt 1 TRIAC Falling Edge Interrupt Not Masked 4 MSKTRR 0 TRIAC Rising Edge Interrupt Masked 1 TRIAC Rising Edge Interrupt Not Masked 5 MSKTRP 0 TRIAC Pulse Interrupt Masked 1 TRIAC Pulse Interrupt Not Masked 6 PEXTINT 0 External Interrupt active on Rising Edge 1 External Interrupt active on Falling Edge 7 MSKBR 0 Brown-Out Disabled 1 Brown-Out Enabled (*) Not Used in ST52x400 devices |
|
链接网址 |
| 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 |