I am trying to use i2cread and i2cwrite on a PIC18F14K50.
PORTC.6 = Clock, PORTC.7 = Data.
Of course I know that there is an issue with the comparator/analog in settings.
So I am using:
ANSEL = 0
ANSELH = 0
to configure PORTC for digital I/O.
But i get the impression that this is not good enough...
When I measure the voltage on the clock pin (C6), it is low but can easily be pulled high with a resistor connected between PORTC.6 and +5V, giving me the impression that this pin is not configured as a digital output.
Am I still missing something?
(I prefer PORTC.6 and PORTC.7 because this would make the PCB design easier...)
Bookmarks