Page 1 of 1

SPI question

Posted: Mon Feb 22, 2021 10:14 am
by p.erasmus
Hi Team,

On the ADS1118 16Bit ADC according to the SPI protocol it is necessary to check the MISO line after the CS line is pulled low If the MISO line is is High the new data(sample) is not ready if the MISO Line is low the data is ready and the SPI can clock the Configuration bit out and read the Conversion register new data in .

I am confused in how to check the Logic level of the MISO line ,perhaps switching to IO mode and SPI mode Back and forward but this seems not to be the way Any suggestions much appreciated
:?
P2.jpg
P2.jpg (36.52 KiB) Viewed 1843 times
:D Thanks as always it is highly appreciated

Re: SPI question

Posted: Mon Feb 22, 2021 10:55 am
by Steve-Matrix
What happens if you use an input icon to read the value of the pin that DOUT/DRDY is connected to? This should not necessarily take it out of SPI mode.

Once you have read it, you may need to set it as an output pin again (either via C code or an output icon).

Re: SPI question

Posted: Mon Feb 22, 2021 11:04 am
by p.erasmus
Hi Steve,

Thank you this sounds good I will give it a go this afternoon ,I appreciate the hint it sure helps a lot :D