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

2 SPI Configurations sharing MOSI & MISO

Hello There, I want to connect two slaves to my nRF51422 PCA10028. I came up with the idea of using two master communications which share MOSI AND MISO but have different clocks and chip selects. I want to make sure that I can share the MISO and MOSI. Meanwhile, Is it another hard ware configuration for RX and TX buffers on different pins or that the only ones are 28 and 25?

Thank You

switch (spi_master_instance)
    {
        
        case SPI_MASTER_0:
        {
            spi_config.SPI_Pin_SCK  = 29;
            spi_config.SPI_Pin_MISO = 28;
            spi_config.SPI_Pin_MOSI = 25;
            spi_config.SPI_Pin_SS   = 24;
        }
        break;
				
			  case SPI_MASTER_1:
        {
            spi_config.SPI_Pin_SCK  = 27;
            spi_config.SPI_Pin_MISO = 28;
            spi_config.SPI_Pin_MOSI = 25;
            spi_config.SPI_Pin_SS   = 23;
        }
        break;
        

        default:
            break;
    }
Parents Reply Children
No Data
Related