cancel
Showing results for 
Search instead for 
Did you mean: 

External interrupt

neil2399
Associate II
Posted on March 08, 2007 at 06:43

External interrupt

2 REPLIES 2
neil2399
Associate II
Posted on March 01, 2007 at 14:12

Hi Guys.

I'm using a STR712FR2 with the Rowley Crossworks IDE.

I'm having problems with my external interrupts, in that I can't exit the interrupt function.

I'm using P0.10.

I initialised the interrupts as follows:

P0.10 as a TTL input.

XTI->MRH |= 0x20;

XTI->TRH |= 0x20;

EIC->IER0 |= 0x20;

And I set the priority and enable global interrupts.

But like I said my problem isn't entering the interrupt, it's exiting it.

The code supplied by Rowley takes care of reading the IVR and before I exit the function I do the following:

EIC->IPR |= 0x20;

XTI->PRH |= 0x20;

and I read port 0 on the advice of a colleague.

Can anyone tell me what I might be doing wrong?

Thanks

Neil

neil2399
Associate II
Posted on March 08, 2007 at 06:43

Thanks Zouhair.

I've been able to get my interrupt going using parts of the STR71x lib.

Neil