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.
Part Number: MSP432P401R
Tool/software: Code Composer Studio
Do we have any example codes for setting up the ADC14 (in MSP432) to work as "Pulse Sample Mode"? This mode is described in page-667 of SLAU356D (MSP432P4xx Family, Technical Reference Manual).
Thanks!
It's not clear which source you're looking to use, but the "adc14_single_conversion_repeat_timera_source"
example configures the ADC to use TimerA as a trigger, which operates as a pulsed sample. This code is available
from Resource Explorer at dev.ti.com at the following path:
SimpleLink MSP432 SDK -> Examples -> Development Tools -> MSP-EXP432P401R -> Driverlib
A snippet of the code is shown below for reference:
/*
* Configuring ADC Memory, repeat-single-channel, A0
*/
MAP_ADC14_configureSingleSampleMode(ADC_MEM0, true);
/*
* Configuring ADC Memory, reference, and single ended conversion
* A0 goes to mem0, AVcc is the reference, and the conversion is
* single-ended
*/
MAP_ADC14_configureConversionMemory(ADC_MEM0, ADC_VREFPOS_AVCC_VREFNEG_VSS,
ADC_INPUT_A0, false);
/*
* Configuring the sample trigger to be sourced from Timer_A0 CCR1 and on the
* rising edge, default samplemode is extended (SHP=0)
*/
MAP_ADC14_setSampleHoldTrigger(ADC_TRIGGER_SOURCE1, false);
/*
**Attention** This is a public forum