Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Creating INCLUDE file

Status
Not open for further replies.

AGCB

Member
I'm using MPLAB and can't figure out how to create an include file that the assembler can find. I tried saving a file in the MPASM SUITE but it ends up as a text document and then the assembler can't find it when I use the #include directive. I.e. it's not a inc. file. I want to be able to use a macro without copying it into the source code. Thanks for your help!
Aaron
 
I'm using MPLAB and can't figure out how to create an include file that the assembler can find. I tried saving a file in the MPASM SUITE but it ends up as a text document and then the assembler can't find it when I use the #include directive. I.e. it's not a inc. file. I want to be able to use a macro without copying it into the source code. Thanks for your help!
Aaron

You have to save it as a .inc file. Open the file up in your text editor, then go to File>>>Save As... then name the file "includes.inc" or whatever you want to name it, but be sure to type the .inc after the file name.
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top