Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

3rd serial port

3rd serial port

2004-10-18 by ggindele

I'll need a 3rd serial port to debug the application, just to dump out
logs. Maybe SPI? But then I would need a SPI-RS232 converter. 
Any recommendation?

Gabe

RE: [lpc2000] 3rd serial port

2004-10-18 by Lasse Madsen

Hi Gabe

Maxim makes SPI=>RS232 converters by as far as i remember they are
pretty expensive...

Best regards
Lasse Madsen
Show quoted textHide quoted text
-----Original Message-----
From: ggindele [mailto:ggindele@...] 
Sent: 18. oktober 2004 14:24
To: lpc2000@yahoogroups.com
Subject: [lpc2000] 3rd serial port



I'll need a 3rd serial port to debug the application, just to dump out
logs. Maybe SPI? But then I would need a SPI-RS232 converter. 
Any recommendation?

Gabe









 
Yahoo! Groups Links

RE: [lpc2000] 3rd serial port

2004-10-18 by Leon Heller

>From: "Lasse Madsen" <lasse.madsen@...>
>Reply-To: lpc2000@yahoogroups.com
>To: <lpc2000@yahoogroups.com>
>Subject: RE: [lpc2000] 3rd serial port
>Date: Mon, 18 Oct 2004 14:27:07 +0200
>
>
>Hi Gabe
>
>Maxim makes SPI=>RS232 converters by as far as i remember they are
>pretty expensive...

I've used them, and they are very good, but expensive. Another option would 
be to use a small '2313 AVR (or a PIC) as a software UART connected to the 
LPC2000 via SPI. I did this once for a comms hub, with software SPI running 
on three '2313s, connected to a mid-range PIC, and it worked very well. 
Hardware cost will be lower, but software will have to be written. It was a 
cheaper solution in our case, for quantity production.

Leon

Re: 3rd serial port

2004-10-18 by Pete

alternatively if you are using an LPC with the peripheral bus you 
can easily add a UART chip (Philips have a large range) and add any 
number of UART ports. Relatively cheaply too.

Again, drivers need writing but very simple to do so...

I believe they have singles,duals,quads and octals available...

rgds
pete

--- In lpc2000@yahoogroups.com, "Leon Heller" <leon_heller@h...> 
wrote:
> 
> 
> 
> >From: "Lasse Madsen" <lasse.madsen@e...>
> >Reply-To: lpc2000@yahoogroups.com
> >To: <lpc2000@yahoogroups.com>
> >Subject: RE: [lpc2000] 3rd serial port
> >Date: Mon, 18 Oct 2004 14:27:07 +0200
> >
> >
> >Hi Gabe
> >
> >Maxim makes SPI=>RS232 converters by as far as i remember they are
> >pretty expensive...
> 
> I've used them, and they are very good, but expensive. Another 
option would 
> be to use a small '2313 AVR (or a PIC) as a software UART 
connected to the 
> LPC2000 via SPI. I did this once for a comms hub, with software 
SPI running 
> on three '2313s, connected to a mid-range PIC, and it worked very 
well. 
> Hardware cost will be lower, but software will have to be written. 
It was a 
Show quoted textHide quoted text
> cheaper solution in our case, for quantity production.
> 
> Leon

RE: [lpc2000] 3rd serial port

2004-10-18 by David Kay

The Philips LPC900 series of micros have on-board UARTS down to 8 pin
packages and are very good value for money - starting at a US$1 or so.
The on-board RC oscillators of these devices are now factory trimmed to
allow them to be accurately used for UART comm's - no xtal/ceramic osc
required - further keeping the costs down.   

Philips LPC900 site - http://tinyurl.com/3ntch

You could use the larger pin devices on a parallel bus or go for one of
the smaller packages and use I2C or SPI comm's. The software required to
turn one of these micro's into an addressable UART is very small - a few
hundred bytes. You can even pick a small development board direct from
the Philips site - MCB900 - for US$59, more than powerful enough to
develop this type of code on.

Philips has a huge range of single/dual/quad/octal UARTS but the costs
don't stack up against these smaller micros. Even the devices with
FIFO's could be successfully emulated using the RAM in the micro.

David Kay
Field Application Engineer - New Zealand
 
