Jump to content
  • 0

Can I run I2C in loopback on Analog Discovery (old black model) with protocol/logic analyzer  ?


varunnagpaal

Question

I tried running both I2C spy and I2C master simultaneously on different DIO pins and connect them in a loopback with pullup resistors. But it isn't working.

For example:

I2C master: DIO[0] as SCLK output, DIO[1] as bidirectional SDA

I2C spy: DIO[2] as SCLK input, DIO[3] as bidirectional SDA

I attached pull up resistors (2.144K) to the SDA and SCLK lines with VDD=3.3V DC which I generate using waveform generator.

I activate I2C spy and then run I2C master. I tried this but it doesn't seem to work. It gets stuck on a window "Transferring data" but never ends.

image.png.ccc030954c169a33ba4f423a7ef18c8a.png

When I click cancel, it shows "Error!" in the I2C master window. Is their anyway I could possible do I2C loopback with protocol analyzer/logic analyzer  ?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @varunnagpaal

Make sure the wiring is correct and the devices use common ground.
Make sure the pullup voltage is correct, 3.3V or at least above 1.5V

I managed to reproduce the "Transferring data" hold by setting the pullup to 1.5V 
This because at this level it is in hysteresis domain of the 3.3V logic. After the master releases the low drive it will not go up to logic high.

image.png.e91cf86f7d322a2b5ce177119761a2bc.png

 

Edited by attila
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...