Forum Discussion
Altera_Forum
Honored Contributor
13 years agousing spi core
I want to use the spi core for adc peripheral AD9253. It has bidirectional SDIO. but spi core in nios has miso and mosi. so how do i tackle this. i want to read and write to the adc registers.
Altera_Forum
Honored Contributor
13 years agoA simple solution is driving SDIO in open collector mode using a tristate i/o buffer and a pull-up resistor.
MOSI is connected to the active low buffer enable port, while the i/o buffer input is hardwired to gnd. MISO is connected to the same i/o pin. This way you simply put ones in the spi tx register for the bits you are supposed to receive.