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

Mapping PX.Y to Number

Hi,

I am new to Nordic chip sets, though I have firmware experience with STM and other boards. I have to wire
an accelerometer to a nRF development board, and fix some existent code. The SPI in the code is
defined like :

My chip is 52832,  s132.

    spi_config.miso_pin = SPI_MISO_PIN;
    spi_config.mosi_pin = SPI_MOSI_PIN;

and

#define SPI_MISO_PIN                  24        
#define SPI_MOSI_PIN                  16        
#define SPI_SCK_PIN                   18           
#define SPI_CS_PIN                    15

I really cannot find Then in RF52_DK_User_Guide_v1.3.1.pdf the 24,16,18,15 or any other pins  to P.X.Y  notation.

for example which PX.Y is 24 ?

I found in some google search code the expression:  Pport.pin =>   (((port) << 5) | ((pin) & 0x1F)) but still not good.

This could be a silly question.

Parents Reply Children
No Data
Related