Skip to main content
Associate II
August 16, 2024
Solved

UART 7-Bit mode in STM32F103C8T6 Controller

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.

 

This topic has been closed for replies.
Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
August 16, 2024

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.

4 replies

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
August 16, 2024

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.
YeswanthAuthor
Associate II
August 16, 2024

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

Peter BENSCH
ST Technical Moderator
August 16, 2024

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.
YeswanthAuthor
Associate II
August 16, 2024

Thank You Peter.