Hello,
I try to setup PDB0-ADC0 for continious sampling. Below I have attached the register setup. PDB0 and ADC are clocked with 50 MHz. I am using a S32k144.
When I init the registers I see 1 sample only. I observe that the PDB counter count up until MOD and restarts at 0.
My expectation is that at restart this triggers new sampling. Also CH0S does not show any error.
What do I miss to do? Anything special to start continious sampling or do I setup the registers not correct?
Thanks in advance for your help or hint.
Edgar
Hello Edgar,
You are bypassing the delay registers.
Try setting the PDB_CHnC1_TOS bits.
Regards,
Daniel