Ich meinte damit, dass beide TRIS bits für OD auf 1 gesetzt sein sollten:
GrußSelection of any I2C mode, with the SSPEN bit set, forces the SCL and SDA pins to be open-drain, provided these pins are programmed to inputs by setting the appropriate TRISC bits.
witkatz
- - - Aktualisiert - - -
Auch in der AN735 ist zu lesen:
- - - Aktualisiert - - -before selecting any I2C mode, the SCL and SDA pins must be configured to inputs by setting the appropriate TRIS bits
Das Quellcode ist so noch nicht kompilierbar, LCD_SETCURSOR und LCD_CMD sind "not previously defined", aber egal. Um über die I2C Routinen drüberzuschauen reicht das auch so.
Lesezeichen