SPI question

For general Flowcode discussion that does not belong in the other sections.
Post Reply
User avatar
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

SPI question

Post 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 1798 times
:D Thanks as always it is highly appreciated
Regards Peter - QME Electronics

Steve-Matrix
Matrix Staff
Posts: 1310
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 175 times
Been thanked: 299 times

Re: SPI question

Post 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).

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: SPI question

Post 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
Regards Peter - QME Electronics

Post Reply