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?
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?
It's a standard warning from MPASM that you are accessing something not in bank 0 - you can alter the warning level to stop it, but it stops other warnings as well. Best thing is to just ignore it!.
I'm not sure why the instruction is that way because that's how my fren taught me to clear the message instruction. Guess it doesnt matter now since the messages doesnt play important roles