Where can I find 16F877A.h?

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 cannot open the file "16F877A.h": there is no such file or directory

Where can I find the header file for 16F877A?

+5
source share
3 answers

C: \ Program Files \ HI-TECH Software \ PICC \ 9.70 \ include

In my case, I installed HITech Compiler In C: \ Program Files. You need to know where you installed the compiler files.

0
source

This file is from the compiler, so in your case Hi Tech you can find here:

C: \ Program Files \ HI-TECH Software \ PICC \\ include \

, " " "" MPLAB.

#include <16F877A.h>
0

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

#include <htc.h>

All you need for this is to configure the correct chip in the project settings. The file 16F877A.hexists in the compiler directory, but it directly generates a warning.

0
source

All Articles