rccman
Newbie level 1
Hi all,
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.
#include <18f45k20.h>
#include <stdio.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(internal=4MHz)
void main (void)
{
set_tris_d(0);
while (1)
{
output_high(pin_D1);
delay_ms(3000);
}
}
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.
#include <18f45k20.h>
#include <stdio.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(internal=4MHz)
void main (void)
{
set_tris_d(0);
while (1)
{
output_high(pin_D1);
delay_ms(3000);
}
}