| 数据搜索系统,热门电子元器件搜索 |
|
ADE5166 数据表(PDF) 87 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADE5166 数据表(HTML) 87 Page - Analog Devices |
|
87 / 148 page ![]() Preliminary Technical Data ADE5166/ADE5169/ADE5566/ADE5569 Rev. PrB | Page 87 of 148 INTERRUPT FLAGS The interrupt flags and status flags associated with the interrupt vectors are shown in Table 75 and Table 76, respectively. Most of the interrupts have flags associated with them. Table 75. Interrupt Flags Interrupt Source Flag Bit Name Description IE0 TCON.1 IE0 External Interrupt 0. TF0 TCON.5 TF0 Timer 0. IE1 TCON.3 IE1 External Interrupt 1. TF1 TCON.7 TF1 Timer 1. RI + TI SCON.1 TI Transmit interrupt. SCON.0 RI Receive interrupt. RI2 + TI2 SCON2.1 TI2 Transmit 2 interrupt SCON2.0 RI2 Receive 2 interrupt TF2 + EXF2 T2CON.7 TF2 Timer 2 overflow flag. T2CON.6 EXF2 Timer 2 external flag. ITEMP (Temperature ADC) N/A N/A Temperature ADC interrupt. Does not have an interrupt flag associated with it. IPSM (Power Supply) IPSMF.6 FPSM PSM interrupt flag. IADE (Energy Measurement DSP) MIRQSTL.7 ADEIRQFLAG Read MIRQSTH, MIRQSTM, MIRQSTL. Table 76. Status Flags Interrupt Source Flag Bit Address Description ITEMP (Temperature ADC) N/A N/A Temperature ADC interrupt. Does not have a status flag associated with it. ISPI/I2CI SPI2CSTAT1 N/A SPI interrupt status register. SPI2CSTAT N/A I2C interrupt status register. IRTC (RTC Interval Timer) TIMECON.6 ALFLAG RTC alarm flag. TIMECON.2 ITFLAG RTC interrupt flag. WDT (Watchdog Timer) WDCON.2 WDS Watchdog timeout flag. 1 There is no specific flag for ISPI/I2CI; however, all flags for SPI2CSTAT need to be read to assess the reason for the interrupt. A functional block diagram of the interrupt system is shown in Figure 67. Note that the PSM interrupt is the only interrupt in the highest priority level. If an external wake-up event occurs to wake the ADE5166/ ADE5169/ADE5566/ADE5569 from PSM2, a pending external interrupt is generated. When the EX0 or EX1 bit in the interrupt enable SFR (IE, 0xA8) is set to enable external interrupts, the program counter is loaded with the IE0 or IE1 interrupt vector. The IE0 and IE1 interrupt flags in the TCON register are not affected by events that occur when the 8052 MCU core is shut down during PSM2 (see the Power Supply Management Interrupt (PSM) section). The temperature ADC and I2C/SPI interrupts are latched such that pending interrupts cannot be cleared without entering their respective interrupt service routines. Clearing the I2C/SPI status bits in the SPI interrupt status SFR (SPISTAT, 0xEA) does not cancel a pending I2C/SPI interrupt. These interrupts remain pending until the I2C/SPI interrupt vectors are enabled. Their respective interrupt service routines are entered shortly thereafter. The RTC interrupts are driven by the alarm and interval flags. Pending RTC interrupts can be cleared without entering the interrupt service routine, by clearing the corresponding RTC flag in software. Entering the interrupt service routine alone does not clear the RTC interrupt. Figure 67 shows how the interrupts are cleared when the inter- rupt service routines are entered. Some interrupts with multiple interrupt sources are not automatically cleared; specifically, the PSM, ADE, UART, UART2 and Timer 2 interrupt vectors. Note that the INT0 and INT1 interrupts are only cleared if the external interrupt is configured to be triggered by a falling edge by setting IT0 in the Timer/Counter 0 and Timer/Counter 1 control SFR (TCON, 0x88). If INT0 or INT1 is configured to interrupt on a low level, the interrupt service routine is reentered until the respective pin goes high. |
|
链接网址 |
| 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 |