>it'll be analogue. eg, for an 18F452 you need to add >movlw 0x07 ;all digital >movwf adcon1 >for an 18F4550 >movlw 0x0f ;all digital >movwf adcon1 >Check the A2D section in the manual for your specific PIC. You >may need to set other registers like CMCON, ADCON0 etc. I'm >guessing the pins you're having trouble with will be analogue i/p All right, I'll try that. the ADC was the reaason I had the PBADEN bit turned off in the first place. But I didn't know there was more > movff PORTx, PORTB So what's wrong with this? just the fact I'm using PORTB intead of LATB? thanks for the help _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist