PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun May 18, 2008 8:41 am |
|
|
Try this program. It will blink an LED on pin B0. It uses the internal
oscillator instead of the external crystal. Try it, exactly as shown below.
Code: |
#include <16F88.H>
#fuses INTRC_IO, NOWDT, BROWNOUT, PUT, NOLVP
#use delay(clock=8000000)
void main()
{
while(1)
{
output_high(PIN_B0);
delay_ms(500);
output_low(PIN_B0);
delay_ms(500);
}
} |
|
|