Frequencies not in sync

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Frequencies not in sync

894 次查看
MohitManvar
Contributor III

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!!

标签 (1)
0 项奖励
回复
5 回复数

839 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @MohitManvar,

How do you configure the clocks and the peripherals, the PWM period and baudrate?

 

Thanks,

BR, Daniel

0 项奖励
回复

816 次查看
MohitManvar
Contributor III

Hello @danielmartynek 

 

I used peripheral option from ToolConfig for peripheral and clock configuration.

MohitManvar_0-1693471529291.png

and following are pwm configuration:

MohitManvar_1-1693471649461.png

I2S config:

MohitManvar_2-1693471732064.png

 

please let me know how can I synchronise all frequencies.

 

Thanks!!

0 项奖励
回复

800 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

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.

danielmartynek_0-1693485369333.png

danielmartynek_1-1693485413691.png

 

The FTM module has Initialization trigger (INIT_TRG) that is generated at the start of each FTM (PWM) period.

danielmartynek_2-1693485783122.png

And EXT_TRIG that is generated on an FTM channel match.

danielmartynek_0-1693486564890.png

 

This triggers can be routed from FTM through TRGMUX to FlexIO and be used as triggers for the I2S transfer.

danielmartynek_3-1693485854692.png

 

Regards,

Daniel

 

 

0 项奖励
回复

731 次查看
MohitManvar
Contributor III

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.

 

0 项奖励
回复

727 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @MohitManvar,

Please create a ticket or contact our commercial support team via the chat.

 

Best regards,

Daniel

0 项奖励
回复