Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

EINT2 Problems on LPC2124

2005-09-07 by fbpmania

Hello everyone,

i´ve got a problem with the configuration of the external interrupt
EINT2(P0.15). The controller hangs up after 
"VICIntEnable = (1<<VIC_EINT2);           // Enable EINT2".

This is my code(gcc):

void EINT2_ISR(void){
  toggle_led();
  SCB_EXTINT = (1<<2);
  VICVectAddr = 0;
}

void init_interrupts(void){
  VICVectAddr0 = (unsigned long)EINT2_ISR;    // Save ISR Adress
  VICVectCntl0 = (1<<5) | (1<<VIC_EINT2);     // Enable VIC Control
Register
  VICIntEnable = (1<<VIC_EINT2);           // Enable EINT2
  toggle_led();
}

Here is the pinselect:
PCB_PINSEL0 = (1<<0)|(1<<2)|(1<<31); //UART0 TXD/RXD ,EINT2 on P0.15

And the define for VIC_EINT2:
#define VIC_EINT2       16

I can´t recognize any toggles of the LED.

Thanks for your efforts.

Greetings

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.