8 years, 3 months ago.

LPC1768 interrupt handling

Hello, I am updating code from a LPC214x to work on an LPC1768

I am encountering issues with translating VICVect statements

for example, what would the LPC1768 use instead of these lines of code?

VICVectAddr = 0; Acknowledge interrupt by reseting VIC

VICVectAddr1 = (LONG) &DALI_Isr; VICVectCntl1 = 0x24; channel0 on Source#4 ... enabled VICIntEnable |= 0x10; channel#4 is the Timer 0

VICVectAddr0 = (unsigned long)USB_ISR; /* USB Interrupt -> Vector 0 */ VICVectCntl0 = 0x20 | 22; /* USB Interrupt -> IRQ Slot 0 */ VICIntEnable = 1 << 22; /* Enable USB Interrupt */

I have been working on this for months and have not managed to find a solution, so any help would be greatly appreciated

1 Answer

8 years, 3 months ago.

Well you are obviously not using mbed, so for example lpcware forums might be better. Normally these functions should work: http://www.keil.com/pack/doc/cmsis/Core/html/group___n_v_i_c__gr.html. (By the way ClearPendingIRQ is often handled automatically by hardware afaik).