I just bought the pickit3 and try to learn programming using ccs compiler. I try to to get the LED light up but couldn't get the internal xtal working. please take a look at my code and see how do i make it work. any help is appreciated. Thank you.
Have u simulated your code on proteus? If it is working properly in simulation, then there may b problem in your circuit or configuration settings. Also try the following code in simulation.
#include <18f45k20.h>
// #include <stdio.h> // no need of this file
void main (void)
{
// set_tris_d(0); // no need of this command
while (TRUE)
{
output_high(PIN_D1);
delay_ms(3000);
output_low(PIN_D1);
delay_ms(3000);
}
}