Parity and Stop Bits of SoftwareSerial

Hi,

does anyone know the parity and number of stop bits for the from
SoftwareSerial emulated UART port?

Thanks

A quick look at the source code on github and it doesn't look like there's any code to support a parity bit or stop bit(s) on Tx or Rx. Stop bit(s) may be there as a result of the delay between bytes due to software emulation.

Hi,
I think 8N1 should be the standard, but I'm not sure.

Source code seems to agree :wink:

  // Write each of the 8 bits
  for (uint8_t i = 8; i > 0; --i)
  {
    if (b & 1) // choose bit
      *reg |= reg_mask; // send 1
    else
      *reg &= inv_mask; // send 0

    tunedDelay(delay);
    b >>= 1;
  }

...
...

  tunedDelay(_tx_delay);

The last tunedDelay should be the stop bit. There is no sign of parity

1 Like

Thanks

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.