EmbeddedRelated.com
Forums

LPC2364 UART3 Issue:

Started by prab...@yahoo.co.in December 24, 2009
LPC2364 UART 3Issue:

I am using LPC2364 and tested UART0,UART1 with Interrupts.
Its working fine.But if i try to test UART3,its not working(Not receiving data).
I have tested UART3 tx part without interrupts based.Its working.
But i didn't test RX part without interrupts method.Is there any limitation in LPC2364 uart3 interrupts or RX part.
I have also enabled power for UART3 by using PCONP.

REG_PCONP |= 1<<25;
REG_PINSEL1 |= 0x003C0000;
Please share your knowlwdge??

UARt0,uart1 working fine.Same type of code
using for UART3 also.But not working.

Thanks in advance.

An Engineer's Guide to the LPC2100 Series

Hi

I had a quick look at the manual and I understand that for the LPC2364, its REG_PINSEL9 that controls the UART3 functions.

REG_PINSEL9 |= 0x0F000000

Regards

Jean-Jacques
--- In l..., prabuisin@... wrote:
>
> LPC2364 UART 3Issue:
>
> I am using LPC2364 and tested UART0,UART1 with Interrupts.
> Its working fine.But if i try to test UART3,its not working(Not receiving data).
> I have tested UART3 tx part without interrupts based.Its working.
> But i didn't test RX part without interrupts method.Is there any limitation in LPC2364 uart3 interrupts or RX part.
> I have also enabled power for UART3 by using PCONP.
>
> REG_PCONP |= 1<<25;
> REG_PINSEL1 |= 0x003C0000;
> Please share your knowlwdge??
>
> UARt0,uart1 working fine.Same type of code
> using for UART3 also.But not working.
>
> Thanks in advance.
>

Jean,
Thanks for ur response.My H/W supporting PINSEL1.

Anyone using LPC2364,please share your knowledge.

Thanks,

________________________________
From: jdauchot
To: l...
Sent: Mon, 28 December, 2009 2:57:26 PM
Subject: [lpc2000] Re: LPC2364 UART3 Issue:

Hi

I had a quick look at the manual and I understand that for the LPC2364, its REG_PINSEL9 that controls the UART3 functions.

REG_PINSEL9 |= 0x0F000000

Regards

Jean-Jacques

--- In lpc2000@yahoogroups .com, prabuisin@.. . wrote:
>
> LPC2364 UART 3Issue:
>
> I am using LPC2364 and tested UART0,UART1 with Interrupts.
> Its working fine.But if i try to test UART3,its not working(Not receiving data).
> I have tested UART3 tx part without interrupts based.Its working.
> But i didn't test RX part without interrupts method.Is there any limitation in LPC2364 uart3 interrupts or RX part.
> I have also enabled power for UART3 by using PCONP.
>
> REG_PCONP |= 1<<25;
> REG_PINSEL1 |= 0x003C0000;
> Please share your knowlwdge??
>
> UARt0,uart1 working fine.Same type of code
> using for UART3 also.But not working.
>
> Thanks in advance.
>

The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
Hi

Can anyone verify this please?

I had a look at the manual and its PINSEL9 that controls UART3 for the 2364 not PINSEL1?

Regards

Jean-Jacques

--- In l..., pra bu wrote:
>
> Jean,
> Thanks for ur response.My H/W supporting PINSEL1.
>
> Anyone using LPC2364,please share your knowledge.
>
> Thanks,
>
> ________________________________
> From: jdauchot
> To: l...
> Sent: Mon, 28 December, 2009 2:57:26 PM
> Subject: [lpc2000] Re: LPC2364 UART3 Issue:
>
>
> Hi
>
> I had a quick look at the manual and I understand that for the LPC2364, its REG_PINSEL9 that controls the UART3 functions.
>
> REG_PINSEL9 |= 0x0F000000
>
> Regards
>
> Jean-Jacques
>
> --- In lpc2000@yahoogroups .com, prabuisin@ . wrote:
> >
> > LPC2364 UART 3Issue:
> >
> > I am using LPC2364 and tested UART0,UART1 with Interrupts.
> > Its working fine.But if i try to test UART3,its not working(Not receiving data).
> > I have tested UART3 tx part without interrupts based.Its working.
> > But i didn't test RX part without interrupts method.Is there any limitation in LPC2364 uart3 interrupts or RX part.
> > I have also enabled power for UART3 by using PCONP.
> >
> > REG_PCONP |= 1<<25;
> > REG_PINSEL1 |= 0x003C0000;
> > Please share your knowlwdge??
> >
> > UARt0,uart1 working fine.Same type of code
> > using for UART3 also.But not working.
> >
> > Thanks in advance.
> >
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
>

