cancel
Showing results for 
Search instead for 
Did you mean: 

UART 7-Bit mode in STM32F103C8T6 Controller

Yeswanth
Associate II

Hii 

I am using STM32F103C8T6 controller and i want to initialize UART 7-Bit mode as per this configurations none Partiy Bit and 1 stop Bit. But in the controller has  these two parameters UART_WORDLENGTH_8B & UART_WORDLENGTH_9B. Then how to init UART in 7-Bit mode.

 

Please Help me to Complete this task.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

The STM32F103C8T6 only has the two word lengths 8bit and 9bit. However, one bit can be configured as parity so that 7 data bits remain with an 8-bit word length.

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

4 REPLIES 4
Peter BENSCH
ST Employee

The STM32F103C8T6 only has the two word lengths 8bit and 9bit. However, one bit can be configured as parity so that 7 data bits remain with an 8-bit word length.

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Yeswanth
Associate II

Any no more chances to init UART in 7-Bit mode.

If this is a question, then right, no chance of using the USART in 7-bit mode with this STM32F103.

But most of the more recent STM32 provide additionally 7-bit, e.g. STM32F0, STM32G0, STM32F7 or STM32U0.

Good luck!
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Thank You Peter.