Hello, I am using S32K142 Eval board. I am using FTM_PWM for generation of pwm frequency and FLEX_IO for I2S. but when I configure both together and running code, it looks like both frequencies (I2S frequency and Pwm frequency) not in synchronization. Please suggest a correct procedure how can I Generate both with proper sync. Thanks!!
Hi @MohitManvar,
How do you configure the clocks and the peripherals, the PWM period and baudrate?
Thanks,
BR, Daniel
Hello @danielmartynek
I used peripheral option from ToolConfig for peripheral and clock configuration.
and following are pwm configuration:
I2S config:
please let me know how can I synchronise all frequencies.
Thanks!!
Hi @MohitManvar,
I'm not sure what is the actual use case here, maybe you can elaborate on the description.
To have the clocks of the modules synchronized, select the same source of the functional clock for the two modules, for example SOSC.
The FTM module has Initialization trigger (INIT_TRG) that is generated at the start of each FTM (PWM) period.
And EXT_TRIG that is generated on an FTM channel match.
This triggers can be routed from FTM through TRGMUX to FlexIO and be used as triggers for the I2S transfer.
Regards,
Daniel
Hello,
We want a dedicated person contact details who can help us for future queries and problems.
I am working in HELLA INDIA, Pune and we are using S32K142 for our project. So kindly Help me to provide person details.
you can contact me on mohit.manvar@forvia.com
Thanks and waiting for your response.
Hi @MohitManvar,
Please create a ticket or contact our commercial support team via the chat.
Best regards,
Daniel