I am working with the NXP S32K144 microcontroller and need help configuring ADC triggering. I am using the FTM3 module to generate a 10 kHz PWM signal, which also provides an initialization trigger when the counter reaches the MOD value.
I am utilizing both ADC modules (ADC0 and ADC1) and have the following requirements:
1. ADC0 should be triggered at every PWM cycle (10 kHz) but at the peak or trough of the PWM signal, avoiding triggers during the rising or falling edges.
2. ADC1 should be triggered at 1 kHz (every 10 PWM cycles) and also avoid being triggered near the PWM edges.
Is there a way to achieve this configuration using the FTM3 or PDB modules? Any guidance or examples would be appreciated.