Question
Waiting for spi MISO pin change after ADC conversion
Posted on November 22, 2016 at 22:35
* Have had to add text here again. Posted it last night from my tablet and this morning the post has ''no text'' ! *
Anyway, I'm trying to read an AD7190 with STM32F7 via SPI2.Using HAL library ver 1.5.1The issue is that the chip's data out (DOUT / MISO) also doubles up as !RDY meaning I need to setup the MISO pin for SPI, but also read the state of it. RDY signifies that an ADC conversion is complete and can be read from the serial bus.Reading the state of the MISO pin with HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_15) does not seem to work.How can I check the status of the SPI2 MISO pin and wait for it to go low ?Regards,Andy #miso-adc