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
 
Thread Tools Display Modes
Old 28th December 2006, 05:54 PM   (permalink)
Default

Quote:
Clean: Deleted file "E:\Projects\Frequency Counter ASM\VoltFrequencyTemp.mcs".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F877A "MultiFunction.asm" /l"MultiFunction.lst" /e"MultiFunction.err"
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 58 : Using default destination of 1 (file).
Error[113] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 82 : Symbol not previously defined (TOIF)
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 100 : Using default destination of 1 (file).
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 102 : Using default destination of 1 (file).
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 106 : Using default destination of 1 (file).
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 114 : Using default destination of 1 (file).
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 129 : Using default destination of 1 (file).
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 514 : Using default destination of 1 (file).
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 520 : Using default destination of 1 (file).
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 524 : Using default destination of 1 (file).
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 540 : Using default destination of 1 (file).
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 546 : Using default destination of 1 (file).
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 550 : Using default destination of 1 (file).
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 560 : Using default destination of 1 (file).
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 562 : Using default destination of 1 (file).
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 569 : Using default destination of 1 (file).
Message[305] E:\PROJECTS\FREQUENCY COUNTER ASM\MULTIFUNCTION.ASM 571 : Using default destination of 1 (file).
Halting build on first failure as requested.
BUILD FAILED: Thu Dec 28 23:52:30 2006
After changing the processor errors remain =1
Ayne is offline   Reply With Quote
Old 28th December 2006, 06:15 PM   (permalink)
Default

Have you tried reading what they say?, there is one error there, and sixteen identical warnings - for a start I would suggest you cure the cause of the warnings, and add the destination bit to the sixteen lines where you've left it off! - the default (file) may not be what you want, and it's bad programming practice not to include it.

The actual error is simple as well - do you know the difference between '0' and 'O'? - the assembler does!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 28th December 2006, 06:28 PM   (permalink)
Default

aLL PROBLEM HAS BEEN SOLVED
but now only one problem
MPLAB SIM not running
Quote:
CORE-E0002: Stack under flow error occurred from instruction at 0x00002f
what is it's meaning???
Ayne is offline   Reply With Quote
Old 28th December 2006, 06:30 PM   (permalink)
Default

No idea, I've never used the simulator!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 28th December 2006, 11:29 PM   (permalink)
Default

Program execution starts at location zero. You do not have any code at the start location. Looking through your code, you don't appear to have any main code just a collection of subroutines which I assume you copied of the internet. Putting random bits of code together and hoping it will work is not going to get you anywhere. Read the sticky and some of the tutorials. I like the free online book at microelectronica. You should read this and try to write your own code.

Mike.
Pommie is offline   Reply With Quote
Old 29th December 2006, 09:22 AM   (permalink)
Default

thank u for the link Pommie.
But for ur information i only use subroutines for 16 bit multiplication and subtraction. Remaining code is mine.
I am beginer, i started learning about 1 week ago from Nigel Goodwin's tutorials.
You broke my heart.
Ayne is offline   Reply With Quote
Old 29th December 2006, 12:15 PM   (permalink)
Default

I'm sorry if I hurt your feelings, but if you have written the above code then you have a good understanding of assembler. The small error I pointed out in your code should enable you to get it working.

Mike.
Pommie is offline   Reply With Quote
Old 29th December 2006, 05:49 PM   (permalink)
Default

Quote:
Program execution starts at location zero. You do not have any code at the start location. Looking through your code, you don't appear to have any main code just a collection of subroutines
After reading my program,
one thing that i notice for running MPLAB SIM is, there should be some commands after ENDC command.
Then i add
Quote:
NOP
NOP
Goto Main
Now MPLAB SIM running.
Thanks again
Ayne is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Need help with Intel Assembly Language and PIC16F877 avinsinanan Micro Controllers 10 4th March 2008 10:02 AM
Assembly? Marks256 Micro Controllers 43 28th July 2006 03:44 PM
Assembly compiler Thunderchild Micro Controllers 4 12th March 2006 01:25 PM
Learning Assembly Programming Language Johnson777717 Micro Controllers 4 22nd March 2004 02:00 PM
Assembly Language Question Jeggyman General Electronics Chat 6 30th January 2004 09:53 PM



All times are GMT. The time now is 06:38 PM.


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