I was working on a SD Card example from NRF SDK v16 and was wondering about the SPI interface pin mapping. The example is using the following pin configuration :
Clock Pin : 1.15 (Port : 1 , Pin : 15) MOSI Pin : 1.13 MISO Pin : 1.14 Reset Pin : 1.12
Whereas, I see that the only pins mapped on Port-1 are pin number 1,2,3 and 4. I don’t see pin number 12,13,14,15 etc.
So I tried to approach it the other way round i.e. using the WisBlock SPI pins and changing the example’s pin mapping in accordance to that.
So keeping in view the above schematics , I made the following changes :
MOSI Pin : 1.13 --> 0.02 (Port : 0, Pin : 2) MISO Pin : 1.14 --> 0.03 Reset Pin : 1.12 --> 1.02 Clock Pin : 1.15 --> (??)(USB)
In this approach, I see a problem with the clock pin, it’s not mapped to any port/pin on nrf52840.
Is the approach correct ? How can I properly map the clock pin ?