EmbeddedRelated.com
Forums

send break

Started by David Collier February 21, 2007
Anyone got any thoughts on how to get a 1611 to send a break on it's UART
outputs?

I think I can't set the pin to "not special" and force it to gnd because
the "special" status is forced on by enabling the UART?

So would I have to turn off the UART - and if so can I just turn it on
again or would I need to re-initialise any/everything?

Or could there be some clever trick like sending a 10-bit 0x00 character?

David

Beginning Microcontrollers with the MSP430

sorry people, I'm talking crap in public again aren't I.

I think that if you select "special" that forces the pin direction, but
from a quick look at the datasheet you seem to be able to cancel the
"special" on the TX pin, and drive it yourself;f, then hand it back.

Now if anyone thinks I'm still wrong, do let me know.

David
>From memory you can simply clear bit7 of ME1 (for uart0) and the
peripheral retains its other configuration data. Setting the bit
resumes normal operation.

I can't find an example here at the moment but this is what I do in
SPI mode (but now using ME1.6) and it seems to work fine.

Steve
I think it may just be a matter of clearing the PxSELx bit for your
UART pin. In advance of that, have the PxDIR bit set (for output
enable) and the PxOUT bit to 1 or 0, depending on your UART needs.

Also, be sure that your UART is "empty" (not just "ready") before you
do this, otherwise, you'll turn-off the pin while bits are still being
transmitted.

We ran into the same problem. We needed to send a "gap" with no
activity, but the UART does not explicitly provide that functionality.

Stuart

--- In m..., "David Collier"
wrote:
>
> sorry people, I'm talking crap in public again aren't I.
>
> I think that if you select "special" that forces the pin direction, but
> from a quick look at the datasheet you seem to be able to cancel the
> "special" on the TX pin, and drive it yourself;f, then hand it back.
>
> Now if anyone thinks I'm still wrong, do let me know.
>
> David
>