| Electronic Components Datasheet Search |
|
AFEX82H1 Datasheet(PDF) 50 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
AFEX82H1 Datasheet(HTML) 50 Page - Texas Instruments |
|
50 / 115 page ![]() 6.3.5.9 HART Communication Using the SPI HART bus communication activity is reported to the host controller through the IRQ signal routed to the UARTOUT pin and MODEM_STATUS register. Read the MODEM_STATUS register to determine the source of the IRQ when an IRQ is received. If the UARTOUT pin is not connected, poll the status registers regularly through the SPI. To transmit data, set up the desired FIFO_U2H level thresholds using FIFO_CFG.U2H_LEVEL_SET. Assert the RTS. After CTS_ASSERT is set, begin to fill FIFO_U2H. Enqueue enough data into FIFO_U2H to fill the FIFO above the set threshold level. The HART modulator automatically dequeues the data from FIFO_U2H and transmits the data on MOD_OUT. When FIFO_U2H level drops below the set threshold, an IRQ triggers, indicating that new data bytes can be enqueued without losing any data. After the last set of data have been enqueued into FIFO_U2H, an IRQ event triggered by the level flag can be ignored. Wait for the IRQ event triggered by FIFO_U2H_EMPTY_FLAG. Deassert the RTS after required delay; see also Section 6.3.5.6. When the RTS is deasserted, the CTS_DEASSERT bit is set. CTS_DEASSERT is an informational bit. To receive data, set up an IRQ event based on CD_ASSERT to know when the carrier is detected and the new data bytes are expected. Also, set up the additional IRQ events to trigger each time FIFO_H2U_LEVEL_FLAG is set. Select the desired level of FIFO_H2U. Dequeue the data from FIFO_H2U every time the level exceeds the set threshold. Also, set up IRQ event trigger based on CD_DEASSERT to know when all the data have been received. At this point, monitor FIFO_H2U.EMPTY_FLAG when dequeuing each character to know when FIFO_H2U is empty and all the data bytes have been dequeued and transmitted to the microcontroller. Alternatively, the CD pin can be directly connected to the microcontroller to monitor the status of the HART bus. In this configuration, mask CD_ASSERT flag by setting MODEM_STATUS_MASK.CD_ASSERT bit = 1 to prevent CD_ASSERT from generating an IRQ event. 6.3.5.10 HART Communication Using UART In SPI plus UART mode, the UART data are transmitted and received at 1200 baud, which is matched to the HART FSK input and output signals. Both SDO and UARTOUT pins are used; therefore, the IRQ functionality is not available in SPI plus UART mode. FIFO_H2U level monitoring is not required because any HART data received by the demodulator and enqueued into FIFO_H2U are automatically dequeued and transmitted on UARTOUT. FIFO_U2H level monitoring is also not required if HART bus communication activity is interfaced to the host controller through the CD and RTS pins. The host controller can properly time the RTS pin to transmit the HART data when no carrier is detected on the bus. If the CD and RTS pins are not used in SPI plus UART mode, the host controller can periodically poll the MODEM_STATUS register through the SPI to detect when the carrier is not present on the HART bus, and assert the request to send by setting MODEM_CFG.RTS bit = 1. In UBM, the UART data are transmitted and received at 9600 baud. The HART data characters are interleaved with break commands for register map access or interrupt reporting; see also Section 6.5.4.1.1. Similar to SPI plus UART mode, monitoring of FIFO_H2U and FIFO_U2H levels is not required. The CD and RTS pins are available to interface the HART bus activity with the microcontroller. IRQ functionality is also available on the SDO pin. If the SDO pin is connected to the microcontroller, the IRQ event based on CD_ASSERT can be set to report when the carrier is detected. In this case, CD pin connection to the microcontroller is not required. Similarly, RTS pin connection is not required if MODEM_CFG.RTS is used to issue a request to send. The SDO pin connection to the microcontroller is also not required if the microcontroller can periodically poll the MODEM_STATUS register using break commands, and monitor all the required flags. AFE782H1, AFE882H1 SLASF43 – DECEMBER 2023 www.ti.com 50 Submit Document Feedback Copyright © 2023 Texas Instruments Incorporated 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 |