Hi Rickard, I don't know your version of PIC, but to turn the port Analog or Digital you can use the ADCON1 register (i use 16F777) or ANSEL register on others Pics.. You must read the section Analog-To-Digital Converter module to know the register to modify. > 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. > Do you have a quartz or other oscillator Connected to PORTA <6,7> ???? Artem -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist