Hi, I am having trouble getting all ports to work as inputs on my 18F 40pin PIC. I tested all ports to see what they could do. All ports were fine setting them outputs all high But reading inputs didn't work so well. I tried 2 chips too. What I got was: RA4,RA6,RA7 worked, RA0,1,2,3,5 didn't work PORTB worked PORTC worked RD4,5,6,7 worked, RD0,1,2,3 didn't work PORTE didn't work at all All I'm using for code is: movlw 0xFF movwf TRISx clrf PORTB movff PORTx, PORTB and looping it. just copying one side to the other. It's not configuration bits either. Please 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