local focus_global reach - That's adilam !
Show quoted textHide quoted text
-----Original Message-----
From: Leon Heller [mailto:leon_heller@...] 
Sent: Tuesday, 19 October 2004 1:55 a.m.
To: lpc2000@yahoogroups.com
Subject: RE: [lpc2000] 3rd serial port





>From: "Lasse Madsen" <lasse.madsen@...>
>Reply-To: lpc2000@yahoogroups.com
>To: <lpc2000@yahoogroups.com>
>Subject: RE: [lpc2000] 3rd serial port
>Date: Mon, 18 Oct 2004 14:27:07 +0200
>
>
>Hi Gabe
>
>Maxim makes SPI=>RS232 converters by as far as i remember they are
>pretty expensive...

I've used them, and they are very good, but expensive. Another option
would 
be to use a small '2313 AVR (or a PIC) as a software UART connected to
the 
LPC2000 via SPI. I did this once for a comms hub, with software SPI
running 
on three '2313s, connected to a mid-range PIC, and it worked very well. 
Hardware cost will be lower, but software will have to be written. It
was a 
cheaper solution in our case, for quantity production.

Leon





 
Yahoo! Groups Links

Re: [lpc2000] 3rd serial port

2004-10-18 by Peter Jakacki

Since your traffic is mostly one way it would be very easy to implement 
a bit-banged serial I/O. This can driven off a timer interrupt or if it 
doesn't matter too much then a simple polled routine. If you only needed 
to transmit then you can select a very high baud rate which would then 
take up less CPU cycles. The timer interrupt per bit is another viable 
alternative which is very easy to implement also.

Bit-banged serial I/O typically only needs a 100 bytes or so of code 
space to implement.

I would certainly steer clear of hanging dedicated UARTs whether 
parallel or SPI off the micro as they do tend to be rather expensive. 
Why it's cheaper to use a micro as a Uart but you still need code to 
talk to it anyway.

EXTRA SERIAL CHANNEL SELECTION GUIDE
------------------------------------------
EXTERNAL UART + CODE + INTERFACE    = $$$
EXTERNAL SPI UART + CODE            = $$$
EXTERNAL MICRO + CODE               = $
BIT-BANGED I/O + CODE               = free


my2cents
Peter Jakacki


ggindele wrote:
Show quoted textHide quoted text
>I'll need a 3rd serial port to debug the application, just to dump out
>logs. Maybe SPI? But then I would need a SPI-RS232 converter. 
>Any recommendation?
>
>Gabe
>
>
>
>
>
>
>
>
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>
>  
>

Re: [lpc2000] 3rd serial port

2004-10-18 by Peter Jakacki

David,
    These 8-pin LPC900s look great but how do you get them? I checked a 
while back and samples were not available. I could buy a full reel if I 
wanted to sample them though ;)

Peter Jakacki

David Kay wrote:
Show quoted textHide quoted text
>The Philips LPC900 series of micros have on-board UARTS down to 8 pin
>packages and are very good value for money - starting at a US$1 or so.
>The on-board RC oscillators of these devices are now factory trimmed to
>allow them to be accurately used for UART comm's - no xtal/ceramic osc
>required - further keeping the costs down.   
>
>Philips LPC900 site - http://tinyurl.com/3ntch
>  
>
><snip>
>  
>

RE: [lpc2000] 3rd serial port

2004-10-19 by David Kay

Hi Peter,

Your local Philips disti should be able to order samples for you.
Philips have greatly streamlined there samples system in the last few
years - you should be able to get 5pcs free of charge in a week or two. 

If you are in Aus/NZ I could do it for you? Just drop me an email to:-

david (dot) kay (at) adilam (dot) com (dot) au

With your details, address etc and we'll see what we can do.

David Kay
Field Application Engineer - New Zealand

local focus_global reach - That's adilam !
Show quoted textHide quoted text
-----Original Message-----
From: Peter Jakacki [mailto:peterjak@...] 
Sent: Tuesday, 19 October 2004 12:51 p.m.
To: lpc2000@yahoogroups.com
Subject: Re: [lpc2000] 3rd serial port


David,
    These 8-pin LPC900s look great but how do you get them? I checked a 
while back and samples were not available. I could buy a full reel if I 
wanted to sample them though ;)

Peter Jakacki

David Kay wrote:

>The Philips LPC900 series of micros have on-board UARTS down to 8 pin
>packages and are very good value for money - starting at a US$1 or so.
>The on-board RC oscillators of these devices are now factory trimmed to
>allow them to be accurately used for UART comm's - no xtal/ceramic osc
>required - further keeping the costs down.   
>
>Philips LPC900 site - http://tinyurl.com/3ntch
>  
>
><snip>
>  
>




 
Yahoo! Groups Links

Re: [lpc2000] 3rd serial port

2004-10-19 by Robert Adsett

At 09:30 AM 10/19/04 +1000, you wrote:
>EXTRA SERIAL CHANNEL SELECTION GUIDE
>------------------------------------------
>EXTERNAL UART + CODE + INTERFACE    = $$$
>EXTERNAL SPI UART + CODE            = $$$
>EXTERNAL MICRO + CODE               = $
>BIT-BANGED I/O + CODE               = free

That does make the assumption that pins and code are free and that the CPU 
isn't already occupied with other time critical functions. ;).

I don't know about the original poster but I place some value on my 
time.  For a strictly debug it may well be cheaper to simple hang some HW 
off a header to SPI or I2C even if the chips are more expensive than a 16550.

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

Re: 3rd serial port

2004-10-19 by Paul

If anyone from Philips is listening, I can't tell you how many times
I've had a situation like this.... and the solution was to order
parts from Digikey at 4:30 pm for UPS RED delivery the next morning.

I'm sure there's a lot of issues franchising with digikey, but
consider that almost all Atmel AVR-tiny and Microchip PIC chips are
available tomorrow morning.  That's faster than even finding out
IF a Philips LPC sample might show up in a week or two.


Paul



> Philips have greatly streamlined there samples system in the last few
> years - you should be able to get 5pcs free of charge in a week or two.

Re: [lpc2000] 3rd serial port

2004-10-19 by Peter Jakacki

Hi Rob,

Since I'm still awake at this time of the night I'll answer quikly. The 
costs are only relative, so the bit-banged I/O is comparatively "free" I 
guess as compared to "$$$". A bit-banged transmit routine is about as 
primitive as you can get and most embedded programmers can whip up one 
in a very short space of time (gimme 15 mins or less). Compare that with 
interfacing a UART and getting it running right, I can absolutely 
guarantee that the bit-banged transmit is the cleanest, most simple, and 
cheapest option available.

Hell, over short distances you can even run the transmit output directly 
at logic levels into a PC without anything more than maybe a 
current-limit resistor. I've never seen this not work or cause problems, 
and since this is simply for debugging then there are no compliance 
issues to worry about.

my2cents worth of I/O
Peter Jakacki


Robert Adsett wrote:
Show quoted textHide quoted text
>At 09:30 AM 10/19/04 +1000, you wrote:
>  
>
>>EXTRA SERIAL CHANNEL SELECTION GUIDE
>>------------------------------------------
>>EXTERNAL UART + CODE + INTERFACE    = $$$
>>EXTERNAL SPI UART + CODE            = $$$
>>EXTERNAL MICRO + CODE               = $
>>BIT-BANGED I/O + CODE               = free
>>    
>>
>
>That does make the assumption that pins and code are free and that the CPU 
>isn't already occupied with other time critical functions. ;).
>
>I don't know about the original poster but I place some value on my 
>time.  For a strictly debug it may well be cheaper to simple hang some HW 
>off a header to SPI or I2C even if the chips are more expensive than a 16550.
>
>Robert
>  
>

Re: 3rd serial port

2004-10-19 by R M

I hate to respond with a 'me too' post, yet I second this motion.

My company routinely purchases parts from DigiKey, with delivery to
our door in one or two days (and we are in Canada). As a result I can
get access to many parts very quickly. 

However, to get a few LPC samples, I have to talk to my Philips rep
(Arrow), who has to talk to Philips, which can take over a week.

And then if I want to purchase trays of parts, it takes a couple of
weeks for Arrow to deal with our purchasing group, if they have stock.
DigiKey takes a day or two, no matter the quantity. 

So Philips, if you are listening, please get your very wonderful LPC
line on DigiKey's shelves. I know Atmel will have their new ARM7 line
available at DigiKey, so should you.

- Rod

