PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Aug 21, 2007 12:04 pm |
|
|
Try the following test program. See if it works. The oscillator fuse
is set for EC_IO. Change the #use delay() statement to match your
oscillator frequency.
Code: |
#include <18F452.h>
#fuses EC_IO, NOWDT, PUT, BROWNOUT, NOLVP
#use delay(clock=20000000)
//===========================
void main()
{
while(1)
{
output_high(PIN_B0); // LED on
delay_ms(500);
output_low(PIN_B0); // LED off
delay_ms(500);
}
} |
|
|