Hello Team,
Please help me to trigger the ADC channel of S32K148 by FTM4 PWM channel in rising edge.
Please provide Configuration details in processor Expert tool.
Thanks & Regards,
Sachin N
Tata Technologies LTD
Hi,
you can refer to some motor control ref. design, e.g. https://www.nxp.com/design/development-boards/automotive-motor-control-solutions/arm-based-solutions.... It uses FTM-PDB-ADC synchronization.
You can also refer to below example
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-PDB-ADC-DMA-S32DS-ARM-2018-R1/ta-p/...
PDB is triggered by LPIT, but you can add FTM module generating PWM signal and modify TRGMUX to route FTM external trigger to PDB. FTM ext trigger is generated when the channel (n) match occurs (FTM counter = C(n)V), so must be enabled in FTM module configuration.
BR, Petr