Thanks!
But how do You presume that anything else might be executed, when
sending chars.
In your code one UART TX interrupt, is forcing another.
Usually the UART transmition is not time critical, and chars could be
sent only when processor is free. So for long time I am thinking about
something like:
for(;;){
if (processor_free()){
usart_put_next_char(ch);
}
}
robert
Andrew Kalman wrote:
Does anyone has experience with uart transmit interrupt handling.
I would like to send long string of data, but not more, then one
character per main loop execution.
Is there interrupt based chars sending ever possible ?
I experienced, that during chars sending nothing is run, except other
interrupts.
robert
There was a long thread on USART TX ints a while back (2 months?) in the
MSP430 Yahoo group.
I posted my Tx USART code, which used a method of controlling TXIE that
solved the problem(s) of the original poster.
Here it is: http://groups.yahoo.com/group/msp430/message/13559
I use it so serve up web pages over TCP/IP on the MSP430 -- so the
strings are quite long, and there are lots of other things happening
while the ISRs are active and sending data. tested at 9600 baud with
buffers ranging from 60 to 512 bytes.