At 06:17 PM 6/7/04 +0000, you wrote:
>I'm using the BlinkIRQ startup example. One line of the file is:
>
> LDR PC, [PC, #-0x0FF0] /* Vector from VicVectAddr */
That's what I was referring to. I just want to verify. Lets take a closer
look.
>this is the address 0x18...Well I think that, when a interrupt
>occurs, my program goes to address 0x18, which redirects to the
>address loaded in the VICVectAddr... In the Blink example just the
>VIC and TIMER0 register are adjusted...I'm a begginer with the ARM
>Arquitecture, and I don't have time now to learn ARM or THUMB
>Assembly, maybe after this project I can study more, now I need to
>solve all problems ACAP ( As C As Possible ) :-)
Every time It's bitten me I've found I would have saved much more time
simply learning a little of the MCU assembly language concerned. I've
stopped considering the compilers proprietary interrupt keywords helpful :)
--- In lpc2000@yahoogroups.com, Robert Adsett <subscriptions@a...>
>wrote:
> > At 05:02 PM 6/7/04 +0000, you wrote:
> > >signal. I'm supposed to use it as an ExtInt...I did the following
> > >setup sequence:
> > >
I'm assuming you are using a 2104/5/6?
> > >EXTMODE = SETBIT1;//Interrupção na borda de descida
Two questions. What's EXTMODE? and What's SETBIT1?
> > >PINSEL0 |= 0x000000C0;//P0.3 ajustado para EINT1
Shouldn't this be something more like
PINSEL0 |= 0x20000000;
I believe you've set P0.3 to a reserved state.
> > >VICVectAddr0 =(unsigned long)ADISR; //redireciona vetor para
>função
> > >VICVectCntl0 = 0x20 | 15; //Seta vetor de interrupção para INT1
> > >VICIntEnable = SETBIT15; //Habilita interrupção INT1
What is SETBIT15? (0x8000 maybe?)
I'd suspect the setting of PINSEL0.
More questions. How do you know if the external interrupt was responded
to? And if it only responded once how likely are you to miss it?
Robert
" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "
Kelvin Throop, IIIMessage
Re: [lpc2000] Re: External Interrupt
2004-06-07 by Robert Adsett
Attachments
- No local attachments were found for this message.