jdauchot wrote:
> Can anyone verify this please?
>
> I had a look at the manual and its PINSEL9 that controls UART3 for the
> 2364 not PINSEL1?

Seems to me it is both. T/RXD3 can be configured into P0.25/26 as well
as into P4.28/29.

--

Timo

Why who NXP do such a things?

Is there any reasons for this?

Regards

Jean-Jacques

_____

From: l... [mailto:l...] On Behalf Of
Timo
Sent: 29 December 2009 12:04
To: l...
Subject: Re: [lpc2000] LPC2364 UART3 Issue:

jdauchot wrote:
> Can anyone verify this please?
>
> I had a look at the manual and its PINSEL9 that controls UART3 for the
> 2364 not PINSEL1?

Seems to me it is both. T/RXD3 can be configured into P0.25/26 as well
as into P4.28/29.

--

Timo
Jean-Jacques Dauchot wrote:
> Why who NXP do such a things?
>
> Is there any reasons for this?

Because there is not enough pins for all the functionality?

--

Timo

Guys,
Thanks for your info.I am looking interrupt enable code.Because
After configure,IER register,I didnt get Transmit interrupt.
Thanks,

________________________________
From: Timo
To: l...
Sent: Tue, 29 December, 2009 5:58:37 PM
Subject: Re: [lpc2000] LPC2364 UART3 Issue:

Jean-Jacques Dauchot wrote:
> Why who NXP do such a things?
>
> Is there any reasons for this?

Because there is not enough pins for all the functionality?

--

Timo



Yahoo! Groups Links

The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
--- In l..., "Jean-Jacques Dauchot" wrote:
>
> Why who NXP do such a things?
>
> Is there any reasons for this?
>
>
>
> Regards
>
>
>
> Jean-Jacques
>

They do it so that other peripherals won't be excluded when one peripheral is chosen. Pin sharing...

Look at the EINTx signals for the LPC2148. They map all over the place and you pick the pins depending on what you can do without.

EINT0 on the LPC2148 maps to P0.1 and if this is chosen, TXD0 is lost. It also maps to P0.16 which wipes out the capture and match 0.2 possibilities for timer0.

There is almost never going to be a situation where I can do without TXD0 but I suppose I can use P0.16 and lose the timer IO.

Maybe I don't even use EINT0 because of unfavorable mapping and I use EINT1 instead.

Richard

OK , I give up !!!!!

How can we help this guy.

Is there an example code that will solve this problem. It's not a big deal..

Regards

Jean-Jacques

_____

From: l... [mailto:l...] On Behalf Of
rtstofer
Sent: 29 December 2009 15:36
To: l...
Subject: [lpc2000] Re: LPC2364 UART3 Issue:

--- In lpc2000@yahoogroups .com,
"Jean-Jacques Dauchot" wrote:
>
> Why who NXP do such a things?
>
> Is there any reasons for this?
>
> Regards
>
> Jean-Jacques
>

They do it so that other peripherals won't be excluded when one peripheral
is chosen. Pin sharing...

Look at the EINTx signals for the LPC2148. They map all over the place and
you pick the pins depending on what you can do without.

EINT0 on the LPC2148 maps to P0.1 and if this is chosen, TXD0 is lost. It
also maps to P0.16 which wipes out the capture and match 0.2 possibilities
for timer0.

There is almost never going to be a situation where I can do without TXD0
but I suppose I can use P0.16 and lose the timer IO.

Maybe I don't even use EINT0 because of unfavorable mapping and I use EINT1
instead.

Richard