Forums

UART0 vs UART1

Started by dimaissaev February 25, 2005

Hi all.

Could anyone explane me what different between UART1 and UART0 (except
modem control register in UART1).

I can't understant NOTHING!
Two equal initialization. Equal ISR but when I try to work with UART1,
system hand-up. UART0 working absolutely normal. Exactly like in PDF,
without ANY problem.



An Engineer's Guide to the LPC2100 Series

Hi,

Could you please send me the code for UART0.

Here i am facing some problem with UART0.

I am unable to send any charector to Hyper Terminal..

Thanks in advance.

-Srinivas.

dimaissaev <> wrote:

Hi all.

Could anyone explane me what different between UART1 and UART0 (except
modem control register in UART1).

I can't understant NOTHING!
Two equal initialization. Equal ISR but when I try to work with UART1,
system hand-up. UART0 working absolutely normal. Exactly like in PDF,
without ANY problem.

---------------------------------
Yahoo! Groups Links

To __________________________________________________




At 01:49 AM 2/25/05 -0800, Srinivasa Reddy Mannem wrote:
>Could you please send me the code for UART0.

There are examples in the files download area. The newlib-lpc library (
http://www.aeolusdevelopment.com ) has drivers for both UARTS both polled
and interrupt driven.

Robert

" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "

Kelvin Throop, III



I've been having a terrible time with getting the interrupts working
on the LPC2294 using the Keils tools. The code being created seems
fine, but if I try and enable the interrupts, sometimes it will work,
sometimes they are ignored and sometimes the processor just locks up.
I generally have to spend an hour or so trying to figure out what
order to initilize things in before they work.

--- In , "dimaissaev" <dimaissaev@y...> wrote:
>
> Hi all.
>
> Could anyone explane me what different between UART1 and UART0 (except
> modem control register in UART1).
>
> I can't understant NOTHING!
> Two equal initialization. Equal ISR but when I try to work with UART1,
> system hand-up. UART0 working absolutely normal. Exactly like in PDF,
> without ANY problem.




--- In , Robert Adsett <subscriptions@a...>
wrote:
> At 01:49 AM 2/25/05 -0800, Srinivasa Reddy Mannem wrote:
> >Could you please send me the code for UART0.
>
> There are examples in the files download area. The newlib-lpc
library (
> http://www.aeolusdevelopment.com ) has drivers for both UARTS both
polled
> and interrupt driven.

I can't use this interrupt by many reason. The main is Ineed a nested
interrupts.

And I think that I have a problem with them.



At 11:35 PM 2/25/05 +0000, dimaissaev wrote:
>--- In , Robert Adsett <subscriptions@a...>
>wrote:
> > At 01:49 AM 2/25/05 -0800, Srinivasa Reddy Mannem wrote:
> > >Could you please send me the code for UART0.
> >
> > There are examples in the files download area. The newlib-lpc
>library (
> > http://www.aeolusdevelopment.com ) has drivers for both UARTS both
>polled
> > and interrupt driven.
>
>I can't use this interrupt by many reason. The main is Ineed a nested
>interrupts.

They would still be a way to verify your own approach didn't leave anything
out though. >And I think that I have a problem with them.

Which raises two questions
Have you verified that you have working non-nested interrupts? Always
get the simpler case to work first.
Are you absolutely certain you need nested interrupts?

I strongly suspect that nested interrupts will require an assembly language
shim. I would advise using such a shim even for standard interrupts but
not everyone shares my paranoia on that :)

Robert

" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "

Kelvin Throop, III