SPI BUS DISCUSSION about SPI frame interval time

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPI BUS DISCUSSION about SPI frame interval time

1,155件の閲覧回数
db16122
Contributor I

Hi NXP colleague,

For SPI performance about S32G, there are some notes need to check.
We are using the SDSPI interface to connect with S32G that means crypto IC has SD interface and we are using 4 line SD protocol mode to connect as SPI bus.
That can explain why the transfer rate is relatively low but we already hardly work with CONTI for a month to improve the effiency from LINUX kernal level.
So from software driver side, the seems there are not too much we can improve and we already use interrupt mode :(

For hardware side, usually there are interval between each clock cycle, it may be config to reduce if replace from CS/GPIO to PCS.
So if SPI config can be used to improve the gap between each data cycle, it will be much helpful. :)

SPI.jpg

0 件の賞賛
返信
5 返答(返信)

1,054件の閲覧回数
db16122
Contributor I

Understand, is it possible to control CS to be deasserted at each SPI frame? by hardware PCS control or by internal high level linux high level software setting?

0 件の賞賛
返信

1,050件の閲覧回数
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

At this moment, the "Spi_Ip_Transfer_S32G274A_M7" project provided in the RTD for S32G2/3 is doing the deassert of the CS on each SPI Frame (8 bits, as configured in the project).

This should give the start point on trying to reduce the interval between frames, to see if you can find a feasible time for your specific application.

Please, let us know if this information was helpful or not.

0 件の賞賛
返信

1,077件の閲覧回数
db16122
Contributor I

how about the time interval between different time frame besides CS2CS?

We need to config the setting to reduce the time between each time frame. Is it possible to reduce them with PCS?

Right now the setting include CS2CS, CLK2CS, CS2CLK, but how about CLK2CLK?

0 件の賞賛
返信

1,070件の閲覧回数
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

At this moment, the S32G platform does not have a register to modify what you are suggesting for a CLK2CLK parameter. So, this is not feasible under the current platform architecture.

The suggestion for lowering CS2CS we gave it is because we saw a decrease in the period between each SPI transfer.

For our example, CS is being deasserted on each transaction, that is why we are seeing this. For your example, we are seeing that on each transaction, CS is not being deasserted, but the period seems to be dictated by the same CS2CS/CLK2CS/CS2CLK parameters.

Please, let us know if this information was helpful or not.

0 件の賞賛
返信

1,116件の閲覧回数
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Are you using S32DS for this application? If so, inside the "Peripherals" ConfigTools will be the Spi_Ip_n module. Within SpiDriver tab (inside Spi_Ip_n module) will be an option called "SpiTimeCs2Cs" in which defines the width of the CS pulse (when idle). You can try and lower this time to your needs (and inside the specs defined in the S32G datasheet). For my case, it helped reduce the interval between one transaction and another.

Please, let us know if this information helps yo or not.

0 件の賞賛
返信