Skip to content

Does Pyboard support 9-bit UART? #16152

Discussion options

You must be logged in to vote

Same as with read. You have to pack a 9 bit value into 2 bytes, low order bits first. And then use uart.write() with the even number of bytes for sending. e.g. to send the value 0x161 as 9 bit quantity, use uart.write("\x61\x01"). You may create a separate function for format the message. It is important that you send the whole message in a single call to uart.write().

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@robert-hh
Comment options

@daleka
Comment options

@daleka
Comment options

@robert-hh
Comment options

Answer selected by daleka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants