Yahoo Groups archive

Lpc2000

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

Thread

Writing EXTINT register

Writing EXTINT register

2004-09-15 by Rodrigo Cesar da Silva Martins

I've tried this piece of code to configure the EINT0 interrupt:
 
PINSEL1 |= 1; // P0.16 as EINT0
EXTMODE=1; // EINT0 edge triggered
EXTPOLAR=0;// falling edge
EXTINT=1; //clear interrupt flag
 
I'm using a LPC2129, with DKARM 1.3 (uVision + GNU) and ULINK
 
The problem is that EXTMODE was not set, so my interrupt was level
triggered.
To solve the problem I've written 3 to EXTMODE (set falling edge in
EINT1 too).
Someone has the same problem?
 
PS:. VPBDIV=0, and I'm not reading nor writing
 
Rodrigo Martins
Intermetric Instrumentos Ltda
(11) 4761-8009
rodrigo@...
 


[Non-text portions of this message have been removed]

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.