WinPicProg Forums Forum Index WinPicProg Forums
A forum to support WinPicProg
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MPLAB error message

 
Post new topic   Reply to topic    WinPicProg Forums Forum Index -> Questions
View previous topic :: View next topic  
Author Message
MaxHeadRoom



Joined: 12 Jun 2007
Posts: 5
Location: Canada

PostPosted: Sun May 15, 2011 3:00 pm    Post subject: MPLAB error message Reply with quote

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
View user's profile Send private message
Nigel Goodwin
Site Admin


Joined: 03 May 2006
Posts: 135
Location: Lower Pilsley, North Derbyshire

PostPosted: Tue Jul 26, 2011 7:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    WinPicProg Forums Forum Index -> Questions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group