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?
I don't understand what you are trying to achieve by setting the SPIS miso pin as an output.
So do you mean I can set the intenal pull resistor on spis miso pin?
Yes, you can set the pull configuration in the PIN_CNF[x] register, but, are you sure that's what you want to do?
Yes, I just want to give the miso pin on slave side an const value. The new sdk set this pin pull on master side, but my spi master is an otp mcu. I think the pullup or pull down resistor will cost more power in spi transfer, so I want to set this pin as output.
I just want to give the miso pin on slave side an const value
But SPI requires a constant drive - either high or low - anyhow.
SPI is not open-drain.
I just want to give the miso pin on slave side an const value
But SPI requires a constant drive - either high or low - anyhow.
SPI is not open-drain.
nordic sdk set this miso pin as input&no pull when spis is initialized, and when it is selected(cs down), this pin function as miso, otherwise it is set as high impedence, just like other spi device, this is useful when there has more than one spi device on the bus. But in my system, there is only one spi device, So I want to set it as output.