2022-01-26 09:45 AM
Hello,
I am trying to get my I2C code Master working. I don't have the slave device connected and I am trying to see the output on a logic analyzer. I have connected the SCL and SDA pins to breadboard to a 2k pull up of 3.3V and the board is running at 3.3V. For some reason I cannot see the SCL toggling. It goes low and it stays low throughout the entire data address transmission period. Typically the scl and sda should have the address data and a NACK as there is no slave, but in this case the SCL is not toggling. Any suggestion how I can fix it? Thank you
Solved! Go to Solution.
2022-01-26 01:09 PM
@TDK I tried increasing the resistance to 1K and my analog sampling to 50MS on logic analyzer and I seem to be getting the scl lines. I am not sure why the logic analyzer still does not see it. I still think there might be something to do with my settings on I2C line. Any thoughts?
2022-01-26 10:09 AM
Show an analog trace. I would guess the pullup is insufficient.
2022-01-26 10:11 AM
Thank you. Do you mean on a scope?
2022-01-26 10:19 AM
Yes. It looks like you're using a Saleae logic analyzer which can take analog captures as well as digital ones.
2022-01-26 10:56 AM
Yes looks bad
2022-01-26 01:09 PM
@TDK I tried increasing the resistance to 1K and my analog sampling to 50MS on logic analyzer and I seem to be getting the scl lines. I am not sure why the logic analyzer still does not see it. I still think there might be something to do with my settings on I2C line. Any thoughts?
2022-01-26 01:12 PM
Never mind, got it working the glitch filter was enabled on the logic analyzer. Fixed it. Thank you
2022-01-26 02:06 PM
Thanks for coming back with the solution. Please select your post as Best so that thread is marked as solved.
JW