My hardware only has one spi slave and one spi master. So can I just set the spi slave miso pin as output in spis_init function? If can not, can I set the pull down resistor on the slave miso pin on spis_init?
My hardware only has one spi slave and one spi master. So can I just set the spi slave miso pin as output in spis_init function? If can not, can I set the pull down resistor on the slave miso pin on spis_init?
Is the nRF51822 the slave or the master?
Or is this two nRF51822s connected by SPI - so one is slave, and the other is master?
nrf51822 is spi slave, and the spi master is another 8bit mcu(with miso pin set as input and no pull).
nrf51822 is spi slave, and the spi master is another 8bit mcu(with miso pin set as input and no pull).
Thanks for your information, but I think it does not help my question. In the sample code, miso pin has no pull, and this may put miso in float state.