Select Page
PIC10F322 – XC8 Code to Blink LED

PIC10F322 – XC8 Code to Blink LED

Blinking a LED on a MCU is much like a “Hello World” program. Here is the XC8 Code and circuit to Blink an LED with a PIC10F322 Micro-controller. The LED is hooked up to PortA0. The code will blink an LED on PortA.0 ever second. The Circuit The Code /* * File:...
PIC10F322 XC8 Expanded Header File

PIC10F322 XC8 Expanded Header File

Lets make things a little easier on ourselves by defining a standard header file for our PIC10F322 Projects. I named the file 10F322_deviceconfig.h and place it into my XC8 project directory. To use it, I add it to the headers in my XC8 project and include – #include...