UART Frame = Sart bit + number of data bits + Stop bits
Where number of data bits may 5, 6,7,8, and 9 bits
I noticed that UART communication allows for data bits between 5 and 9 bits, with 8 bits being the most common configuration. This can be done on 8-bit, 16-bit, and 32-bit microcontrollers. Have you ever attempted to configure it for 5 bits? If not, I'm curious about the practicality of sending only 5 bits on an 8-bit microcontroller. It seems that if you have a one-character variable and mask 3 bits to send only 5 bits, the receiver will still receive 1 byte
Where number of data bits may 5, 6,7,8, and 9 bits
I noticed that UART communication allows for data bits between 5 and 9 bits, with 8 bits being the most common configuration. This can be done on 8-bit, 16-bit, and 32-bit microcontrollers. Have you ever attempted to configure it for 5 bits? If not, I'm curious about the practicality of sending only 5 bits on an 8-bit microcontroller. It seems that if you have a one-character variable and mask 3 bits to send only 5 bits, the receiver will still receive 1 byte
Last edited:
