On Thursday 01 April 2010 01:48:21 pm Lennart Sorensen wrote:
> Yeah I have only ever done it using a UART that can automatically control
> the direction based on the transmit FIFO containing data or not (with
> a programable delay before switching of the transmitter of course).

> I would hate to try and do it from software with an interrupt.  Yuck.

It's not that bad. :-)  IRQ on transmit holding or shift register empty 
(ideally the latter). If you have only a THRE type interrupt then you have to 
set a timer for 1 word time (usually 9 bits) and after that timer, disable the 
transmitter. Of course when you go to send data again you have to make sure 
you turn on the transmitter.

So you end up with two IRQs if you don't have a shift register empty type of 
interrupt.

-A.

_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to