Skip to main content
Graduate
August 16, 2024
Solved

UART 7-Bit mode in STM32F103C8T6 Controller

  • August 16, 2024
  • 2 replies
  • 1565 views

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.
    Best answer by Peter BENSCH

    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

    2 replies

    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

    YeswanthAuthor
    Graduate
    August 16, 2024

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

    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

    YeswanthAuthor
    Graduate
    August 16, 2024

    Thank You Peter.