Hello everyone,

Ok it works!

Bit 7 of Port A and B of the MCP23017 must be 1 before the startup of the program.

And in this case each power program is operating normally the first

Here is the code added.

i2cwrite sda,scl,$40,[iolata,128] 'Output Latch Reg
i2cwrite sda,scl,$40,[iolatb,128] 'Output Latch Reg


If you have comments please.

Thank you

Claudy