This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0G3507: Code examples for "simple" functions

Part Number: MSPM0G3507

Hi, helping a customer with this new family of devices. Can you please identify (or copy and paste) the example code needed for the following "analog" functions to be replaced with the M0?

  • Voltage monitoring (ADCs for telemetry)
  • Power Supply sequencing
  • Fault detection (Comparators)
  • Adjustable voltage reference (DAC)
  • Serial bus for telemetry/fault readout (I2C)

Thanks in advance.

  • Hi Kannan,

    Here are the examples in the SDK that will help as a starting point.

    • adc_12_monitor_supply
    • The power sequencing is a subsystem that is a work in progress so there is no current example available. The idea would be to set GPIOs within specific times. If needed you can set the ADC up to monitor the supplies (make sure not to violate our part spec on input voltage). Timx_timer_mode_periodic_sleep would help here.
    • comp_lp_dac_vref_internal would be beneficial if you need a cross at a specific dac, this uses the internal 8 bit dac in the comparator.
    • dac12_fifo_timer_event will do a sawtooth waveform based on a timer input, this details how to adjust the dac.
    • any of the I2C examples.

    I highly recommend just looking at the SDK itself as a lot of the example names are self explanatory, if more information is required then you can read the readme.

    Regards,

    Luke