Hi,Bilel,
You use FTM module to trigger PDB and PDB trigger ADC after a programmable delay. From your description, you want to sample 7 channels for one FTM triggering event, I think it is impossible.
I suppose that once FTM triggering event can sample at most 4 ADC channels. This is the solution, for KV31, there are two ADC modules:ADC0 and ADC1 module, one PDB module. each ADC module supports Ping-Pong mode, for example, for ADC0 module, there are two ADC Status and Control Registers:ADC0_SC1A and ADC0_SC1B. The ADC0_SC1A can specifies one ADC0 analog channel, the ADC0_SC1B can specifies another ADC0 channels. The ADC1 module has two ADC Status and Control Registers:ADC1_SC1A and ADC1_SC1B.
The PDBCH0DLY0 can trigger the analog channel specified by ADC0_SC1A, the PDBCH0DLY1 can trigger the analog channel specified by ADC0_SC1B. The PDBCH1DLY0 can trigger the analog channel specified by ADC1_SC1A, the PDBCH1DLY1 can trigger the analog channel specified by ADC1_SC1B. It is required that the time difference between PDBCH0DLY1 and PDBCH0DLY0 should be greater than one ADC conversion time.
The PDB supports Back-to-Back ADC conversion, but the restriction is at most 4 ADC channels.
In conclusion, once FTM triggering event can trigger 4 ADC samples, two ADC0 channels, two ADC1 channels.
Hope it can help you.
BR
XiangJun Rong