I2C monitor

Post details of your projects here.
Post Reply
basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

I2C monitor

Post by basicchip »

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
Attachments
watchi2c.bas
i2c monitor program in BASIC
(1.35 KiB) Downloaded 575 times



Post Reply