In TRISA RB5 is set to be an Output line which is the only varying line in the stimulus file. Change TRISA=b'00111111' This should show the changes in RB5. Aydin > This file is attached. Watch window contains PORTA. TRISA=b'00011111' > When stepping trough the program, PORTA never changes. What am I doing > wrong? > > Hans > >