I never used RW pin on a PBP prog but just make sure the PIN is set to LOW first.
LOW PORTD.6
This
Should beCode:i2cwrite sda,scl,$a0,dire,dato
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)
Euh... i don't see any I2CREAD but just I2CWRITEthis communication doesn't write neither reads anything,Also if the config fuses are not correctly set in your code or before programming the PIC, it will never work.


Also if the config fuses are not correctly set in your code or before programming the PIC, it will never work.


Bookmarks