This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0G3507: UART、RX timeout、FIFO、API

Part Number: MSPM0G3507

Tool/software:

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1223660/am2634-functional-description-for-uart-rx-fifo-timeout-and-errata-for-timeout-interrupt

Due to the necessity of enabling FIFO for the RX timeout function of UART, the reception of variable-length data frames is not perfect due to the influence of FIFO length. Therefore, while UART is receiving data, the level state of the RX pin should be detected, similar to the approach described in the link above for RX timeout. However, using the conventional API function to read the input pin, the RX pin always reads as low level. How can I read the level state of the UART RX pin?

  • Hi,

    In MSPM0 IOMUX, the pin input function is selected by the "Input Mux" below. So it could only be selected as one of "GPIO" or  "UART RX" at a time, so you could not read the pin voltage level by GPIO read when it is used as UART RX.

    Maybe you could try to use BUSY bit in STAT register of UART to get the UART status, please find more information in Technical Reference Manual UART chapter.