Page 1 of 1

Communication issues??

Posted: Tue Jul 12, 2016 7:23 pm
by 407charles
It is possible to run a program using I2C and SPI communication components simultaneously?

Re: Communication issues??

Posted: Wed Jul 13, 2016 12:03 pm
by kersing
Yes/it depends/no.

There is no generic answer to this question as it depends on the controller being used. So if you want an answer you need to be more specific. Also, do you require hardware I2C & SPI or would software implementations work?

Re: Communication issues??

Posted: Wed Jul 13, 2016 12:48 pm
by 407charles
I'm using the arduino mega for my project. The issue is that I got a program which uses the I2C clock and also The SPI max 6675 in another section of my program. Even when I got both programs working individually, after merging both of them into a single one, the SPI does not seem to work. I'm not saying that I did not make a mistake but I can't see it. That's why I'm trying to find out if is possible or not.

Re: Communication issues??

Posted: Wed Jul 13, 2016 2:39 pm
by 407charles
I found my mistake. Yes it is possible to have this two communications working. I don't know if at the same time but in my program they are separate.