[En-Nut-Discussion] Serial commnunication break signal (Fernando Me Ga)
PragmaLab (Rob van Lieshout)
info at pragmalab.nl
Wed Oct 13 12:46:25 CEST 2010
> Hello,
> I would like to know how to send a break signal in to serial
> communication. It is alredy implemented or is there any uart control
> register to enable this signal?
Hello Fernando,
Not sure which platform you are using, but in my Mega128/256 designs I need
a break signal and a mark after break signal (DMX) with precise timing. You
can't use the UART control for that as far as I know, but you can simply use
the Tx pin of the UART, just by defining it as an (temporary) output and
use a timer to set or clear the pin. After completion (break or mark after
break), enable the UART function again for that pin and start sending.
Make sure you keep track of the level you left the Tx pin at, if not, an
unwanted extra break (or startbit) could be the result when starting the
first byte.
This one works fine for me, but there might be other ways to do it though.
Regards,
Rob van Lieshout
More information about the En-Nut-Discussion
mailing list