I am trying to interface with the AD7193 ADC over SPI.
This ADC multipliexs its MISO pin with its Data Ready function. After initiating a conversion, it indicates that the data is ready by pulling the MISO line low.
On the MSP, I am using SPI A0 in master mode using pins Port2 Pin {0..2} , with Pin1 configured as an Input pin with the Primary module function.
So after writing the convert command to the ADC, will the P2IN register contain valid pin values ? I want to poll this register and wait till the MISO line goes low.
Currently, when I try to read this pin, it always returns a 1. Do I need to reconfigure the pin to GPIO mode each time?