Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Re: optimum uart buffered transmit example?

2005-11-20 by Sten

Another solution... But obviously it can only handle one UART connection.

Richard wrote:
> http://www.keil.com/download/docs/288.asp
> 
> --- In lpc2000@yahoogroups.com, Sten <list@n...> wrote:
> 
>>
>>Hi,
>>
>>if you have a 16byte-hardware-FIFO why you should not use it?!?
>>I have written an interrupt-driven driver which is using configurable
>>software TX and RX FIFOs between ISR and task. The task is feeding the
>>TX FIFO with data and the ISR in background is feeding UART's hardware
>>FIFO with 16 bytes/call (if available) from TX FIFO. It's a maximum
>>efficiency with a minimum overhead.
>>
>>(void) uart_write(uartNr, "Unable to encrypt! -- ", 20, 200 MSEC);
>>
>>If a task wants to transmit large data, an uart_write() call is writing
>>and sleeping to the TX FIFO until all data has been transmitted (20
>>bytes) or a timeout has been occured (200 msec).
>>
>>  Sten
>>

-- 
/************************************************
 Do you need a tiny and efficient real time
 operating system (RTOS) with a preemtive
 multitasking for LPC2000 or AT91SAM7?

   http://nanortos.net-attack.de/

 Or some open-source tools and code for LPC2000?

   http://www.net-attack.de/

************************************************/

Attachments

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.