S32K144 FLEXSPI/LPSPI CS pin

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

S32K144 FLEXSPI/LPSPI CS pin

ソリューションへジャンプ
2,308件の閲覧回数
antoine_monmarc
Contributor V

Hello,

I'm using spi_pal demo from SDK S32DS_ARM_v2018.R1.

The master is configured to use FLEXIO SPI.

I have a question related to the CS pin. As you can see on the picture below, the CS is disabled between every bytes.

pastedImage_1.png

Is there a way to enable the CS pin as long as the master has data to transmit?

I looked into the FLEX SPI driver but I'm not familliar with it.

From Master side (running on another S32k148EVB board), it seems that the LPSPI IRQ is not triggered when the CS is enabled/disabled. I tryed to confirgure the interrupt on PTB0 using INT_SYS_EnableIRQ and INT_SYS_InstallHandler but it seems that it's never triggered.

Aslo the lpspi Callback is not triggered when the CS pin status change.

0 件の賞賛
返信
1 解決策
2,056件の閲覧回数
razva_tilimpea
NXP Employee
NXP Employee

Hi,

This feature is not available in Flexio, but you can use it on LPSPI. Please switch to LPSPI and select continuous mode.

In this mode CS is assert for all frames which are configured in your sending function.

I don't get exactly what are you trying to do with with the next SPI. Why both of them are masters? 

If PTB0 is routed to Flexio you can't use it as GPIO.

Best regards,

Razvan

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,056件の閲覧回数
antoine_monmarc
Contributor V

Hello,

Yes by changing the master from Flexio to LPSPI we were able to use the continuous mode.

thank you.

0 件の賞賛
返信
2,057件の閲覧回数
razva_tilimpea
NXP Employee
NXP Employee

Hi,

This feature is not available in Flexio, but you can use it on LPSPI. Please switch to LPSPI and select continuous mode.

In this mode CS is assert for all frames which are configured in your sending function.

I don't get exactly what are you trying to do with with the next SPI. Why both of them are masters? 

If PTB0 is routed to Flexio you can't use it as GPIO.

Best regards,

Razvan

0 件の賞賛
返信
2,056件の閲覧回数
nxf47370
NXP Employee
NXP Employee

Hi, Razvan-nicolae,

I noticed the S32K1xx RM Chapter 52.5.3" For CPHA=1, the select can remain asserted for multiple transfers and the timer status flag can be used to indicate the end of the transfer."  Does it mean that it can enable the CS pin as long as the master has data to transmit? If not, what does it mean?

Thanks, BR,

Han

0 件の賞賛
返信