I2C monitor

Post details of your projects here.
Post Reply
Posts: 992
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA

I2C monitor

Post by basicchip » Thu Jan 24, 2013 12:23 am

I had an LCD panel that I'm trying to interface to, but like normal had no documentation on the backlight initialization sequence. The backlight was controlled by an I2C device (PCA9532).

But I did have a working version with another processor. So hook a couple lines up to a SuperPRO, and less than 100 lines of BASIC code, and I could trace the i2c accesses.

Sample trace --
  • WRITE c8 7
    READ c9 0 NAK STOP

    WRITE c8 7 1 STOP

    WRITE c8 2 0 STOP

    WRITE c8 3 ff STOP

    WRITE c8 8
    READ c9 0 NAK STOP

    WRITE c8 8 2 STOP
i2c monitor program in BASIC
(1.35 KiB) Downloaded 282 times

Post Reply