This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PSEL.MOSI How to select MOSI pins? Need clarification.

I'm looking at the datasheet for the NRF52832 because I'll be using it with a Raytac module and I'd like to know for sure how the SPI pins are set.

I see in the datasheet there are registers such as PSEL.MOSI, PSEL.MISO etc and these registers are 32 bits. From looking at the datasheet, it is my understanding that the bit number that is a high bit is the one that corresponds to the pin selected? For example, if I want MOSI on P0.12, I'd set bit 12 to HIGH and all others to LOW ?

Thanks for the help!

Related