Hey all,
I'm writing this code for PIC. When I select the bank 1 for my 16f877, i use
BSF STATUS,RP0
followed by
CLRF TRISC
BSF TRISC, 2
BSF PIE1, CCP1IE
for using input capture.
When compiling, the compilers says the operand(in this case TRISC and PIE1) is not in bank 0. Why does it say not in bank 0 when I've changed the status to bank 1? Anyone can help?
Thanx
I'm writing this code for PIC. When I select the bank 1 for my 16f877, i use
BSF STATUS,RP0
followed by
CLRF TRISC
BSF TRISC, 2
BSF PIE1, CCP1IE
for using input capture.
When compiling, the compilers says the operand(in this case TRISC and PIE1) is not in bank 0. Why does it say not in bank 0 when I've changed the status to bank 1? Anyone can help?
Thanx