lpcware

LPC1768 interrupt handling

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by ahjajam on Tue Jan 19 07:40:44 MST 2016
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

Outcomes