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: MSPM0G UART break mode

Part Number: MSPM0G3507

Tool/software:

Hi,

I need to insert UART break mode for MSPM0 UART interface with DAC device supporting UART in break mode. 

Is there any hardware support in MSPM0 MCU hardware to insert UART break mode?

Or having the TX pin turned into GPIO mode momentarily for inserting UART break mode is the only option?

Regards,

Bhushan

  • According to TRM (SLAU846A) Table 16-42, you can generate a Break by setting LCRH.BRK=1. You have to time it (11 bit-times) yourself. It's intended for LIN, but I don't see anything preventing you from using it otherwise. I see Driverlib functions "DL_UART_[enable/disable]LINSendBreak" [dl_uart.h] which do this.

    For receiving a Break, there's a BRKERR indicator [Ref TRM Table 16-2]

    [Edit: Minor clarification]

  • Hi Bhushan,

    Totally agree with Bruce.

    For send break, you can use LCRH register.

    Fullscreen
    1
    2
    3
    DL_UART_enableLINSendBreak(UART_0_INST);
    delay_cycles(16000);
    DL_UART_disableLINSendBreak(UART_0_INST);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Regards,

    Zoey

  • Thanks Bruce for super fast response.