Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ARM7 lpc214 help about VIC_Vector_IRQ

Status
Not open for further replies.

hbaocr

Full Member level 4
Joined
May 13, 2007
Messages
235
Helped
25
Reputation
48
Reaction score
5
Trophy points
1,298
Location
Hochiminh City university of technology (VietNam)
Activity points
2,777
lpc214

helllo , all friend
I have just learn ARM7 LPC2148 and I have some problem about VIC when it assigned to IRQ_vector.My problem means, how can I use more than one IRQ interrupt (IRQ vector) at the same time . and the code for it. Some friend tell me After I allow Interrupt sources which I want ,I can assign each ISR_routine functions to VICvectorAddr0,VICvectorAddr1,...etc(example VICvectorAddr0=unsigned(ISR_routine function1)
VICvectorAddr1=unsigned(ISR_routine function2)

) but I don't know how Arm can recognise which ISR_routine function service for which Vector IRQ interrupt-sources.
 

Encrypted

Advanced Member level 4
Joined
May 28, 2001
Messages
115
Helped
17
Reputation
36
Reaction score
5
Trophy points
1,298
Activity points
705
lpc214 programming

You need to read about the Vector Control Register (VICVectCntl).
The Vector Control Register contains two fields: a channel field and an enable bit. By programming the channel
field, any interrupt channel may be connected to any given slot and then activated using the enable bit. The
priority of a vectored interrupt is given by its slot number, the lower the slot number, the more important the
interrupt.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top