2018-09-18 05:21 PM
I have ADC synchronized with PWM and it saves data to buffer. PWM is set to be stopped at debugging. It works well until stop at breakpoint.
When I debug program and start from breakpoint, the ADC generates incorrect sequence.
How can I fix it?
Can I stop ADC at debugging?
Thank you.
2018-09-19 01:36 AM
Hello Anton ,
I am going to check with experts.
Best regards
Erwan
2018-09-19 01:39 AM
Which SPC5 family do you use ?
2018-09-19 08:41 PM
Hello Erwan,
Thank you for your reply.
I use SPC560P34
2018-10-11 02:28 AM
Hello Anton ,
When the SW is stopped,if PWM HW triggers are still active,ADC will go on to convert which HW trigger event.
Therefore, to debug 2 solution :
- no HW trigger group active (call Adc_DisableHardwareTrigger for each active group)
Or
- Disable all PWM signals which trigger the CTU for ADC
Best regards
Erwan