EmbeddedRelated.com
Forums
Memfault Beyond the Launch

GPIO interrupt

Started by c.pa...@acevin.com May 20, 2008
I am trying to use a rising edge GPIO interrupt for KEY PAD interfacing on P2.0 to p2.5.

I setup the pin as an input

PINMODE4 = 0x00000AAA;

I also setup the IO2_INT_EN_R to enable the rising edge interrupt.
IO2_INT_CLR = 0x0000003F;
IO2_INT_EN_R = 0x0000003F;

Also then load and enable the VIC channel. I see in the docs that
EINT3 - channel 17 - is shared with GPIO interrupts.

VICVectAddr17 = (uint32)eint3_int;
VICIntEnable = (1 << 17);

When I press any key I never get any interrupt.

Can any one help????/

An Engineer's Guide to the LPC2100 Series

hi,
which microcontroller are you using.
On 5/20/08, c...@acevin.com wrote:
>
> I am trying to use a rising edge GPIO interrupt for KEY PAD interfacing
> on P2.0 to p2.5.
>
> I setup the pin as an input
>
> PINMODE4 = 0x00000AAA;
>
> I also setup the IO2_INT_EN_R to enable the rising edge interrupt.
> IO2_INT_CLR = 0x0000003F;
> IO2_INT_EN_R = 0x0000003F;
>
> Also then load and enable the VIC channel. I see in the docs that
> EINT3 - channel 17 - is shared with GPIO interrupts.
>
> VICVectAddr17 = (uint32)eint3_int;
> VICIntEnable = (1 << 17);
>
> When I press any key I never get any interrupt.
>
> Can any one help????/
>

LPC 2368
----- Original Message -----
From: ravi yakkundi
To: l...
Sent: Tuesday, May 20, 2008 7:33 PM
Subject: Re: [lpc2000] GPIO interrupt
hi,
which microcontroller are you using.

On 5/20/08, c...@acevin.com wrote:
>
> I am trying to use a rising edge GPIO interrupt for KEY PAD interfacing
> on P2.0 to p2.5.
>
> I setup the pin as an input
>
> PINMODE4 = 0x00000AAA;
>
> I also setup the IO2_INT_EN_R to enable the rising edge interrupt.
> IO2_INT_CLR = 0x0000003F;
> IO2_INT_EN_R = 0x0000003F;
>
> Also then load and enable the VIC channel. I see in the docs that
> EINT3 - channel 17 - is shared with GPIO interrupts.
>
> VICVectAddr17 = (uint32)eint3_int;
> VICIntEnable = (1 << 17);
>
> When I press any key I never get any interrupt.
>
> Can any one help????/
>
>
>




Did you enable FAST GPIO?

Thank you & Regards,
Chandrashekhar.

c...@acevin.com
Sent by: l...
05/20/2008 06:27 PM
Please respond to
l...
To
l...
cc

Subject
[lpc2000] GPIO interrupt

I am trying to use a rising edge GPIO interrupt for KEY PAD interfacing on
P2.0 to p2.5.

I setup the pin as an input

PINMODE4 = 0x00000AAA;

I also setup the IO2_INT_EN_R to enable the rising edge interrupt.
IO2_INT_CLR = 0x0000003F;
IO2_INT_EN_R = 0x0000003F;

Also then load and enable the VIC channel. I see in the docs that
EINT3 - channel 17 - is shared with GPIO interrupts.

VICVectAddr17 = (uint32)eint3_int;
VICIntEnable = (1 << 17);

When I press any key I never get any interrupt.

Can any one help????/

ForwardSourceID:NT00002DF2
=====-----=====-----====Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


which register ?
----- Original Message -----
From: Chandrashekhar Kulkarni
To: l...
Cc: l...
Sent: Wednesday, May 21, 2008 4:31 PM
Subject: Re: [lpc2000] GPIO interrupt
Did you enable FAST GPIO?

Thank you & Regards,
Chandrashekhar.

c...@acevin.com
Sent by: l...
05/20/2008 06:27 PM
Please respond to
l...

To
l...
cc

Subject
[lpc2000] GPIO interrupt

