On 3/7/07, Dario Greggio wrote: > Hi Rik, maybe you need to configure it as Digital (as opposed to analog, > which is the default.) Could you hint me of how to do this? I'm not yet very proficient in using MPLAB. To be on the safe side, I checked the datasheet for the chip in question and turned off the comparator mode. But something must be wrong, because these two movlw b'11111000' movwf TRISA Yields "00111000" in TRISA. RP0 is set and RP1 is cleared before setting TRISA. Perhaps I should find a more decent beginner book than "The quintessial PIC microcontroller" that I'm using. -- - Rikard. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist