Beginner with PICs and sorry in advance if I missed a thread that covered this.
I bought a PICKit 3 Express and none of the software mentioned in the tutorial is easily available so I am using MPLab X with XC8 Compiler. I've set the PICKit 3 to provide the voltage as well.
My source code (below) seems to build fine and it even says it is programming but nothing is happening on my board. Any help would be excellent.
#include <xc.h>
#include <stdio.h>
#include <stdlib.h>
#define _XTAL_FREQ 1000000
/*
*
*/
void main(void)
{
PORTD = 0;
TRISD = 0b00000000;
LATDbits.LATD7 = 1;
while (1);
}
I bought a PICKit 3 Express and none of the software mentioned in the tutorial is easily available so I am using MPLab X with XC8 Compiler. I've set the PICKit 3 to provide the voltage as well.
My source code (below) seems to build fine and it even says it is programming but nothing is happening on my board. Any help would be excellent.
#include <xc.h>
#include <stdio.h>
#include <stdlib.h>
#define _XTAL_FREQ 1000000
/*
*
*/
void main(void)
{
PORTD = 0;
TRISD = 0b00000000;
LATDbits.LATD7 = 1;
while (1);
}