DocBohn / CowPi

Library for the Cow Pi hardware kit used to teach memory-mapped I/O, polling, and interrupts.
Apache License 2.0
1 stars 0 forks source link

BUGFIX: I2C control of LCD1602 seems to require one additional handshake #2

Closed DocBohn closed 1 year ago

DocBohn commented 2 years ago

When prepping this semester's PollingLab, we found that the start bit typically wasn't sent, and if it was then the address wasn't ACKed. This bug doesn't appear when using the example code (nor in any of the other testing we did earlier). We created a workaround by adding to the starter code a command to turn on the backlight.

DocBohn commented 2 years ago

Further testing (writing the PollingLab sample solution) reveals that the problem is due to, at least in part, the STOP bit not doing its thing. Must investigate further.