Hi Bilal Wasim,
How did you configure your PC teraterm? If you configre it as 8bits data+ 1bits stop+odds.
Then you should choose the MCU as 9 bits mode, please configure UARTx_C1[M]=1, because one odds bit also followed in the MCU data, if you just configure MCU as 8 bits data and enable the odds, then actually, the MCU uart data is just 7 bits.
In conclusion, set UARTx_C1[M] bit.
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------