I'm relatively new to PIC programming, but I have some idea of what's going on. I'm working on a senior project that requires bipolar stepper motor control. The problem I'm having is that I need the program to start after a signal has been sent to one of the I/O pins. I went to a tutorial site: http://www.mstracey.btinternet.co.uk/pictutorial/progtut6.htm and tried copying and pasting some code. I keep getting the error "Register in operand not in bank 0. Ensure that bank bits are correct." However, just before the line that's giving the error, I changed the RP0 bit in the STATUS register to the correct setting, but it still gives me the error. I've posted this portion below. Any help you can provide would be greatly appreciated.
...
movlw 03h
movwf STATUS ;Address of the STATUS register
bsf STATUS, RP0
movlw 85h
movwf TRISA ;Address of the tristate register for port A
movlw 05h
movwf PORTA ;Address of Port A
bsf STATUS,5 ;Switch to Bank 1
movlw 01h ;Set the Port A pins
movwf TRISA ;to input.
bcf STATUS,5 ;Switch back to Bank 0
BTFSS PortA,0
...
...
movlw 03h
movwf STATUS ;Address of the STATUS register
bsf STATUS, RP0
movlw 85h
movwf TRISA ;Address of the tristate register for port A
movlw 05h
movwf PORTA ;Address of Port A
bsf STATUS,5 ;Switch to Bank 1
movlw 01h ;Set the Port A pins
movwf TRISA ;to input.
bcf STATUS,5 ;Switch back to Bank 0
BTFSS PortA,0
...