EmbeddedRelated.com
Forums

IAR Interrupt based UART

Started by Hanns Tappeiner January 11, 2009
Hi everyone,

I am using an LPC2103, compiler IAR EW.
While it is easy to get the polled version of UART0 communication to
work, I can't get the interrupt based version to work.

Can anyone point me to an example on how to initialize a simple
interrupt based communication via UART0/1 using IAR EW for an LPC
2103?
Or froma similar controller?
Thanks a lot,
Tappo

An Engineer's Guide to the LPC2100 Series

Hanns Tappeiner wrote:
> Hi everyone,
>
> I am using an LPC2103, compiler IAR EW.
> While it is easy to get the polled version of UART0 communication to
> work, I can't get the interrupt based version to work.
>
> Can anyone point me to an example on how to initialize a simple
> interrupt based communication via UART0/1 using IAR EW for an LPC
> 2103?
> Or froma similar controller?
> Thanks a lot,
> Tappo
>
Hi Tappo,

Just check the IAR examples. There are a few interrupt and polled
versions of the UART control. If you can not find it go to the IAR
website and you can download a complete library of the latest examples.

regards,
Charles

I couldn't find sample code for buffered interrupt driven serial I/O
dual UARTS on the LPC210x. So I wrote my own. Lot of work as a newbie.
--- In l..., "Hanns Tappeiner" wrote:
>
> Hi everyone,
>
> I am using an LPC2103, compiler IAR EW.
> While it is easy to get the polled version of UART0 communication to
> work, I can't get the interrupt based version to work.
>
> Can anyone point me to an example on how to initialize a simple
> interrupt based communication via UART0/1 using IAR EW for an LPC
> 2103?
> Or froma similar controller?
> Thanks a lot,
> Tappo
>

Hi guys,

thanks for the replies.
I found sample code in the examples/NXP/2106 directory which contains the
files lpc210x.c / .h which seem to implement an interrupt based UART for
uart1.

1) Does anyone have experience which that code? Is it working well?
2) It looks compatible to the 2103, is that true?
3) Did I not see the examples for the 2103 or are there none?
Thanks a gain,
Tappo

On 1/12/09, stevech11 wrote:
>
> I couldn't find sample code for buffered interrupt driven serial I/O
> dual UARTS on the LPC210x. So I wrote my own. Lot of work as a newbie.
> --- In l... , "Hanns
> Tappeiner" wrote:
> >
> > Hi everyone,
> >
> > I am using an LPC2103, compiler IAR EW.
> > While it is easy to get the polled version of UART0 communication to
> > work, I can't get the interrupt based version to work.
> >
> > Can anyone point me to an example on how to initialize a simple
> > interrupt based communication via UART0/1 using IAR EW for an LPC
> > 2103?
> > Or froma similar controller?
> >
> >
> > Thanks a lot,
> > Tappo
> >
>