SPI clock issue not starting up properly on the NHS3100

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

SPI clock issue not starting up properly on the NHS3100

845 次查看
cpi-ugo
Contributor II

See below image of the SPI lines on Salae showing the glitch I believe is causing round data into on the SI line. If I put a break point and step through the SPI transfer, the glitch won't be seen.

 

Capture.PNG

标记 (3)
0 项奖励
回复
3 回复数

813 次查看
patrickgeens
NXP Apps Support
NXP Apps Support
破坏者
Hi cpi-ugo,


Can you check if the clock frequencies restrictions are met?
In SPI controller mode, the maximum SSP bitrate is half the system clock frequency.

Info can be found in the SDK doc directory: "release_mra2_12_5_nhs3152/docs/firmware/a00860.html".

Kind regards,

Patrick
0 项奖励
回复

798 次查看
cpi-ugo
Contributor II

I have indeed checked all the documents (see below) but for some reason, I can't get stable communication if using any SPI clock bit rate more than 150KHz at Sys clock 4MHz. When I increased this to 8MHZ, I was able to push 400KHz on the SPI but with very unstable especially when starting up with only the battery connected, won't even connect via NFC with a weird noise played by the phone. 

I am left to limit the clock to 150KHz which is quite slow for my application.

cpiugo_0-1670973289745.png

 

0 项奖励
回复

793 次查看
patrickgeens
NXP Apps Support
NXP Apps Support

Hi cpi-ugo,

 

The weird noise from the phone when NFC tapping is typically an indication that there is no or a malformed NDEF message in the NFC memory of the tag.

 

For the instability problem I think we need to dive into the schematic, pcb/foil layout and prototype builds. Contact "nhs-support@nxp.com" for private support.

 

Kind regards,

Patrick

 

Kind regards,

Patrick

 

0 项奖励
回复