EmbeddedRelated.com
Forums

LPC2106 edge and level interrupt

Started by bluehash9 May 31, 2007
Hello,
Does the LPC2106 have a level and edge interrupt setting.
I cannot find any reference of EXTPOLAR or EXTMODE in the datasheet.

Can I still use it.
Can you reference me to a page which details it.

Thank you.

Gerard

An Engineer's Guide to the LPC2100 Series

----- Original Message -----
From: "bluehash9"
To:
Sent: Thursday, May 31, 2007 10:15 PM
Subject: [lpc2000] LPC2106 edge and level interrupt
> Hello,
> Does the LPC2106 have a level and edge interrupt setting.
> I cannot find any reference of EXTPOLAR or EXTMODE in the datasheet.
>
> Can I still use it.
> Can you reference me to a page which details it.

It's probably in the User Manual, you need to read that as well as the data
sheet..

Leon
--- In l..., "bluehash9" wrote:
>
> Hello,
> Does the LPC2106 have a level and edge interrupt setting.
> I cannot find any reference of EXTPOLAR or EXTMODE in the datasheet.
>
> Can I still use it.
> Can you reference me to a page which details it.
>
> Thank you.
>
> Gerard
>
Dear Gerard. The LPC2106 can only do level interrupts. Page 40 has the
information you are looking for.

regards,
Charles
>From: "charlesgrenz"
>Reply-To: l...
>To: l...
>Subject: [lpc2000] Re: LPC2106 edge and level interrupt
>Date: Thu, 31 May 2007 23:48:33 -0000
>
>--- In l..., "bluehash9" wrote:
> >
> > Hello,
> > Does the LPC2106 have a level and edge interrupt setting.
> > I cannot find any reference of EXTPOLAR or EXTMODE in the datasheet.
> >
> > Can I still use it.
> > Can you reference me to a page which details it.
> >
> > Thank you.
> >
> > Gerard
> >
>Dear Gerard. The LPC2106 can only do level interrupts. Page 40 has the
>information you are looking for.
>
>regards,
>Charles
>
I had to use a timer input pin to get an edge.

_________________________________________________________________
Dont miss your chance to WIN $10,000 and other great prizes from Microsoft
Office Live http://clk.atdmt.com/MRT/go/aub0540003042mrt/direct/01/
The 2106 has only a level type interrupt, which is almost useless. The
problem is that he only enters in the ISR with low level at the pin (its not
configurable to use high or low, only low) and as far as the signal is low,
the INT flag stay active. You can use a flip flop to make a edge signal into
a level signal, and you need another GPIO to clear the flip flop, but thats
terrible.
I find a use for the 2106 interrupt, unbeliveble! The A/D converter AD7730
from Analog Devices has a pin that goes low when a new conversion is ready,
and when you read the value of the conversion (via SPI) the signal goes
high. Thats the only use I found for the external interrupt of the 2106...

2007/5/31, bluehash9 :
>
> Hello,
> Does the LPC2106 have a level and edge interrupt setting.
> I cannot find any reference of EXTPOLAR or EXTMODE in the datasheet.
>
> Can I still use it.
> Can you reference me to a page which details it.
>
> Thank you.
>
> Gerard
>
>
>
--- In l..., "David Lee" wrote:
>
> >From: "charlesgrenz"
> >Reply-To: l...
> >To: l...
> >Subject: [lpc2000] Re: LPC2106 edge and level interrupt
> >Date: Thu, 31 May 2007 23:48:33 -0000
> >
> >--- In l..., "bluehash9" wrote:
> > >
> > > Hello,
> > > Does the LPC2106 have a level and edge interrupt setting.
> > > I cannot find any reference of EXTPOLAR or EXTMODE in the datasheet.
> > >
> > > Can I still use it.
> > > Can you reference me to a page which details it.
> > >
> > > Thank you.
> > >
> > > Gerard
> > >
> >Dear Gerard. The LPC2106 can only do level interrupts. Page 40 has the
> >information you are looking for.
> >
> >regards,
> >Charles
> >
> I had to use a timer input pin to get an edge.
>
> _________________________________________________________________
> Don't miss your chance to WIN $10,000 and other great prizes from
Microsoft
> Office Live http://clk.atdmt.com/MRT/go/aub0540003042mrt/direct/01/
>

Thank you to all who answered.Since I have to count wheel ticks from
an encoder, I need both rising and falling edges.As David Lee
suggested I can use the Timer1 or Timer0 capture pins to generate
interrupts and use a soft counter to count ticks.

I wish they had edge triggered interrupts, all the major PICS do.

Regards,
Gerard