I am trying to use a rising edge GPIO interrupt for KEY PAD interfacing on
P2.0 to p2.5.

I setup the pin as an input

PINMODE4 = 0x00000AAA;

I also setup the IO2_INT_EN_R to enable the rising edge interrupt.
IO2_INT_CLR = 0x0000003F;
IO2_INT_EN_R = 0x0000003F;

Also then load and enable the VIC channel. I see in the docs that
EINT3 - channel 17 - is shared with GPIO interrupts.

VICVectAddr17 = (uint32)eint3_int;
VICIntEnable = (1 << 17);

When I press any key I never get any interrupt.

Can any one help????/

ForwardSourceID:NT00002DF2
=====-----=====-----==== Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you




SCS - bit 0.

But that's not the problem, since you're using port 2. The fast GPIO bit
only pertains to port 0 and 1.

What processor are you using? LPC2.?

~ Paul Claessen

From: l... [mailto:l...] On Behalf Of
Chanchala Patil
Sent: Wednesday, May 21, 2008 9:41 AM
To: l...
Subject: Re: [lpc2000] GPIO interrupt

which register ?

----- Original Message -----
From: Chandrashekhar Kulkarni
To: l...
Cc: l...
Sent: Wednesday, May 21, 2008 4:31 PM
Subject: Re: [lpc2000] GPIO interrupt

Did you enable FAST GPIO?

Thank you & Regards,
Chandrashekhar.

c...@acevin.com
Sent by: l...
05/20/2008 06:27 PM
Please respond to
l...

To
l...
cc

Subject
[lpc2000] GPIO interrupt

I am trying to use a rising edge GPIO interrupt for KEY PAD interfacing on
P2.0 to p2.5.

I setup the pin as an input

PINMODE4 = 0x00000AAA;

I also setup the IO2_INT_EN_R to enable the rising edge interrupt.
IO2_INT_CLR = 0x0000003F;
IO2_INT_EN_R = 0x0000003F;

Also then load and enable the VIC channel. I see in the docs that
EINT3 - channel 17 - is shared with GPIO interrupts.

VICVectAddr17 = (uint32)eint3_int;
VICIntEnable = (1 << 17);

When I press any key I never get any interrupt.

Can any one help????/


LPC 2368
----- Original Message -----
From: Paul Claessen
To: l...
Sent: Wednesday, May 21, 2008 7:21 PM
Subject: RE: [lpc2000] GPIO interrupt
SCS - bit 0.

But that's not the problem, since you're using port 2. The fast GPIO bit
only pertains to port 0 and 1.

What processor are you using? LPC2.?

~ Paul Claessen

From: l... [mailto:l...] On Behalf Of
Chanchala Patil
Sent: Wednesday, May 21, 2008 9:41 AM
To: l...
Subject: Re: [lpc2000] GPIO interrupt
which register ?
----- Original Message -----
From: Chandrashekhar Kulkarni
To: l...
Cc: l...
Sent: Wednesday, May 21, 2008 4:31 PM
Subject: Re: [lpc2000] GPIO interrupt

Did you enable FAST GPIO?

Thank you & Regards,
Chandrashekhar.

c...@acevin.com
Sent by: l...
05/20/2008 06:27 PM
Please respond to
l...

To
l...
cc

Subject
[lpc2000] GPIO interrupt

I am trying to use a rising edge GPIO interrupt for KEY PAD interfacing on
P2.0 to p2.5.

I setup the pin as an input

PINMODE4 = 0x00000AAA;

I also setup the IO2_INT_EN_R to enable the rising edge interrupt.
IO2_INT_CLR = 0x0000003F;
IO2_INT_EN_R = 0x0000003F;

Also then load and enable the VIC channel. I see in the docs that
EINT3 - channel 17 - is shared with GPIO interrupts.

VICVectAddr17 = (uint32)eint3_int;
VICIntEnable = (1 << 17);

When I press any key I never get any interrupt.

Can any one help????/




I am using LPC 2368

