SPI CS-to-clock delays ? #2037
-
I'm trying to get a PN532 to work using SPI. It seems to respond but the data I receive seems to not be correct. In my searches, I stumbled upon the topic of 'CS-to-clock delays' in The SpiDevice I use is from CS-to-clock delaysMany chips require a minimum delay between asserting CS and the first SCK edge, and the last SCK edge and deasserting CS. Drivers should NOT use Operation::DelayNs for this, they should instead document that the user should configure the delays when creating the SpiDevice instance, same as they have to configure the SPI frequency and mode. This has a few advantages: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The hardware supports it, it just needs to be exposed in the API. Each chip has varying amount of support. You're looking for SPI_CS_SETUP in the TRMs. |
Beta Was this translation helpful? Give feedback.
The hardware supports it, it just needs to be exposed in the API.
Each chip has varying amount of support. You're looking for SPI_CS_SETUP in the TRMs.