Sign in

username or email:

password:



Not a member?
Forgot your Password?

Search lpc2000



Search tips

Subscribe to lpc2000



Discussion Groups

See Also

DSPFPGA

Discussion Groups | LPC2000 | Re: 2148 UART example - can anyone post code?

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs


So far in May, you have voted 0 times ou of a total of 20 votes by the community.
Please help us clean the archives from unuseful discussion threads by using the voting system! Details here.


Is this thread worth a thumbs up?

0

Re: 2148 UART example - can anyone post code? - Frank Pinto - Sep 26 17:23:58 2006

hello:

Did you ever get UART code for the 2148. I have the IAR 2148
development kit. I am running the UART sample code but I get junk
characters on my terminal emulator (hyper terminal) when running the
code. Not sure why though.

Thanks
Frank
--- In l..., "ah_sandiego" wrote:
>
> I am new to the 2148 and I would like to use the UART. Does anyone
> have some simple code to get me started?
>
> Thanks,
> AH
>



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: 2148 UART example - can anyone post code? - Brendan Murphy - Sep 26 19:00:35 2006

--- In l..., "Frank Pinto" wrote:
>
> hello:
>
> Did you ever get UART code for the 2148. I have the IAR 2148
> development kit. I am running the UART sample code but I get junk
> characters on my terminal emulator (hyper terminal) when running the
> code. Not sure why though.
>

I'm not saying it's the source of your problems, but I'd strongly
recommend you get a better test tool than Hyperterm. It gets upset
quite easily (e.g. when powering off and on connected test units), and
once upset can produce all sorts of failure modes even when receiving
perfectly good data.

We wrote our own test tool for this and other reasons, but there's
plenty of good serial port programs out there that can be used in its
place (and plenty of bad onces too - maybe someone can recommend a
good one).

Brendan.



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: 2148 UART example - can anyone post code? - Joel Winarske - Sep 26 19:33:08 2006


> I'm not saying it's the source of your problems, but I'd strongly
> recommend you get a better test tool than Hyperterm. It gets upset
> quite easily (e.g. when powering off and on connected test units), and
> once upset can produce all sorts of failure modes even when receiving
> perfectly good data.
>
> We wrote our own test tool for this and other reasons, but there's
> plenty of good serial port programs out there that can be used in its
> place (and plenty of bad onces too - maybe someone can recommend a
> good one).
>
This is a good Win32 standard that includes source code:
http://hp.vector.co.jp/authors/VA002416/teraterm.html



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: 2148 UART example - can anyone post code? - Robert Adsett - Sep 26 19:35:47 2006

At 11:00 PM 9/26/2006 +0000, Brendan Murphy wrote:
>--- In l..., "Frank Pinto" wrote:
>I'm not saying it's the source of your problems, but I'd strongly
>recommend you get a better test tool than Hyperterm. It gets upset
>quite easily (e.g. when powering off and on connected test units), and
>once upset can produce all sorts of failure modes even when receiving
>perfectly good data.
>
>We wrote our own test tool for this and other reasons, but there's
>plenty of good serial port programs out there that can be used in its
>place (and plenty of bad onces too - maybe someone can recommend a
>good one).

I use Realterm http://realterm.sourceforge.net/ (I agree Hyperterm is
barely useable). It's separate control over RTS and DTR makes it useful for
automatically switching between ISP and run modes.

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
http://www.aeolusdevelopment.com/



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: 2148 UART example - can anyone post code? - Bruce Paterson - Sep 27 4:25:07 2006

I use teraterm (it can do SSH too with extensions) also.
I have noticed it can freeze up if it receives some particular
characters though. Still, a better bet then Hyperterminal in general.

________________________________

From: l... [mailto:l...] On Behalf
Of Joel Winarske
Sent: Wednesday, 27 September 2006 9:31 AM
To: l...
Subject: Re: [lpc2000] Re: 2148 UART example - can anyone post code?

> I'm not saying it's the source of your problems, but I'd
strongly
> recommend you get a better test tool than Hyperterm. It gets
upset
> quite easily (e.g. when powering off and on connected test
units), and
> once upset can produce all sorts of failure modes even when
receiving
> perfectly good data.
>
> We wrote our own test tool for this and other reasons, but
there's
> plenty of good serial port programs out there that can be used
in its
> place (and plenty of bad onces too - maybe someone can
recommend a
> good one).
>
This is a good Win32 standard that includes source code:
http://hp.vector.co.jp/authors/VA002416/teraterm.html
<http://hp.vector.co.jp/authors/VA002416/teraterm.html>





