Uart for 16 bit /32 bit micro

Thread Starter

Gajyamadake

Joined Oct 9, 2019
310
Hi,
I know how uart works for 8 bit microcontrollers. UART generates a start bit, send or receive byte, generates and sends the parity bit if used, and sends the stop bits.

I do not have 16 bit and 32 bit microcontrollers. I want to understand how does uart works for 16 bit/32 microcontrollers

Is Uart process the same for every micro, only the data length will changes ie. 16 bit micro send/receive 2 bytes of data at one time, 32 bit sends/receive 4 bytes of data ?
 

MrChips

Joined Oct 2, 2009
34,700
The UART protocol is well defined for transmitting 5, 6, 7, 8 or 9 data bits.
In addition there is a START bit and a STOP bit.
Hence if 8 data bits are being transmitted, a total of 10 bits are transmitted.
 

jpanhalt

Joined Jan 18, 2008
11,087
If you look at the datasheets for Microchip's PIC24F (16 bit) and PIC32 (32 bit) MCU's, you will notice that the USART transmit and receive buffers are only 8-bit. That doesn't mean you couldn't write your own software for 16 bit duplex serial, but it wouldn't be USART.
 
Last edited:

Thread Starter

Gajyamadake

Joined Oct 9, 2019
310
The UART protocol is well defined for transmitting 5, 6, 7, 8 or 9 data bits.
In addition there is a START bit and a STOP bit.
Hence if 8 data bits are being transmitted, a total of 10 bits are transmitted.
If the micro is 32 bit, will 34 data bits are transmitted?
 

ericgibbs

Joined Jan 29, 2010
21,419
hi,
No, it will be transmitted as: 10 bits,.. start bit, 8 data bits, one stop bit , and the program should call the transmit routine 4 times, for all 4 bytes
E
 
Top