HI TO ALL ENGINEERS. I AM HAVING DIFFICULTY TO UNDERSTAND REAL PURPOSE OF BANK SWITCHING. THIS IS THE WAY I UNDERSTAND. 1. BECAUSE OF PORTS ARE LOCATED IN BANK 1 AND DEFAULT IS 0 WE NEED TO SWITCH THE BANK IN ORDER TO SET THE PORTS. BSF STATUS,RPO MOVLW B'00000000' MOVWF TRISB ;MAKE PORTB OUTPUT MOVLW B'11111111' MOVWF TRISA ;MAKE PORTA INPUT BCF STATUS,RPO SINCE IN BANK1 WE HAVE RAM TO USE WHY ALWAYS WE SWITCH BACK TO BANK 0. WE CAN USE BANK1 WHEN EVER IT IS FULL THEN JUMP TO BANK 0. IF ABOVE PORT SETTING IS CORRECT USING EMULATOR STEP ICON OR (F7) WHAT EVER CONNECTED ON PORTB (OUTPUT) GOES HIGH FOR A MOMENT .WHAT AM I DOING WRONG TO SET THE PORT. I AM USING PIC16C62. ANDRE THANK YOU VERY MUCH.