I never used RW pin on a PBP prog but just make sure the PIN is set to LOW first.
LOW PORTD.6
This
Code:
i2cwrite sda,scl,$a0,dire,dato
Should be
Code:
i2cwrite sda,scl,$a0,dire,[dato]
Also make sure your config fuses are correctly set before programming the PIC (HS OSC, LVP OFF..etc etc etc)
this communication doesn't write neither reads anything,
Euh... i don't see any I2CREAD but just I2CWRITE
Also if the config fuses are not correctly set in your code or before programming the PIC, it will never work.
Bookmarks