Hi, i'm trying to get this IO expander chip to work with a 18F8720(have others in stock and same results), I wired the clock and i'm able to measure it at the TestPin of the MCP and i get a 1Mhz clock there, on the SDL, SCL lines(pulled up by 2 (4.7K resistors), i can see, something passing on my scope, but when the device does not put its port 0 to outputs and do not drive them, i think they are floating, in order of 2mV so nothing meanfull, tried to pull them up and down. But no luck.

Here is the code i use

ADCON0 = 0;
ADCON1 = %00001111;
DEFINE OSC 24
DEFINE I2C_SLOW
PAUSE 200
ct var byte
reg var byte
val VAR BYTE
ct = %01000000
reg = $6
val = 0
' Set direction for PORT0 to all outs
I2CWrite PORTC.4,PORTC.3, ct,reg,[val]
main:
LOW PORTH.0
reg = $0 'MCP23... IO LATCH
val = 255
I2CWrite PORTC.4,PORTC.3,ct,reg,[val]
PAUSE 500
HIGH PORTH.0
reg = $0 'MCP IO LATCH
val = 0
I2CWrite PORTC.4,PORTC.3, ct,reg,[val]
PAUSE 500
goto main