(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: 2148 UART example - can anyone post code? - Andrew Berney - Sep 27 5:11:09 2006

At a slightly higher level the likes of Docklight Scripting are also
extremely useful for prototyping protocol analysis, or as in our case
writing test simulations for our serial comms.
http://www.docklight.de/ <http://www.docklight.de/>

Andy

-----Original Message-----
From: l... [mailto:l...]On Behalf Of
Bruce Paterson
Sent: 27 September 2006 09:05
To: l...
Subject: RE: [lpc2000] Re: 2148 UART example - can anyone post code?

I use teraterm (it can do SSH too with extensions) also.
I have noticed it can freeze up if it receives some particular
characters though. Still, a better bet then Hyperterminal in general.

________________________________

From: lpc2000@yahoogroups .com [mailto:
lpc2000@yahoogroups .com] On Behalf
Of Joel Winarske
Sent: Wednesday, 27 September 2006 9:31 AM
To: lpc2000@yahoogroups .com
Subject: Re: [lpc2000] Re: 2148 UART example - can anyone post code?
> I'm not saying it's the source of your problems, but I'd
strongly
> recommend you get a better test tool than Hyperterm. It gets
upset
> quite easily (e.g. when powering off and on connected test
units), and
> once upset can produce all sorts of failure modes even when
receiving
> perfectly good data.
>
> We wrote our own test tool for this and other reasons, but
there's
> plenty of good serial port programs out there that can be used
in its
> place (and plenty of bad onces too - maybe someone can
recommend a
> good one).
>
This is a good Win32 standard that includes source code:
http://hp.vector. <http://hp.vector.co.jp/authors/VA002416/teraterm.html>
co.jp/authors/VA002416/teraterm.html
< http://hp.vector. <http://hp.vector.co.jp/authors/VA002416/teraterm.html>
co.jp/authors/VA002416/teraterm.html>







(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: 2148 UART example - can anyone post code? - Joel Winarske - Sep 27 15:30:41 2006


> At a slightly higher level the likes of Docklight Scripting are also
> extremely useful for prototyping protocol analysis, or as in our case
> writing test simulations for our serial comms.
> http://www.docklight.de/ <http://www.docklight.de/>
>
For analysis I've have used MicroTap and StreamTeam for years:
http://www.paladinsoftware.com/

Docklight looks like it has some nice features with a much better price.
Joel



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

R: Re: 2148 UART example - can anyone post code? - Mirko Grillo - Sep 28 4:53:24 2006

Hi,
I suggest to try to cut the code where the serial baud rate are calculated
with auto baud rate system,
fix the right speed in relation to your PLL at the end of routine
autobaudrate
I have 48MHz after PLL and pclk=cclk
This example is for 115200

.
.
.
else
{
U1LCR_bit.WLS = UartCoding.bDataBits;
U1LCR_bit.SBS = UartCoding.bStopBitsFormat;
U1LCR_bit.PE =(UartCoding.bParityType == UART_NO_PARITY)?0:1;
U1LCR_bit.PS = UartCoding.bParityType;
U1LCR_bit.DLAB = 1;


//U1DLL = Div & 0xFF; <<-- comment
//U1DLM = (Div >> 8) & 0xFF; <<-- comment

U1DLL = 0x1A; //48000000 / (115200 * 16);
U1DLM = 0; //(48000000 / (115200 * 16)) >> 8;

// U1FDR = AddDiv + (Mul << 4);
U1LCR_bit.DLAB = 0;


I had the same problem with hyperterminal , use only TX and RX and GND
works fine

Mirko Grillo




_____

Da: l... [mailto:l...] Per conto di
Joel Winarske
Inviato: mercoledì 27 settembre 2006 21.28
A: l...
Oggetto: Re: [lpc2000] Re: 2148 UART example - can anyone post code?

> At a slightly higher level the likes of Docklight Scripting are also
> extremely useful for prototyping protocol analysis, or as in our case
> writing test simulations for our serial comms.
> http://www.dockligh <http://www.docklight.de/> t.de/ <http://www.dockligh
<http://www.docklight.de/> t.de/>
>
For analysis I've have used MicroTap and StreamTeam for years:
http://www.paladins <http://www.paladinsoftware.com/> oftware.com/

Docklight looks like it has some nice features with a much better price.

Joel









(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )