Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can i find the 16F877A.h?

Tags:

pic

When i run my program in MPLAB. ( Project wizard -> PIC16F877A -> Hi Tech Ansi C Compiler -> RUN ) Error [141] C:\Users\WhyWhy\Desktop\test.c; 1.22 can't open include file "16F877A.h": No such file or directory

Where can i find the header file for the 16F877A?

like image 928
whywhy Avatar asked Nov 13 '22 09:11

whywhy


1 Answers

Chip-specific header files should not be explicitly included in HITECH-C, the documentation clearly states that. Instead, you include the compiler header, which will take care of including the chip-specific file for you:

#include <htc.h>

All you need for this to work is to configure correct chip in the project settings. The 16F877A.h file exists in the compiler directory, but including it directly will throw a warning.

like image 169
Rafael Lerm Avatar answered Jan 04 '23 01:01

Rafael Lerm