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

Overall Flowchart

In this reference design, the cradle can achieve the following function: detect the lid closing and send different commands to a pair of third-party earbuds. The left and right earbuds respond differently to the commands, and the cradle flashes the LED once if it receives the response from the right earbud, twice if it receives the response from the left earbud, and three times if it receives responses from both earbuds. When not in communication, the Pogo pin is set to 5 V and ready to charge the earbuds. Figure 5-1 shows a simple flowchart.

GUID-20230912-SS0I-DZN0-DXNX-1VDWKGZNTF6M-low.svg Figure 5-1 Flowchart

In this design, the main() function only contains the initialization, all the functions are achieved in the interrupts