Gast
#860779
Hallo zusammen,
ich habe probleme mit Interrupt. ich hatte schon low interrupt probiert
und geschafft aber mit high interrupt gibt immer Probleme. das sind
meine Code
#include <p18F4550.h>
#include "zip.h"
#include <delays.h>
#pragma code low_vector=0x18
void interrupt_at_low_vector(void)
{
_asm goto low_isr _endasm
}
#pragma code /* return to default code section */
#pragma interruptlow low_isr
void low_isr(void)
{
if(INTCONbits.TMR0IF)
{
Interrupt_Timer_isr();
INTCONbits.TMR0IF=0;
}
}
#pragma code high_vector =0x08
void interrupt_at_high_vector(void)
{
_asm goto high_isr _endasm
}
#pragma code /*return to default code section*/
#pragma interruptlow high_isr
void high_isr(void)
{
if(PIR1bits.TMR1IF)
{
Interrupt_Timer1();
PIR1bits.TMR1IF=0;
}
}
C:\Users\admin\Desktop\user\HL_interrupt.c:38:Error [1111] undefined
label 'high_isr' in 'interrupt_at_high_vector'
C:\Users\admin\Desktop\user\HL_interrupt.c:47:Warning [2058] call of
function without prototype