USART TX COMPLETE
hi,
i know how can know when transmist buffer has finished.
i need control pin rs485 communications (half duplex communication).
i´ve read in datasheet ucsr0a register has bit (txc0) info. it´s automatically cleared when interrupt executed. interrupt used in wiring?
can use this?
flag_finish_tx= (ucsr0a & (1 << txc0))
thank you!!
regards,
igor r.
i know how can know when transmist buffer has finished.
i need control pin rs485 communications (half duplex communication).
i´ve read in datasheet ucsr0a register has bit (txc0) info. it´s automatically cleared when interrupt executed. interrupt used in wiring?
can use this?
flag_finish_tx= (ucsr0a & (1 << txc0))
thank you!!

regards,
igor r.
first, arduino/wiring not use interrupts transmit.
second, "normal" bit running interrupt driven transmitter udren (usart data register empty) bit , interrupt, happens when data moves form data register shift register, while transmit complete interrupt happens when shift register becomes empty.
so point normal software, should safe using txcn bit check done...
second, "normal" bit running interrupt driven transmitter udren (usart data register empty) bit , interrupt, happens when data moves form data register shift register, while transmit complete interrupt happens when shift register becomes empty.
so point normal software, should safe using txcn bit check done...
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > USART TX COMPLETE
arduino
Comments
Post a Comment