Jump to content
  • 0

UART device -- stop bits setting?


Guest

Question

Hi,

I've been toying with the DigitalUart API.

The FDwfDigitalUartTxSet allows the setting of the number of stop bits. Its parameter is of type double, which makes sense; some (old) serial devices specify a non-integer number of stop bits, in particular 1.5 stop bits is something that you could come across in real life (well back in the 1970s anyway).

However, I did some tests and this is not what at least the TX-side does. The number of TX-side stop-bits, i.e., the pause between the last data-bit and the next character's start bit seems to be equal to ceiling(stopbits).

Which leads to my question: does the RX-side actually honor non-integer stop-bit counts? (I could do an experiment but it's a bit tiresome).

If not, then the "double" type is a bit unfortunate, because it suggests a behavior that is not really there. Unfortunately, the documentation is too sparse on this to tell if the API intends to support things like 1.5 stop bits.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...