Hi,
I fixed it, but the result is very strange.
Resistors values or Defines have no influence but it seems that there is bug in the PBP documentation (or in the compiler, as you prefer).
I found that the instruction :
I2CWRITE DataPin, ClockPin, Control, [Address,] ...
should be written
I2CWRITE DataPin, ClockPin, [Address,] Control...
In other words everything works if one pass first the Address and then the Control instead of what is written in the documentation. This is very clear with a dual trace scope on SDA and SCL.
My compiler version is 2.50L
MikeBZH / F8DFN
Bookmarks