This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PROBLEM USING ISR

sir, in below code how do we get to know that interrupt is enabled or not?..because in step into the control is not going to ISR .

#include<stdio.h>
#include <ADUC842.H>

sbit intr=P0^2;
void ex0_isr (void) interrupt 0
{ intr=~intr; EX0=0;
}

void main()

{

IT0 = 1; // Configure interrupt 0 for falling edge on /INT0 (P3.2)
EX0 = 1; // Enable EX0 Interrupt
EA = 1; // Enable Global Interrupt Flag

}