yamine
Member level 1
Hello everybody; i neeeeeeeed your help please !
this is my program :
this is the error after compilation (with MPLAB v8.84, et MPLABC v3.41) ;
Error - could not find definition of symbol 'YourHighPriorityISRCode' in file './main.o'.
please help me !
this is my program :
Code:
/** INCLUDES *******************************************************/
#include <p18cxxx.h>
#include "bootloader.h"
void low_ISR (void);
void YourLowPriorityISRCode(void);
#pragma code low_vector = 0x18
void low_ISR (void)
{
_asm goto YourLowPriorityISRCode _endasm
}
#pragma code
#pragma interruptlow YourLowPriorityISRCode
void YourLowPriorityISRCode(void)
{
INTCONbits.TMR0IF = 0; //Clear Timer 0 Interrupt Flag
LATBbits.LATB0 =!(LATBbits.LATB0) ; //inverse the output
}
/** Ports Init ******************************************/
void Init_Portb(void)
{
TRISBbits.TRISB0 = 0; //RB0 = output
LATBbits.LATB0 = 0;
}
/** TIMER0 Init ******************************************/
void EnableTimer (void)
{
TMR0H = 0x00;
TMR0L = 0x00;
T0CON = 0x01; // Timer disabled; prescalar of 1:4; 16 bit mode
RCONbits.IPEN = 1; //Enable Interrupt Priorities
INTCONbits.GIEL = 1; //Enable Low Priority Interrupt
INTCONbits.GIE = 1; //Enable GlobalInterrupt
INTCONbits.TMR0IE = 1; //Enable Timer0 Interrupt
INTCON2bits.TMR0IP = 0; //TMR0 set to Low Priority Interrupt
T0CONbits.TMR0ON = 1; //Start Timer0
}
/** MAIN Programm *************************************************/
void main(void)
{
Init_Portb();
EnableTimer();
while(1);
}
this is the error after compilation (with MPLAB v8.84, et MPLABC v3.41) ;
Error - could not find definition of symbol 'YourHighPriorityISRCode' in file './main.o'.
please help me !