3 UARTs on LPC800

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

3 UARTs on LPC800

1,294 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by teekaytk on Sat Feb 02 15:39:50 MST 2013
Hi All

I just got my self an LPC812 xpresso board.  was hoping to use it instead of a PIC so I could have easy access to 3 Uarts in a low power package.

I need One uar to talk to PC, I uart to talk to GPS and on uart to talk to an RF modem.

However the lpc8xx_uart.c  in code-read reports that

/* All these variables, mostly used for debugging only, are shared by all UARTs 
now for easy debugging. So only one UART can run at a time. They should be rewritten
when we release the software to the public. */



and


/* Right now, the debugging info. and variables are shared by all UARTs.
Only one UART can run at a time. Will be fixed later. */



Is it OK for me to be worried about this? Looks like I need to wait for an update or rewrite the driver code. I was hoping I don't have to do this as I have very limited time for this project.
0 Kudos
Reply
4 Replies

1,261 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kendwyer on Mon Feb 04 17:19:12 MST 2013
Check out the latest LPCOpen release. It has added support for LPC800 and other parts.
See: http://lpcware.com/content/project/lpcopen-platform-nxp-lpc-microcontrollers
0 Kudos
Reply

1,261 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Sun Feb 03 03:34:37 MST 2013

Quote:
Can I share that file or would it violate some NXP copyright policy??


Quote:

* Permission to use, copy, modify, and distribute this software and its
* documentation is hereby granted, under NXP Semiconductors?
* relevant copyright in the software, without fee, provided that it
* is used in conjunction with NXP Semiconductors microcontrollers.  This
* copyright, permission, and disclaimer notice must appear in all copies of
* this code.

Why not? This is a forum :cool: I would suggest to use the original file, comment out the old unused stuff and comment your new added changes.
So NXP can also profit from your work and add it as 'official' release when (or if) they 'release the software to the public' :rolleyes:
And posting a simple project with several UARTs could be very useful for other members, too :)
0 Kudos
Reply

1,261 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by teekaytk on Sun Feb 03 03:02:51 MST 2013
Hi

Thanks
I changed the code so (i think) it should work with three uarts. I have tested it on two so that data coming from GPS is being read and forwarded onto the PC.

Can I share that file or would it violate some NXP copyright policy??

Thanks
0 Kudos
Reply

1,261 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Sat Feb 02 15:55:36 MST 2013

Quote: teekaytk

Is it OK for me to be worried about this? Looks like I need to wait for an update or rewrite the driver code. I was hoping I don't have to do this as I have very limited time for this project.



This NXP sample is just using the same variables for all UARTS (and one interrupt handler for all of them). If you don't want to wait until NXP will release a rewritten code to the public :confused: you could just try to change this variables to an array (0-2)  :)
0 Kudos
Reply