hello
Ftm0 in s32k144_ PWM triggers PDB0 PDB1 through TRGMUX and pre triggers adc0 adc1. It is expected that by closing the trigger in the adc1 interrupt and reading the conversion results of ADC0 and ADC1, the trigger will be opened in the PDB interrupt, so that the PDB pre triggers ADC continuously in a loop.
Now, there have been PDB error interrupts throughout this process, and ADC interrupts have not been generated. Please help me take a look at the issue
Thanks!
已解决! 转到解答。
Hi,
you need to read all ADC results that are triggered/converted. I see 3 channels are triggered, but you read just 2 result registers. In this case lock of pretrigger can happen and error generated.
BR, Petr
Hi,
you need to read all ADC results that are triggered/converted. I see 3 channels are triggered, but you read just 2 result registers. In this case lock of pretrigger can happen and error generated.
BR, Petr
Hi,
yes, that is possible. The PDB trigger source selection is implemented through the TRGMUX module, so you can select trigger signal form PWM module (FTM). And then you can set pretrigger delays in PDB to sample channel twice.
BR, Petr