Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 15th February 2004, 04:50 PM   (permalink)
Default Error 302

Hello

One time I came across a program in ASM that has a line read Error 302, something like that (i'm not quite sure). That program is for PIC16F84A.

Anybody can tell me what this means and the correct instruction/syntax?
Six-Sixteen is offline  
Old 15th February 2004, 06:09 PM   (permalink)
Default Re: Error 302

Quote:
Originally Posted by Six-Sixteen
Hello

One time I came across a program in ASM that has a line read Error 302, something like that (i'm not quite sure). That program is for PIC16F84A.

Anybody can tell me what this means and the correct instruction/syntax?
They are all explained in the MPASM helpfile - 302 isn't an error, it's just a warning to remind you that you are accessing a register not in bank zero, and to be sure you switch banks before doing so. You can turn the warnings off if you want, again it's explained in the helpfile.
Nigel Goodwin is offline  
Old 15th February 2004, 08:57 PM   (permalink)
Default Error 302

Dear Nigel,

Immediately I went to the help file of the MPASM, and I found what youve said. Its not Error 302, but Errorlevel -302. Thanks a lot.

I compiled my program again, and the warning's gone.

Another problem I have is that there are other warnings. They are:
Found label after column 1. (LOOP1)
Found opcode in column 1. (RETURN)
Found directive in column 1. (END)

What do these messages mean and how do I eliminate these?
Six-Sixteen is offline  
Old 15th February 2004, 10:13 PM   (permalink)
Default

MPASM wants you to put labels and code in diffirent colums, so your code gets more readable
so a label should be at the beginning of a line, while code should be 'tabbed'.

example
Code:
Start       ;label, at beginning of line

     MOVLW 0x55
     MOVWF EECON1   ;code - first a TAB 
     ...
Exo is offline  
Old 16th February 2004, 07:15 PM   (permalink)
Default Error 302

To Exo,

Now I get no error messages. Thanks to you.

Is it normal for MPASM to always include Error log file in its compilation although there are no more error messages? This error log file is 0KB.
Six-Sixteen is offline  
Old 16th February 2004, 11:01 PM   (permalink)
Default Re: Error 302

Quote:
Originally Posted by Six-Sixteen
To Exo,

Now I get no error messages. Thanks to you.

Is it normal for MPASM to always include Error log file in its compilation although there are no more error messages? This error log file is 0KB.
Yes it is normal, if you had previously had an error log file saved, it would still be there - so it's overwritten with a blank file.
Nigel Goodwin is offline  
Old 17th February 2004, 04:40 PM   (permalink)
Default Error 302

To Nigel,

I really appreciate your prompt help. Because of your replies I am encouraged to search for more and to do experiments regarding PICs and electronics.

And to Exo also. Thanks you're there.
Six-Sixteen is offline  
Old 17th February 2004, 05:07 PM   (permalink)
Default Re: Error 302

Quote:
Originally Posted by Six-Sixteen
I really appreciate your prompt help. Because of your replies I am encouraged to search for more and to do experiments regarding PICs and electronics.
Thanks very much, try having a look at my PIC tutorials at http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 05:29 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker