Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/11/01 18:47
Read: times


 
#13151 - External Interrupts in C
I am using a Keil uVision2 compiler to write code on an Atmel 89LV51.

I am trying to execute an interrupt on INT0' with a high to low transition.

For some reason the interrupt never happens.

Here is my 'code':

void main(void)
{

[bunch of code here]
INT0=1;
IE = 0x83; // setup interrupts
while (1) // do nothing except
EX0=1; // enable INT0'

}

void interrupt_routine(void) interrupt 0
{

EX0=0; // Turn off INT0
          ...
EX0=1;          //   Re-enable INT0
}


Would anybody have any idea what I am missing.

List of 8 messages in thread
TopicAuthorDate
External Interrupts in C            01/01/70 00:00      
RE: External Interrupts in C            01/01/70 00:00      
RE: External Interrupts in C            01/01/70 00:00      
RE: External Interrupts in C            01/01/70 00:00      
RE: External Interrupts in C            01/01/70 00:00      
RE: External Interrupts in C            01/01/70 00:00      
RE: External Interrupts in C            01/01/70 00:00      
RE: External Interrupts in C            01/01/70 00:00      

Back to Subject List