Skip to content

SoftwareSerial how to set parity and stop bits? #97

@hmeijdam

Description

@hmeijdam

I was reading about the improvements in SoftwareSerial here #26

I understand that it can support any baudrate now, which is what I need.
I am working on generating a (Futaba) SBUS signal, which is 100000 baud, 8 bits, even parity, 2 stop bits and it's inverted.

I can use the hardware serial by using Serial.begin(100000, SERIAL_8E2); but then I need to invert the signal with a transistor.

Software Serial can do the inversion via the creation of this object: SoftwareSerial mySerial(10, 11, 1); // RX, TX, 1 = inverted and then use mySerial.begin(100000);

But then it is 8N1 inverted instead of the rare 8E2 inverted that i need.

Any ideas how I could get the best of both? An inverted 8E2 at 100000 baud with SoftwareSerial?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions