I am trying to read/write a 24LC256 using a 20x2. I have double-check the wiring. (4.7K pull-ups, 20x2 pin 11 to '256 pin 6, 20x2 pin 13 to '256 pin 5, power and ground). I am using the following code:
However, the debug window only shows zeros.
Code:
hi2csetup i2cmaster, %10100000, i2cfast, i2cword
pause 1000
hi2cout 0, ("hello")
main:
pause 2000
hi2cin 0, (b0,b1,b2,b3,b4,b5,b6,b7)
debug b1
goto main
Last edited: