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

Power and Communication Logic

The charging and communication between the earbuds and the cradle happen on a single line. For example, Figure 4-1 shows the communication and charging waveforms from a third-party TWS earbud. The red line shows the output of the hall sensor, and the voltage drop indicates the lid closing. The black line is measured at the right ear pogo pin. The orange line shows the digital information contained in the black line decoded using UART protocol, 1200 baud rate. When charging the earbuds, the Pogo pin is working at 5V. However, when the TWS cradle tries to communicate with the earbuds, the logic high is 3.3V.

GUID-20230912-SS0I-JLHD-Q50X-DWZRRZVCHGG7-low.png Figure 4-1 Waveforms From a Third-Party TWS Earbud

It can be seen that by default, the Pogo pin is 5V and is charging the earbuds. with the lid closing, the TWS case sends a fixed 5V-0 V-5V pattern to indicate the start of a command. Then the case sends 0x9A5A and the earbuds respond with 0x6A.

The pattern and design above are for reference only, the customer can customize their communication and power logic, and the TWS case can send customized commands/information to the earbuds, for example, case battery percentage, earbuds/case SN, charging status, and so forth.

Figure 4-2 shows reference power and the communication design based on MSPM0.

GUID-20230912-SS0I-TLNK-W6DT-2HSVTSFQRKHZ-low.png Figure 4-2 Reference Power and Communication Design Based on MSPM0

As shown in Figure 4-2, switches S1 and S2 control when to charge the earbuds and when to start the communication. When S1 is closed and S2 is open, the cradle charges the earbuds, and when S2 is closed and S1 is open, the cradle can communicate with the earbuds with a 3.3V logic high.

As mentioned before, the MSPM0L series supports two UART peripherals, hence it can communicate with the left and right earbuds simultaneously. The corresponding design can be seen in the figure below. In this design, four switches are used to control the left and right earbuds separately, this is ideal for applications where a great amount of information needs to be transformed.

GUID-20230912-SS0I-39ZB-NX0F-NPXSDZHGVZR8-low.svg Figure 4-3 Reference Design 1

However, to save costs and resources, the following designs can also be used:

GUID-20230912-SS0I-FZL4-6VRP-9CZG079GQCHC-low.svg Figure 4-4 Reference Design 2
GUID-20230912-SS0I-MMDZ-76VT-LLCC4HGSFMPT-low.svg Figure 4-5 Reference Design 3

In Figure 4-4, the left and right earbuds share the same MSPM0 UART peripheral. Hence, they cannot communicate with the TWS case simultaneously, but they still share separate communication lines. While in Figure 4-5, the Pogo pins of the left and right earbuds are connected together, meaning they will receive the same message. This is like I2C communication where the TWS case is the master device and two earbuds are slave devices, and they share the same data line.