Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Microchip mpasm libraries ?

Status
Not open for further replies.

donkey41

Full Member level 1
Joined
Feb 19, 2002
Messages
99
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,288
Location
Pakistan
Activity points
949
hello pic gurus,

I practice the MPASM from Microchip on different models of 14-bit range.. just want to say, I can understand and program in MPASM 'OK', but there is a little problem :

whenever i try to use some LCD (for example) in my project, I HAVE to copy and modify the cone from any of my old LCD project... just annoying..

I have read something about re-locatable code and libraries but have no idea, where to start from. I mean, it sound very logical that i should make a library for some general purpose tasks (like in C).

can anyone help me in understanding, how to use relocateable code and how to build libraries in mpasm ?

best regards
 

i think that's the linker software your talking about,also could just use
" include files".
I Know it's boring to read but the manual should explain it better
 

You should use the librarian in Mplab to make libraries of your useful routines.
Select 'Project', 'Build Options'. Then check 'Build library target'. This will build a library.
To use the library, add 'Files yourLibName' at the top of your Linker Script file.
The linker will only link in the routines you use from the library.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top