| Electronic Components Datasheet Search |
|
AFEX82H1 Datasheet(PDF) 49 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
AFEX82H1 Datasheet(HTML) 49 Page - Texas Instruments |
|
49 / 115 page ![]() 6.3.5.8 IRQ Configuration for HART Communication To enable robust and error-free communicate on the HART bus, the events listed in Table 6-7 must be detected from the AFEx82H1 by the system controller in a timely manner. If the IRQ signal is not directly connected to the system controller, poll the corresponding status flags. In UART mode, the automatic dequeue of FIFO_H2U simplifies event management significantly, and not all events must be translated to IRQs. When using the HART modem with the IRQ, the IRQ features help control communication in both directions. Enable IRQ functionality by following these steps: 1. Configure the IRQ to be either edge or level sensitive using CONFIG.IRQ_LVL. See also Section 6.3.4. 2. Configure the IRQ polarity with CONFIG.IRQ_POL, as needed per the respective system. See also Section 6.3.4. 3. For SPI only mode, set CONFIG.IRQ_PIN_EN = 1 to enable IRQ functionality on the UARTOUT pin. Also, set CONFIG.UART_DIS = 1 to disable all UART functionality. 4. For UBM, use one of the two following methods: a. Set CONFIG.IRQ_PIN_EN = 1 to enable IRQ functionality on the SDO pin, or b. Set CONFIG.UBM_IRQ_EN = 1 to enable interrupts being sent UARTOUT using UBM. 5. After IRQ functionality is enabled, unmask all the required interrupt signals in the MODEM_STATUS_MASK register (set each bit = 0). Table 6-7. IRQ Sources and Uses AFEx82H1 HART STATE EVENT MODEM_STATUS FLAG ASSERTION METHOD (1) ACTION Receive RTS deasserted CTS_DEASSERT Toggle RTS pin high or set MODEM_CFG.RTS = 0. Demodulator enabled and ready to receive HART data. Carrier detect asserted CD_ASSERT Demodulator detects the HART carrier signal of valid amplitude. Expect to receive HART data. Set desired FIFO_H2U level trigger threshold. FIFO_H2U level threshold trigger FIFO_H2U_LEVEL_FLAG Automatic enqueue of FIFO_H2U by HART demodulator. Dequeue data from FIFO_H2U when level exceeds the set threshold. Prevent FIFO_H2U from being full to avoid the loss of incoming data. FIFO_H2U full FIFO_H2U_FULL_FLAG Automatic enqueue of FIFO_H2U by HART demodulator. System controller has not dequeued FIFO_H2U. Critical flag. Dequeue FIFO_H2U immediately to avoid the loss of incoming data. Carrier detect deasserted CD_DEASSERT Demodulator stops detecting the HART carrier signal of valid amplitude. Dequeue remaining data from FIFO_H2U. Monitor the empty flag to make sure that all data have been received. FIFO_H2U empty FIFO_H2U_EMPTY_FLAG Dequeue of FIFO_H2U by system controller. If using UART, wait to make sure the last character is received on UARTOUT. Transmit RTS asserted NA Toggle RTS pin low or write set MODEM_CFG.RTS = 1. Wait for clear-to-send confirmation flag. Clear to send (CTS) CTS_ASSERT RTS asserted and CD deasserted. Modulator enabled. Device starts modulating the carrier on MOD_OUT. Set desired FIFO_U2H level trigger threshold. Enqueue data into FIFO_U2H. Modulator automatically dequeues FIFO_U2H and transmits the HART data. FIFO_U2H level threshold trigger FIFO_U2H_LEVEL_FLAG Automatic dequeue of FIFO_U2H by HART modulator. Enqueue new data into FIFO_U2H when the level drops below the set threshold. Prevent FIFO_U2H from being empty to avoid a gap in transmission. FIFO_U2H full FIFO_U2H_FULL_FLAG System controller enqueue of the new data into FIFO_U2H. Critical flag. Stop enqueue of data into FIFO_U2H immediately to avoid loss of HART data. FIFO_U2H empty FIFO_U2H_EMPTY_FLAG Automatic dequeue of FIFO_U2H by HART modulator. System controller has not enqueued new data into FIFO_U2H. Critical flag in the middle of the data packet. Enqueue new data into FIFO_U2H immediately to avoid a gap in transmission. When the last character is dequeued from FIFO_U2H, wait until the character is fully transmitted on MOD_OUT before deasserting RTS. (1) For CD, RTS, ALARM, and IRQ connection choices, see Section 6.5.1. www.ti.com AFE782H1, AFE882H1 SLASF43 – DECEMBER 2023 Copyright © 2023 Texas Instruments Incorporated Submit Document Feedback 49 Product Folder Links: AFE782H1 AFE882H1 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |