So, you just made your first PIC10F322 XC8 program. Uploaded to the chip and….. Nothing…
Chances are – did you setup the Device Configuration Bits?
Here is the setup I generally use – put this at the top of your main.c file or in a header, call it in the main.c file. This will get you up and going quickly.
#pragma config FOSC = INTOSC // Oscillator Selection Internal 8Mhz Default
#pragma config BOREN = ON // Brown-out Reset
#pragma config WDTE = OFF // Watchdog Timer
#pragma config PWRTE = ON // Power-up Timer
#pragma config MCLRE = OFF // MCLR Pin Function Select bit->MCLR pin function is digital input, MCLR internally tied to VDD
#pragma config CP = OFF // Code Protection
#pragma config LVP = OFF // Low-Voltage Programming
#pragma config LPBOR = ON // Brown-out Reset Selection bits
#pragma config BORV = LO // Brown-out Reset Voltage Selection
#pragma config WRT = OFF // Flash Memory Self-Write Protection