what are the register to be define to assess the GPIO interrupt on Port 2.???
help??????????
----- Original Message -----
From: Paul Claessen
To: l...
Sent: Wednesday, May 21, 2008 7:21 PM
Subject: RE: [lpc2000] GPIO interrupt
SCS - bit 0.

But that's not the problem, since you're using port 2. The fast GPIO bit
only pertains to port 0 and 1.

What processor are you using? LPC2.?

~ Paul Claessen

From: l... [mailto:l...] On Behalf Of
Chanchala Patil
Sent: Wednesday, May 21, 2008 9:41 AM
To: l...
Subject: Re: [lpc2000] GPIO interrupt
which register ?
----- Original Message -----
From: Chandrashekhar Kulkarni
To: l...
Cc: l...
Sent: Wednesday, May 21, 2008 4:31 PM
Subject: Re: [lpc2000] GPIO interrupt

Did you enable FAST GPIO?

Thank you & Regards,
Chandrashekhar.

c...@acevin.com
Sent by: l...
05/20/2008 06:27 PM
Please respond to
l...

To
l...
cc

Subject
[lpc2000] GPIO interrupt

I am trying to use a rising edge GPIO interrupt for KEY PAD interfacing on
P2.0 to p2.5.

I setup the pin as an input

PINMODE4 = 0x00000AAA;

I also setup the IO2_INT_EN_R to enable the rising edge interrupt.
IO2_INT_CLR = 0x0000003F;
IO2_INT_EN_R = 0x0000003F;

Also then load and enable the VIC channel. I see in the docs that
EINT3 - channel 17 - is shared with GPIO interrupts.

VICVectAddr17 = (uint32)eint3_int;
VICIntEnable = (1 << 17);

When I press any key I never get any interrupt.

Can any one help????/




Ok (2368), then what I said about SCS is correct (it's slightly different
for LPC21.. and LPC22..)
Anyway. you don't have to set any other registers for port2. These are
ALWAYS fast GPIO.

Why are you setting PINMODE4? That's not for direction, that's for
pull-up/down resistors.
You probably don't need it.

And input is the default direction.
Haven't looked at your values yet, but try removing that PINMODE4 thing.

~ Paul Claessen

From: l... [mailto:l...] On Behalf Of
Chanchala Patil
Sent: Wednesday, May 21, 2008 9:58 AM
To: l...
Subject: Re: [lpc2000] GPIO interrupt

I am using LPC 2368

what are the register to be define to assess the GPIO interrupt on Port
2.???

help??????????
----- Original Message -----
From: Paul Claessen
To: l...
Sent: Wednesday, May 21, 2008 7:21 PM
Subject: RE: [lpc2000] GPIO interrupt

SCS - bit 0.

But that's not the problem, since you're using port 2. The fast GPIO bit
only pertains to port 0 and 1.

What processor are you using? LPC2.?

~ Paul Claessen

From: l...
[mailto:l... ] On
Behalf Of
Chanchala Patil
Sent: Wednesday, May 21, 2008 9:41 AM
To: l...
Subject: Re: [lpc2000] GPIO interrupt

which register ?

----- Original Message -----
From: Chandrashekhar Kulkarni
To: l...

Cc: l...

Sent: Wednesday, May 21, 2008 4:31 PM
Subject: Re: [lpc2000] GPIO interrupt

Did you enable FAST GPIO?

Thank you & Regards,
Chandrashekhar.

c...@acevin.com

Sent by: l...

05/20/2008 06:27 PM
Please respond to
l...


To
l...

cc

Subject
[lpc2000] GPIO interrupt

I am trying to use a rising edge GPIO interrupt for KEY PAD interfacing on
P2.0 to p2.5.

I setup the pin as an input

PINMODE4 = 0x00000AAA;

I also setup the IO2_INT_EN_R to enable the rising edge interrupt.
IO2_INT_CLR = 0x0000003F;
IO2_INT_EN_R = 0x0000003F;

Also then load and enable the VIC channel. I see in the docs that
EINT3 - channel 17 - is shared with GPIO interrupts.

VICVectAddr17 = (uint32)eint3_int;
VICIntEnable = (1 << 17);

When I press any key I never get any interrupt.

Can any one help????/







Memfault Beyond the Launch