LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

845x SPI and I2C

Hello,

 

I am using a USB 8451 to control up to five SPI components and up to four I2C components at the same time. The SPI components are fixed - when I start the software I choose if they are there and it does not change. However the I2C components can be added/removed/changed by the user at any time. When a component is changed, the user just clicks a button to re-detect all components connected to the USB 8451.

 

Here is the problem I am having:

When the "Detect I2C" button is clicked I search for each of the four possible components connected. If the component is there, everything is fine. If it's not, there is around 1 second during which communication with the SPI components is lost, since the I2C part waits for an answer. I tried changing the I2C timeout but it didn't change anything in this delay.

 

Are SPI and I2C communications exclusive? I mean, do I have to wait for the I2C part to send and receive data before I can send and receive data via SPI?

If this is the case, is it possible to reduce the timeout for I2C, for the cases one or more of the I2C components will not be present?

 

Thank you very much for your time and help.

0 Kudos
Message 1 of 1
(2,529 Views)