--- In lpc2000@yahoogroups.com, "Paul" <Paul@P...> wrote:
> 
> If anyone from Philips is listening, I can't tell you how many times
> I've had a situation like this.... and the solution was to order
> parts from Digikey at 4:30 pm for UPS RED delivery the next morning.
> 
> I'm sure there's a lot of issues franchising with digikey, but
> consider that almost all Atmel AVR-tiny and Microchip PIC chips are
> available tomorrow morning.  That's faster than even finding out
> IF a Philips LPC sample might show up in a week or two.
> 
> 
> Paul
> 
> 
> 
> > Philips have greatly streamlined there samples system in the last few
> > years - you should be able to get 5pcs free of charge in a week or
two.

Re: 3rd serial port

2004-10-22 by rkdwork

--- In lpc2000@yahoogroups.com, "ggindele" <ggindele@y...> wrote:
> 
> I'll need a 3rd serial port to debug the application, just to dump 
out
> logs. Maybe SPI? But then I would need a SPI-RS232 converter. 
> Any recommendation?
> 
> Gabe

I am using an Aardvark SPI to USB converter for a debug messaging 
capability with an LPC2114. I have developed a device with a USB 2.0 
interface and I needed a way to monitor the USB interrupt activity in 
real time to get through USB enumeration and configuration. My boss 
did not want to add a UART that would not be used in the final 
system.  The Aardvark connects to the LPC2114 with no additional 
chips. The Aardvark comes with an ActiveX interface and a DLL. I 
wrote a VB application that displays the activity messages and stores 
them to a data file for subsequent review. This has allowed me to 
develop the USB interface without a USB protocol analyzer (very 
expensive).  The Aardvark was developed by Total Phase 
(www.totalphase.com)

Bob Davis

Re: 3rd serial port

2004-10-23 by philips_apps

OK,

