Page 1 of 1

Serial with Mark/Space Parity

Posted: Mon Jan 02, 2017 9:12 am
by iwalker
Hi There

I need to talk to a device that requires 9 bit serial where the 9th bit has to be set high to let the device know it is being addressed.
On Arduino I managed this by manipulating the relevant serial control registers.
Is this possible with the ESP32 and where can I find details on the serial control registers for this chip ?

Thanks

Re: Serial with Mark/Space Parity

Posted: Mon Jan 02, 2017 9:33 am
by WiFive
https://github.com/espressif/esp-idf/bl ... ver/uart.h

Try using 2 stop bits for mark parity.

Re: Serial with Mark/Space Parity

Posted: Tue Aug 24, 2021 5:17 am
by pimaliao
hi:
I need to talk to a device that requires 9 bit serial where the 9th bit has to be set low(zero)
I'm needa "space" is a 0-bit (or logic 0).
For space parity it's always a zero-bit.