Frequencies not in sync

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Frequencies not in sync

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

Labels (1)
0 Kudos
Reply
5 Replies

829 Views
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 Kudos
Reply

806 Views
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 Kudos
Reply

790 Views
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 Kudos
Reply

721 Views
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 Kudos
Reply

717 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @MohitManvar,

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

 

Best regards,

Daniel

0 Kudos
Reply