wannaBinventor
Member
Hey all,
I've started learning C and have executed a simple program with my PicKit2 dev board(PIC16F887 version) with XC8 in MPLAB 8.63 (I haven't upgraded to X)
I had some uC programming knowledge (in assembly) before I quit for a while, but I've more or less lost it.
What is the difference in a .h and a .inc file?
Just what all needs to be included for a run of the mill program? For instance, on my PC I'm suppose to always include "stdio.h" Is that required for programming a PIC? Where could I read about what standard libraries are required? IE: What would I include if I wanted to access a library to write to a character LCD?
How do I set the configuration bits at the top of the XC8 code? I tried the ASM method, and even a method shown in an XC8 tutotial, but it failed. I'm having to set configuration (particularly, turn off the WDT) with the PicKit2 configuration bits feature.
Thanks!
I've started learning C and have executed a simple program with my PicKit2 dev board(PIC16F887 version) with XC8 in MPLAB 8.63 (I haven't upgraded to X)
I had some uC programming knowledge (in assembly) before I quit for a while, but I've more or less lost it.
What is the difference in a .h and a .inc file?
Just what all needs to be included for a run of the mill program? For instance, on my PC I'm suppose to always include "stdio.h" Is that required for programming a PIC? Where could I read about what standard libraries are required? IE: What would I include if I wanted to access a library to write to a character LCD?
How do I set the configuration bits at the top of the XC8 code? I tried the ASM method, and even a method shown in an XC8 tutotial, but it failed. I'm having to set configuration (particularly, turn off the WDT) with the PicKit2 configuration bits feature.
Thanks!