I am trying to use CCS compiler to work with ECIO40. I am using the MPLAB IDE.
Currently all I am trying to do is light up an LED. However, once the PIC is programmed, the onboard LED keeps blinking as if it is in reset - and does not light up the LED I am expecting. My code is as follows;
Code: Select all
#include <18F4455.h>
#build(reset=0x800)
#build(interrupt=0x808)
#org 0x0000, 0x07ff {} // Reserve space for the bootloader
void bootloader()
{
#asm
nop
#endasm
}
#use delay(clock=48000000)
void main()
{
output_low(PIN_D3);
while(1)
{
output_high(PIN_D3);
delay_ms(1000);
output_low(PIN_D3);
delay_ms(1000);
}
}
Thanks.
PS> I've set all the configuration bits from the MPLAB IDE hence it is not set in code as fuses - incase any one is wondering.