Maximum SPI frequency in VLPS?

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

Maximum SPI frequency in VLPS?

跳至解决方案
1,357 次查看
nathand
Contributor II

I have my S32K148 configured as a SPI slave, and am using VLPS mode with DMA wake-up after a SPI transfer completes (after which, it stays in run until it receives an explicit command over SPI to go back to VLPS). I'm expecting that I need to reduce the SPI clock frequency (generated by the master) while in VLPS, but in testing I'm finding that transfers succeed at full speed (SPI data clock at 12mhz) in VLPS. Why? Am I doing something wrong? Is this an indication I'm not successfully entering VLPS? Does the DMA wake-up enable the full-speed clock fast enough to allow the transfer to succeed? At what point in the SPI transfer does the DMA wake-up begin?

More details:
In normal run mode I'm clocking the SPI peripheral at 48mhz through FIRC, and the SPI master generates a 12mhz data clock. In VLPS, I set the SPI peripheral clock source to SIRCDIV2, which is SIRC/2 (4mhz) so I expect I can run SPI transfers at 2mhz.

0 项奖励
回复
1 解答
1,341 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Nathan,

I'm sorry for the delay.

The LPSPI VLPR specification applies to VLPS as well.

We can't guarantee proper functionality of the module at higher bit rates.

S32K1xx Datasheet, rev.13

danielmartynek_0-1606988124791.png

 

DMA wake-up operation is explained in details in the RM, rev12.1 Section 39.4.3.

You can verify the MCU is in VLPS by measuring the VDD consumption and BUS_CLK on an CLKOUT pin.

 

Regards,

Daniel

 

 

 

 

 

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,336 次查看
nathand
Contributor II

Thanks. I'm not sure what I'd been doing wrong, but I now have more of my system working, and found that I do need to reduce the SPI data clock frequency when the MCU is in VLPS.

0 项奖励
回复
1,342 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Nathan,

I'm sorry for the delay.

The LPSPI VLPR specification applies to VLPS as well.

We can't guarantee proper functionality of the module at higher bit rates.

S32K1xx Datasheet, rev.13

danielmartynek_0-1606988124791.png

 

DMA wake-up operation is explained in details in the RM, rev12.1 Section 39.4.3.

You can verify the MCU is in VLPS by measuring the VDD consumption and BUS_CLK on an CLKOUT pin.

 

Regards,

Daniel

 

 

 

 

 

 

0 项奖励
回复