SLAAEO6 September   2024 MSPM0G3507

 

  1.   1
  2. Description
  3. Required Peripherals
  4. Compatible Devices
  5. Design Steps
  6. Design Considerations
  7. Software Flow Chart
  8. Application Code
  9. Results
  10. Additional Resources
  11. 10E2E
  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 7-1 Scanning Comparator Main.C