* bellow figure is from [S32K3xx Reference Manual, Rev. 7, 05/2023]
Solved! Go to Solution.
Hello,
Both methods could work. It depends on what your needs are. Whether you do one shot or scan your first conversion should be the motor currents but for less timing sensitive conversions you can follow the motor current conversions. By having less time sensitive conversion after the motor current conversion can make the ADC configuration simpler than doing everything done in one shot.
Regards,
John
Supply self-test executes in a row whilst capacitive self-test is interleaved into normal ADC conversion sequence as you can see in the example in RM, section 61.3.17.2.1:
Hi, the flow you shown seems to be for Scan mode? in 61.3.17.2.1, the scan-mode 15-steps covers all AlgorithmS and AlgorithmC, while one-shot-mode 11 steps only covers AlorithmS, and I wonder how I do Algorithm-C in one-shot mode.
In single shot user defines which S or C step is executed after normal conversion.
But this way you cannot achieve requirement for S algorithm supply self-test:
In other words - it is needed to use Scan mode for executing of S algorithm.
Thanks for reply ~~
* currently, in my motor-control system I need to use 3 ADC-channels to sample 3 phases current(voltage/resistance), I plan to put these 3 channels to a chain. I think I need to use one-shot mode to trigger this chain in every PWM period, and I planned to algorithm S/C to test the accuracy of Bandgap and VREFH
Based on your answer:
* If I use Scan mode, the ADC sampling is continuous and always ? --- could I use scan-mode by some-method to implement the ‘trigger-strategy’ shown in the figure
* If I can only use one-shot-mode (so I can not use algorithm S), then I plan to take Bandgap and VREFH sampling as ‘normal-conversion’ as shown in the figure -- is it recommended ?
* do you have some recommended ADC self-test strategy for for motor-control system
Hello,
For motor control applications during run time some methods that can be used to verify that the motor current readings are valid and therefore the ADCs are accurate are:
1. Out of range checking
2. Checking that the sum of the motor currents are equal to zero.
3. Correlate the motor current readings with the what is expected by what was commanded by the software.
Regards,
John
Hello,
Both methods could work. It depends on what your needs are. Whether you do one shot or scan your first conversion should be the motor currents but for less timing sensitive conversions you can follow the motor current conversions. By having less time sensitive conversion after the motor current conversion can make the ADC configuration simpler than doing everything done in one shot.
Regards,
John