You are on page 1of 1

//Programa : Pisca LED com PIC18F4550

#include <18f4550.h>

//#fuses NOMCLR INTRC_IO


#fuses INTRC
#BYTE OSCCON = 0xFd3
#use delay(clock=8000000)

void main(void)
{
//setup_oscillator(OSC_8MHZ);
OSCCON = 0x72;
while (1)
{
output_high(pin_a0);
delay_ms(1000);
output_low(pin_a0);
delay_ms(1000);
}

You might also like