SLAAEO6A September   2024  – August 2025 MSPM0C1105 , MSPM0C1106 , MSPM0G3507 , MSPM0H3216

 

  1.   1
  2. Description
  3. Required Peripherals
  4. Design Steps
  5. Design Considerations
  6. Software Flow Chart
  7. Application Code
  8. Results
  9. Additional Resources
  10. E2E
  11. 10Revision History
  12.   Trademarks

Application Code

The application code cycles through three different comparator configurations by calling the three functions: update_comp_configA(), update_comp_configB(), and update_comp_configC(). Each time after reconfiguring the comparator, the application code delays 15μs for the propagation and settling delay before reading the comparator output and setting the respective GPIO.

MSPM0G3507, MSPM0L1306 Scanning Comparator
                    Main.C Figure 6-1 Scanning Comparator Main.C