Gaston
Member
i keep getting an error.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F628 "ledport7.asm" /l"ledport7.lst" /e"ledport7.err"
Message[302] C:\MPLAB\PROJECTS\LEDPORT7\LEDPORT7.ASM 19 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\MPLAB\PROJECTS\LEDPORT7\LEDPORT7.ASM 20 : Register in operand not in bank 0. Ensure that bank bits are correct.
Loaded C:\mplab\projects\ledport7\ledport7.COD.
BUILD SUCCEEDED: Sat Dec 23 20:30:06 2006
here is the peice of code it is refering to
bsf STATUS, RP0 ;select bank 1
movlw b'00000000' ;set PortB all outputs
----> movwf TRISA
movwf TRISB ;set PortA all outputs
bcf STATUS, RP0 ;select bank 0
clrf PORTA
clrf PORTB ;set all outputs low
the arrow points to the specific line
i checked the data sheet and TRISA ans TRISB is on bank 1. i even added a line
bcf STATUS,RP1
to see if RP1 wasn't set properly. i can't see whats wrong
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F628 "ledport7.asm" /l"ledport7.lst" /e"ledport7.err"
Message[302] C:\MPLAB\PROJECTS\LEDPORT7\LEDPORT7.ASM 19 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\MPLAB\PROJECTS\LEDPORT7\LEDPORT7.ASM 20 : Register in operand not in bank 0. Ensure that bank bits are correct.
Loaded C:\mplab\projects\ledport7\ledport7.COD.
BUILD SUCCEEDED: Sat Dec 23 20:30:06 2006
here is the peice of code it is refering to
bsf STATUS, RP0 ;select bank 1
movlw b'00000000' ;set PortB all outputs
----> movwf TRISA
movwf TRISB ;set PortA all outputs
bcf STATUS, RP0 ;select bank 0
clrf PORTA
clrf PORTB ;set all outputs low
the arrow points to the specific line
i checked the data sheet and TRISA ans TRISB is on bank 1. i even added a line
bcf STATUS,RP1
to see if RP1 wasn't set properly. i can't see whats wrong