| 数据搜索系统,热门电子元器件搜索 |
|
ADE7763ARS 数据表(PDF) 18 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADE7763ARS 数据表(HTML) 18 Page - Analog Devices |
|
18 / 56 page ![]() ADE7763 Rev. A | Page 18 of 56 times the maximum absolute value observed on the Channel 2 input. The contents of IPEAK represent the maximum absolute value observed on the Channel 1 input. Reading the RSTVPEAK and RSTIPEAK registers clears their respective contents after the read operation. INTERRUPTS Interrupts are managed through the interrupt status register (STATUS[15:0]) and the interrupt enable register (IRQEN[15:0]). When an interrupt event occurs, the corresponding flag in the status register is set to Logic 1—see the Interrupt Status Register section. If the enable bit for this interrupt in the interrupt enable register is Logic 1, the IRQ logic output will go active low. The flag bits in the status register are set irrespective of the state of the enable bits. To determine the source of the interrupt, the system master (MCU) should perform a read from the status register with reset (RSTSTATUS[15:0]). This is achieved by carrying out a read from Address 0Ch. The IRQ output goes logic high after the completion of the interrupt status register read command— see the Interrupt Timing section. When carrying out a read with reset, the ADE7763 is designed to ensure that no interrupt events are missed. If an interrupt event occurs as the status register is being read, the event will not be lost and the IRQ logic output will be guaranteed to go high for the duration of the interrupt status register data transfer before going logic low again to indicate the pending interrupt. See the next section for a more detailed description. Using Interrupts with an MCU Figure 38 shows a timing diagram with a suggested imple- mentation of ADE7763 interrupt management using an MCU. At time t1, the IRQ line goes active low, indicating that one or more interrupt events have occurred. Tie the IRQ logic output to a negative edge-triggered external interrupt on the MCU. Configure the MCU to start executing its interrupt service routine (ISR) when a negative edge is detected on the IRQ line. After entering the ISR, disable all interrupts by using the global interrupt enable bit. At this point, the MCU IRQ external interrupt flag can be cleared to capture interrupt events that occur during the current ISR. When the MCU interrupt flag is cleared, a read from the status register with reset is carried out. This causes the IRQ line to reset to logic high (t2)—see the Interrupt Timing section. The status register contents are used to determine the source of the interrupt(s) and, therefore, the appropriate action to be taken. If a subsequent interrupt event occurs during the ISR, that event will be recorded by the MCU external interrupt flag being set again (t3). Upon the completion of the ISR, the global interrupt mask is cleared (same instruction cycle) and the external interrupt flag causes the MCU to jump to its ISR again. This ensures that the MCU does not miss any external interrupts. IRQ GLOBAL INTERRUPT MASK SET ISR RETURN GLOBAL INTERRUPT MASK RESET CLEAR MCU INTERRUPT FLAG READ STATUS WITH RESET (0x05) ISR ACTION (BASED ON STATUS CONTENTS) MCU INTERRUPT FLAG SET MCU PROGRAM SEQUENCE t1 t2 t3 JUMP TO ISR JUMP TO ISR Figure 37. Interrupt Management SCLK DIN DOUT IRQ t11 t11 t9 t1 READ STATUS REGISTER COMMAND STATUS REGISTER CONTENTS DB7 DB7 DB0 CS 00 0 0 01 0 1 DB0 Figure 38. Interrupt Timing |
|
链接网址 |
| 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 |