I think you are missing the control before the address of the I2C commands.
Also DEFINE I2C_SLOW 1 is NOT needed.
try this
Cont = %01000000
I2CWRITE SDA,SCL,Cont,[%11111111]
PAUSE 500
I2CWRITE SDA,SCL,Cont,[%00000000]
pause 500
Ioannis
I think you are missing the control before the address of the I2C commands.
Also DEFINE I2C_SLOW 1 is NOT needed.
try this
Cont = %01000000
I2CWRITE SDA,SCL,Cont,[%11111111]
PAUSE 500
I2CWRITE SDA,SCL,Cont,[%00000000]
pause 500
Ioannis
And where to put address?
I have several PCFs....
OK, in the cont constant will be the address. What chip do you have? Is it the "A" type?
The "A" type needs cont=%0111AAA0
The plain PCF8574 needs cont=%01000AAA0
where AAA is the address bits.
Ioannis
Last edited by Ioannis; - 13th March 2023 at 21:34.
Bookmarks