
Originally Posted by
MR2010
hi gusse guess SDA PORTD.1 is always input what will happens ? u did set SDA port input only read .u have to leave trisd alone and set portd = 0 , i can say trisd s gone to charge you lol
im newbe hope this helps
hope u get better gusse
regards
To my understanding I2CWRITE and I2CREAD -functions take care of port settings. So basically, whatever user is pre-defining in SW, I2C-routine will over-write it.
- I2C clock is always coming from master (PIC) and it is output.
- I2C data is bi-directional, so port will change between input and output.
Please, somebody wiser correct if I'm totally wrong.
Code:
I2CAddressEEprom = 0 TO 1024
Value should be 1023. 0 + 1023 = 1024.
BR,
-Gusse-
PS. Getting better, little by little ...
Bookmarks