user3428848
user3428848

Reputation: 1

MPLAB IDE v2.05

I am using a velleman K8048 pic program board with PIC16F628. I have programmed before using .asm with this board/ chip a few years ago successfully.

This time, I want to learn to program using C. I have installed MPLAB X IDE v2.05. I understand about a main program and the need to have #include files. But this is where I hit a small problem!

I wanted to try the "blinky" example from MPLAB, just to verify compiler and hardware are ok (I checked hardware using PicProg2 and it works ok).

I cant seem to find the include header files for PIC16F628? I presume these set the conditions for term usage about pins etc to be used in main file. I have looked at MPLAB site and didn't find anything, and searched my C drive but still did not find anything?

I do find the include files for .asm for the PIC16F628. Stupid question but is that the same file I need for using C?

EDIT TO ADD: It's ok, i found them. When in the main .c edit page, if i type #include <, then after the < i get a whole list of header files .h i can use. It's just a question of me picking the right one(s).

Upvotes: 0

Views: 342

Answers (1)

Yama
Yama

Reputation: 178

The location on disc should be:

%programs%/Microchip\MPLABxx\support\PICxxx\h

Upvotes: 0

Related Questions