Have you checked the disassembly? Maybe a compiler bug? At 22.50 2011.10.24, you wrote: >> MainLoop: >> movlw B'00100000' >> movwf PORTA ; LED column on > >movwf LATA > >> movf PORTA,W ; Read all port-A inputs >> movwf PORTC ; Show on LED segments. > >movwf LATC > >> MainLoopDone: >> goto MainLoop >>=20 >> end > >--=20 >http://www.piclist.com PIC/SX FAQ & list archive >View/change your membership options at >http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .