Serial with Mark/Space Parity

iwalker
Posts: 1
Joined: Sun Nov 15, 2015 4:13 am

Serial with Mark/Space Parity

Postby iwalker » Mon Jan 02, 2017 9:12 am

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

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Serial with Mark/Space Parity

Postby WiFive » Mon Jan 02, 2017 9:33 am

https://github.com/espressif/esp-idf/bl ... ver/uart.h

Try using 2 stop bits for mark parity.

pimaliao
Posts: 1
Joined: Tue Aug 24, 2021 5:12 am

Re: Serial with Mark/Space Parity

Postby pimaliao » Tue Aug 24, 2021 5:17 am

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.

Who is online

Users browsing this forum: Bing [Bot], PCRiscV and 68 guests