| View previous topic :: View next topic |
| Author |
Message |
MaxHeadRoom
Joined: 12 Jun 2007 Posts: 5 Location: Canada
|
Posted: Sun May 15, 2011 3:00 pm Post subject: MPLAB error message |
|
|
I believe this may have been covered before but I could not find out a reason why.
I have previously gone through the tutorials with no problems.
I have MPLAB loaded on a new PC and happen to use one of the tutorials as a template for a new project, and now every time I assemble the code I get a error 302 which is Register in Operand not in Bank 0 in the movwf TRISB lines.
bsf STATUS, RP0 ;select bank 1
movlw b'00000000' ;set PortB all outputs
movwf TRISB
movwf TRISA ;set PortA all outputs
The code appears to run OK but I wondered if there is a fix?
Max. |
|
| Back to top |
|
 |
Nigel Goodwin Site Admin
Joined: 03 May 2006 Posts: 135 Location: Lower Pilsley, North Derbyshire
|
Posted: Tue Jul 26, 2011 7:15 pm Post subject: |
|
|
It's not an 'error', it's just a warning - you can disable the warning with
| Code: | | ERRORLEVEL 0, -302 ;suppress bank selection messages |
as my later tutorials do. |
|
| Back to top |
|
 |
|