Reply by mjames_doveridge October 29, 20082008-10-29
--- In l..., "hbaocr" wrote:
>
> I want to use both of two UART chanel for my applications.But when I
> do it!I have some problem! At first I receive data from UART1 then I
> send data to PC through UART0 !And I have met problem that is:the
> font of The string I received on PC are wrong!and I can't read
> anything!Please help me solve that probelm!
> thanks
>

This problem cannot be solved by us because it's too complex for the
amount of information you have given. As the other posters have said,
you have to split up the problem into solvable chunks - it's called
debugging technique.

Don't go near UART1 until you can send/receive characters reliably and
clearly via UART 0 to the PC. If you already know that you can do
this, you should have told us! Make sure this one bit works reliably,
correctly and that your flow-control is fine, then move on. Just send
something repeatedly, '0123456789', say, and fix things until you have
a nice, scrolling pattern on your terminal before you go home and the
scrolling pattern is still the same the next morning.

Rgds,
Martin

An Engineer's Guide to the LPC2100 Series

Reply by Nagendra Kumar Pilladi October 29, 20082008-10-29
Hi,
Do you receive data from UART1 corrrectly?
do you get junk characters on PC? if junk once check baudrate and also check
RS232 driver circuit connections.

regards
Nagendra pilladi
SorokaSoft(I) Pvt Limited
Hyderabad

________________________________
From: hbaocr
To: l...
Sent: Wednesday, 29 October, 2008 3:22:13 PM
Subject: [lpc2000] help!about UART0 and UART1 of LPC2148
I want to use both of two UART chanel for my applications. But when I
do it!I have some problem! At first I receive data from UART1 then I
send data to PC through UART0 !And I have met problem that is:the
font of The string I received on PC are wrong!and I can't read
anything!Please help me solve that probelm!
thanks

Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/


Reply by Foltos October 29, 20082008-10-29
Hi!

It would be helpful if you could tell what chip and what environment
(compiler , etc...) are you using!
Is your code working fine when only one UART is running?!
Is your baud-rate and character encoding properly setup on the PC?! Do
serial line settings match the one on the embedded side?!

Foltos
hbaocr wrote:
> I want to use both of two UART chanel for my applications.But when I
> do it!I have some problem! At first I receive data from UART1 then I
> send data to PC through UART0 !And I have met problem that is:the
> font of The string I received on PC are wrong!and I can't read
> anything!Please help me solve that probelm!
> thanks
>
Reply by Ashwin October 29, 20082008-10-29
Hi,

Not quite sure I understand your problem. However check that the baud rate and other UART settings are correct.

May be you want to explain your problem more clearly again?

Warm regards
Ashwin
Founder, NGX Technologies Pvt. Ltd.
Bangalore- India
Off : +91-80-23103205
Fax: +91-80-23103206
Cell: +91-9886235342
U.S. Number : +1-408-854-8161

----- Original Message -----
From: hbaocr
To: l...
Sent: Wednesday, October 29, 2008 3:22 PM
Subject: [SPAM][lpc2000] help!about UART0 and UART1 of LPC2148
I want to use both of two UART chanel for my applications.But when I
do it!I have some problem! At first I receive data from UART1 then I
send data to PC through UART0 !And I have met problem that is:the
font of The string I received on PC are wrong!and I can't read
anything!Please help me solve that probelm!
thanks


Reply by hbaocr October 29, 20082008-10-29
I want to use both of two UART chanel for my applications.But when I
do it!I have some problem! At first I receive data from UART1 then I
send data to PC through UART0 !And I have met problem that is:the
font of The string I received on PC are wrong!and I can't read
anything!Please help me solve that probelm!
thanks