Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] EINT2 Problems on LPC2124

2005-09-07 by Gilles FAURIE

Hello,

For a LPC 2294 i had a problem with EINT2. When i was configurating EXTMODE 
(EXTINT in your example) register my program was hanging.

I found solution in errata sheet. There is a problem with EINT2 and VPBDIV.

to program EXTMODE you must follow this procedure :
        sauve_VPBDIV = VPBDIV;
        VPBDIV  = 0;
        EXTMODE = 4;
        VPBDIV  = 4;
        VPBDIV  = sauve_VPBDIV;

Perhaps you have the same problem on LPC2124 see erra sheet of philipps.


----- Original Message ----- 
From: "fbpmania" <pmania@...>
To: <lpc2000@yahoogroups.com>
Sent: Wednesday, September 07, 2005 11:16 AM
Subject: [lpc2000] EINT2 Problems on LPC2124


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






Yahoo! Groups Links

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.