onde
Junior Member level 1
ext-int-Problem with c51
Hi,
i just tried the following programm:
#pragma INTVECTOR(0x8000)
#include <reg517.h>
void ex0_isr (void) interrupt 0
{
P4 = 255;
}
void main (void)
{
IT0 = 0;
EX0 = 1; // Enable EX0 Interrupt
EAL = 1;
P4=0;
while(1)
{
}
}
The problem is, the programm reaches never P4=255;
Before I tried different timer-interrupt programms, they are all working well, so I think uVision 2 is configured correctly.
Some Ideas ??
onde
Hi,
i just tried the following programm:
#pragma INTVECTOR(0x8000)
#include <reg517.h>
void ex0_isr (void) interrupt 0
{
P4 = 255;
}
void main (void)
{
IT0 = 0;
EX0 = 1; // Enable EX0 Interrupt
EAL = 1;
P4=0;
while(1)
{
}
}
The problem is, the programm reaches never P4=255;
Before I tried different timer-interrupt programms, they are all working well, so I think uVision 2 is configured correctly.
Some Ideas ??
onde