Finding PIC Microcontroller H Files

Thread Starter

crazyengineer

Joined Dec 29, 2010
156
Hello everyone. For my research, I have to learn how to use PIC microcontrollers, even though I used ATmel microcontrollers in the the past. I want to know where I can find .h files of all pic microcontrollers?
 

t06afre

Joined May 11, 2009
5,934
Hello everyone. For my research, I have to learn how to use PIC microcontrollers, even though I used ATmel microcontrollers in the the past. I want to know where I can find .h files of all pic microcontrollers?
They will be included with your C compiler. If you play with assembler you have to look in the MPLAB install folder for the *.inc files. Kind of strange question why do you ask about this
 

MrChips

Joined Oct 2, 2009
35,093
That will depend on your installation. On my computer the header files are in:

Program Files/HI-TECH Software/PICC/9.83/include/
 

t06afre

Joined May 11, 2009
5,934
That remind me of one thing. In older versions of Hi-Tech C. Many PICs shared the same header file. So it was kind of confusing for the beginner. If you use any version of Hi-Tech C or the XC8 compiler. Read the quickstart.pdf document in the \docs folder
 

ErnieM

Joined Apr 24, 2011
8,415
That remind me of one thing. In older versions of Hi-Tech C. Many PICs shared the same header file. So it was kind of confusing for the beginner. If you use any version of Hi-Tech C or the XC8 compiler. Read the quickstart.pdf document in the \docs folder
The newer versions of Microchip compilers are going that way too, one common header file for every device family. The C18 project I'm currently doing gets device info from
Rich (BB code):
#include <p18cxxx.h>
and the XC8 app I did previously used:
Rich (BB code):
#include <xc.h>
Now all the traditional individual hearer files are still there, and still quite useful. I usually drop the one for the specific PIC into the "Other files" folder for quick reference.
 
Top