Have I messed something? > Alexandre has said that the internal pull-ups are activated only when > writing to the whole port, and not when manipulating individual > bits. What? Internal "pullups" on PORTB are for inputs - they pull up the signal. the only open drain is RA4. These are set using OPTION_REG, bit 7, not by writing to the PORT. Last I heard, PORTC was TTL........ > From the documentation though, I can't seem to find any control > bits for pull-up resistors for PORTC. > > So what i've done is initially written to the whole port, 0xFF. Luckily > I'm not using PORTC for anything else and seems to have fixed the > problem..... for now. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu