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
Thanks as always it is highly appreciated
SPI question
- p.erasmus
- Posts: 434
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 12:01 pm
- Location: Russia / Россия
- Has thanked: 104 times
- Been thanked: 88 times
-
- Matrix Staff
- Posts: 1310
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 175 times
- Been thanked: 299 times
Re: SPI question
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).
Once you have read it, you may need to set it as an output pin again (either via C code or an output icon).