SLAAEF8 January   2024 MSPM0L1105 , MSPM0L1105

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Function Explanation
  6. 3Single Wire UART
    1. 3.1 Background
  7. 4Power and Communication Logic
  8. 5Software
    1. 5.1 Overall Flowchart
    2. 5.2 IOMUX
    3. 5.3 Power/Communication Software Design
    4. 5.4 Other Resources
  9. 6Hardware
    1. 6.1 Test Results
  10. 7References

Background

Standard UART devices use receive (RXD) and transmit (TXD) connections to establish separate paths for sending and receiving data between multiple devices, hence at least two wires are used in a standard UART communication, see Figure 3-1.

GUID-20230912-SS0I-M1HS-HX1K-GVVFNNX78BLR-low.svg Figure 3-1 Standard UART Communication

A single-wire UART is a variation of the standard UART protocol that uses only one wire for both transmitting and receiving data. This can be useful in applications where the number of available pins is limited, like in the TWS application. As shown in Figure 3-2, with TXD and RXD on each device physically combined, two devices can communicate using only one physical wire.

GUID-20230912-SS0I-8SN7-K9PC-DGSTD6XXNZQS-low.svg Figure 3-2 Single-Wire UART Communication

Figure 3-3 references single wire UART based on MSPM0.

GUID-20230912-SS0I-8BTQ-FG37-NSMRMDLW3B8Q-low.png Figure 3-3 Reference Single Wire UART Design Based on MSPM0

In Figure 3-3, the M0_UART_T/RXD connects to the I/Os of MSPM0 that support the UART peripheral. MSPM0L series supports two individual UART modules, meaning the left and right earbuds can communicate with the TWS case simultaneously, if needed. Unlike standard UART TXD I/O that has a push-pull structure, in this application, the UART TXD I/O structure needs to be open-drain to achieve the wired-AND logic. A pull-up resistor and 3.3V power rail provide the logic high voltage. RXD is high-Z by default, and when TXD is high-Z, the earbuds will sense high (3.3V), when TXD is GND, the earbuds will sense low (0V).