let me have a shot at this one.  To do business with Digikey takes 2
participants, Philips and Digikey. We, the apps guys asked for this
coverage many times because we are aware how difficult it is to get
small quantities :-(  Unfortunately this is way outside our reach and
there seem to be some differences between the responsible people at
both ends. 

Everybody who would like to buy LPC2000 devices as well as LPC900
devices from Digikey could do us a great favor by asking Digikey as
well as your local Philips representative if you know him/her why
Digikey does not sell Philips devices. 

So, not only do I understand your frust, I share it.

Let's keep pushing and pulling at both ends and hope that you can by
and we can sell quantities of 1 through channels like Digikey.

We will get there, hopefully rather sooner than later. 

Best regards, Robert 


--- In lpc2000@yahoogroups.com, "R M" <rodlist@r...> wrote:
> 
> I hate to respond with a 'me too' post, yet I second this motion.
> 
> My company routinely purchases parts from DigiKey, with delivery to
> our door in one or two days (and we are in Canada). As a result I can
> get access to many parts very quickly. 
> 
> However, to get a few LPC samples, I have to talk to my Philips rep
> (Arrow), who has to talk to Philips, which can take over a week.
> 
> And then if I want to purchase trays of parts, it takes a couple of
> weeks for Arrow to deal with our purchasing group, if they have stock.
> DigiKey takes a day or two, no matter the quantity. 
> 
> So Philips, if you are listening, please get your very wonderful LPC
> line on DigiKey's shelves. I know Atmel will have their new ARM7 line
> available at DigiKey, so should you.
> 
> - Rod
> 
> --- In lpc2000@yahoogroups.com, "Paul" <Paul@P...> wrote:
> > 
> > If anyone from Philips is listening, I can't tell you how many times
> > I've had a situation like this.... and the solution was to order
> > parts from Digikey at 4:30 pm for UPS RED delivery the next morning.
> > 
> > I'm sure there's a lot of issues franchising with digikey, but
> > consider that almost all Atmel AVR-tiny and Microchip PIC chips are
> > available tomorrow morning.  That's faster than even finding out
> > IF a Philips LPC sample might show up in a week or two.
> > 
> > 
> > Paul
> > 
> > 
> > 
> > > Philips have greatly streamlined there samples system in the
last few
> > > years - you should be able to get 5pcs free of charge in a week or
> two.

Re: [lpc2000] Re: 3rd serial port

2004-10-23 by Alex Gibson

philips_apps wrote:

>
> OK,
>
> let me have a shot at this one.  To do business with Digikey takes 2
> participants, Philips and Digikey. We, the apps guys asked for this
> coverage many times because we are aware how difficult it is to get
> small quantities :-(  Unfortunately this is way outside our reach and
> there seem to be some differences between the responsible people at
> both ends.
>
> Everybody who would like to buy LPC2000 devices as well as LPC900
> devices from Digikey could do us a great favor by asking Digikey as
> well as your local Philips representative if you know him/her why
> Digikey does not sell Philips devices.
>
> So, not only do I understand your frust, I share it.
>
> Let's keep pushing and pulling at both ends and hope that you can by
> and we can sell quantities of 1 through channels like Digikey.
>
> We will get there, hopefully rather sooner than later.
>
> Best regards, Robert


For those in Australia ,
Adilam Electronics 
www.adilam.com.au 

sells small quantities and
Joseph Goldberg one of their Field Engineers is of great help.

He reads this group as well.

 From an email I recieved recently they currently have stock of
lpc2104
lpc2106
lpc2124
lpc2129

Alex

Digikey - was: 3rd serial port

2004-10-23 by ggindele

Those who do business with Digikey - let's send them a quote request
for LPC parts and explain why we would love to get it from them. 
Their quote/feedback page is at:

http://dkc1.digikey.com/scripts/us/commcenter.cgi?action=quote

Gabe

--- In lpc2000@yahoogroups.com, "philips_apps" <philips_apps@y...> wrote:
Show quoted textHide quoted text
> 
> OK,
> 
> let me have a shot at this one.  To do business with Digikey takes 2
> participants, Philips and Digikey. We, the apps guys asked for this
> coverage many times because we are aware how difficult it is to get
> small quantities :-(  Unfortunately this is way outside our reach and
> there seem to be some differences between the responsible people at
> both ends. 
> 
> Everybody who would like to buy LPC2000 devices as well as LPC900
> devices from Digikey could do us a great favor by asking Digikey as
> well as your local Philips representative if you know him/her why
> Digikey does not sell Philips devices. 
> 
> So, not only do I understand your frust, I share it.
> 
> Let's keep pushing and pulling at both ends and hope that you can by
> and we can sell quantities of 1 through channels like Digikey.
> 
> We will get there, hopefully rather sooner than later. 
> 
> Best regards, Robert 
> 
> 
> --- In lpc2000@yahoogroups.com, "R M" <rodlist@r...> wrote:
> > 
> > I hate to respond with a 'me too' post, yet I second this motion.
> > 
> > My company routinely purchases parts from DigiKey, with delivery to
> > our door in one or two days (and we are in Canada). As a result I can
> > get access to many parts very quickly. 
> > 
> > However, to get a few LPC samples, I have to talk to my Philips rep
> > (Arrow), who has to talk to Philips, which can take over a week.
> > 
> > And then if I want to purchase trays of parts, it takes a couple of
> > weeks for Arrow to deal with our purchasing group, if they have stock.
> > DigiKey takes a day or two, no matter the quantity. 
> > 
> > So Philips, if you are listening, please get your very wonderful LPC
> > line on DigiKey's shelves. I know Atmel will have their new ARM7 line
> > available at DigiKey, so should you.
> > 
> > - Rod
> > 
> > --- In lpc2000@yahoogroups.com, "Paul" <Paul@P...> wrote:
> > > 
> > > If anyone from Philips is listening, I can't tell you how many times
> > > I've had a situation like this.... and the solution was to order
> > > parts from Digikey at 4:30 pm for UPS RED delivery the next morning.
> > > 
> > > I'm sure there's a lot of issues franchising with digikey, but
> > > consider that almost all Atmel AVR-tiny and Microchip PIC chips are
> > > available tomorrow morning.  That's faster than even finding out
> > > IF a Philips LPC sample might show up in a week or two.
> > > 
> > > 
> > > Paul
> > > 
> > > 
> > > 
> > > > Philips have greatly streamlined there samples system in the
> last few
> > > > years - you should be able to get 5pcs free of charge in a week or
> > two.

Re: Digikey - was: 3rd serial port

2004-10-26 by R M

Thanks for the response Robert.

Excellent idea Gabe - I just filled out a quote.

- Rod

--- In lpc2000@yahoogroups.com, "ggindele" <ggindele@y...> wrote:
Show quoted textHide quoted text
> 
> Those who do business with Digikey - let's send them a quote request
> for LPC parts and explain why we would love to get it from them. 
> Their quote/feedback page is at:
> 
> http://dkc1.digikey.com/scripts/us/commcenter.cgi?action=quote
> 
> Gabe

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.