Problema con simulacion en proteus con C

Hola, estoy empezando a programar en C el PIC 16F877 y he echo un programa para que se encienda y se apague un led, algo sencillo, pero a la hora de simular en proteus me sale este error:

[PIC16LOAD] Program or EEPROM data has invalid address [2000] for this device
[PIC16LOAD] Program or EEPROM data has invalid address [2001] for this device
[PIC16LOAD] Program or EEPROM data has invalid address [2002] for this device
[PIC16LOAD] Program or EEPROM data has invalid address [2003] for this device


el programa es este:
Código:
#include <16F877A.h>

#FUSES NOWDT                    //
#FUSES XT                        //
//#FUSES NOPUT                    //
//#FUSES NOPROTECT                //
//#FUSES NODEBUG                //
//#FUSES NOBROWNOUT                //
//#FUSES NOLVP                    //
//#FUSES NOCPD                    //
//#FUSES WRT_50%                //

#use delay (clock=4000000)        // relog a 4 MHz
#BYTE TRISB = 0x86                // variable TRISB en 86h
#BYTE PORTB = 0x06                // variable PORTB en 06h
#BYTE OPTION_REG = 0x81            // variable OPTION_REG en 81h

void main ()
{    bit_clear (OPTION_REG,7) ;    // habilitación pull-up. OPTION_REG.7=0
    TRISB = 0x00                // Puerto B= B0...B7 son salidas
    output_bit(pin_B0,0) ;        // Apaga B.0
    while (true)
    {
        output_bit (pin_B0,0) ;    // Apaga B.0
        delay_ms (1000) ;        // Espera 1s
        output_bit (pin_B0,1) ;    // Enciende B.0
        delay_ms (1000) ;        // Espera 1s
    }
}
Gracias
 
Atrás
Arriba