EmbeddedRelated.com
Forums

VICVectCntl and VICIntEnable register setting Help

Started by swaroop jr May 23, 2010
Hello,

I am trying to enable Timer0 and Timer1 interrupt in LPC2129.
But I am not sure of VICVectCntl and VICIntEnable register setting.One of the forums says that below settings can be used for Timer0.

VICVectCntl0 = 0x00000024;//Set channel
VICIntEnable |= 0x00000010; //Enable the interrupt

When I used below settings it works. But I want to know, VICVectCntl and VICIntEnable register setting details. How can I use these registers to enable Timer1 and other interrupts. I didn't find any bit details of these registers.

User manual says: -
VICVectCntl : Vector Control Registers 0-15 each control one
of the 16 vectored IRQ slots. Slot 0 has the highest priority and slot 15
the lowest.

VICIntEnable : Interrupt Enable Register. This register controls which of the 32 interrupt
requests and software interrupts are enabled to contribute to FIQ or
IRQ.

But with this information I am unable to enable Timer1 and other interrupts. Anybody who can help me giving more information of these VIC registers?

Best Regards
Swaroop JR

An Engineer's Guide to the LPC2100 Series