SPI communication with FXIO

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

SPI communication with FXIO

Jump to solution
909 Views
WeiCh
Contributor III

I encountered two problems in configuring FXIO for SPI communication with S32K312:


1. The baud rate configured by EB is 100KHz, but according to the measurement results, it is actually 200K. What's going on?


2. The configuration of the three parameters Cs2Cs, Clk2Cs and Cs2Clk in EB seems to be invalid for FXIO. What's going on?


The following are screenshots of the configuration and test results.

_0-1731420359526.png_1-1731420385078.png

 

0 Kudos
Reply
1 Solution
882 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @WeiCh,

 

1.

Is the system clock set precisely to one of the clock options listed in the RM?

For example:  152. Option B - Reduced Speed mode (CORE_CLK @ 120 MHz)

 

2.

This is a HW feature of the LPSPI module.

 

Regards,

Daniel

View solution in original post

0 Kudos
Reply
2 Replies
883 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @WeiCh,

 

1.

Is the system clock set precisely to one of the clock options listed in the RM?

For example:  152. Option B - Reduced Speed mode (CORE_CLK @ 120 MHz)

 

2.

This is a HW feature of the LPSPI module.

 

Regards,

Daniel

0 Kudos
Reply
878 Views
WeiCh
Contributor III

Yes,clock config is Option-B.I have found the answer in the latest version of the update record. It should be that there is a problem with the clock source selected when calculating the baud rate.Thinks!

 

0 Kudos
Reply