Hello,
I am working on an application using the [S32k322] where I use the eMIOS timer to trigger the BCTU every 100 µs to read analog data.
I am observing a strange behavior between the two BCTU modes:
Control Mode: When the ADC CTU mode is set to Control Mode, the ADC conversions are completely stable. The data read via FreeMASTER is clean and free of noise or glitches.
Trigger Mode: When I switch the ADC CTU mode to Trigger Mode (keeping the 100 µs eMIOS trigger identical), the sampled analog data becomes noisy and exhibits noticeable glitches in FreeMASTER.
Are there specific architectural configurations, timing constraints, or register settings (such as trigger delays, FIFO configurations, or clock synchronization) required for Trigger Mode to prevent this noise?
Thank you for your help.
Output with ADC ctu mode : Trigger Mode
output with ADC ctu mode : Control Mode
Hi@Stark_
could you please share the test project and i will test it on myside.
Hi @Senlent ,
Thanks for the response. My ADC clock is 160MHz, and I've attached my ADC configuration and register values below.
Clock
ADC Configuration
Output with ADC ctu mode : Trigger Mode
output with ADC ctu mode : Control Mode
Hi@Stark_
Based on the configuration screenshot you provided, there are some configuration issues, specifically the division ratios for the module clock and calibration clock.
The ADC clock configuration must strictly follow the table below.
please change it and test again,
Hi @Senlent
I have attached test code.
is it possible to work on BCTU and normal conversion for the some selected channels (ADC_Instance0 and ADC_Instance1)?