Hello,
I am working on a motor control project and in order to optimize the control, I now need to trigger ADC twice within a PWM cycle for sampling. Specifically, this is the case.
ADC0_ Ch4 and ADC1_ CH15 is converted at the time when the PDB starts counting, and after the conversion is completed, an ADC1 interrupt is generated to read ADC data within the interrupt.
The period value [ticks] of PWM is 5000, and when the PDB count reaches 1500, ADC1_ Ch0 starts the conversion, and when the PDB count reaches 2500, ADC0_ Ch4 and ADC1_ CH15 starts the conversion, and after the conversion is completed, an ADC0 interrupt is generated to read ADC data within the interrupt. The triggering process is shown in the following figure
Currently, adding a second trigger sampling will result in both triggers failing. Please help me
thanks
解決済! 解決策の投稿を見る。