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 16th October 2007, 09:50 AM   (permalink)
Default how to add 3 files in one PIC ..

i m using PIC16F877..
inside demo tutorial file, there are 3 kind of files (DEMO, MATH, LCD)..
if i want to add this 3 files together inside PIC to test for demo, how can i make it?

initially i add f877 file and .lkr as usual, and copy the complete main routine(from DEMO file) to f877 file.
after that, i right click on source file(.mcw display) and click on add file,
i add the MATH and LCD file..

when i right click on f877 file to assemble it, the output show symbol UMUL0808L and UDIV1608L not define.
but for this two symbol, it is defined in MATH file(although not define in DEMO file)..

so what's the right steps if i want to add this three files together in one PIC?

thanks...
meera83 is offline   Reply With Quote
Old 30th October 2007, 06:57 AM   (permalink)
Default

I think perhaps you would use the include directive in you main code like this -

include "demo.inc"
include "math.inc"

The assembler will insert the required code at this point during assembly.
Gordz is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
High ADC sampling rate PIC, 18F needed? bananasiong Micro Controllers 24 28th October 2007 12:13 PM
Greetings. A pic controlled traffic light circuit... Wiley Electronic Projects Design/Ideas/Reviews 2 13th October 2007 04:45 PM
Battery Tester with a PIC 16F818 Cicuit Question dmarciano Micro Controllers 1 9th October 2007 03:55 AM
Four PIC with One LCD.. meera83 Micro Controllers 13 20th September 2007 06:40 AM
Networking Harddrives crazymonkey General Electronics Chat 3 9th March 2004 04:55 PM



All times are GMT. The time now is 11:59 AM.


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