cancel
Showing results for 
Search instead for 
Did you mean: 

USART

Adrush Rawal
Associate II

Hi,

Can i use usart instead of uart???

Regards

Adrush

3 REPLIES 3
berendi
Principal

Yes, they are compatible, USARTs can do everything that UARTs can, and some more.

As long as you are only using functionality that is present in UARTs, they behave exactly the same way on the register level.

Actually, it was a dumb decision from ST to use two different names for the same module with different configuration, to the extent that symbols for their incarnations in CMSIS device headers are different which makes automatic code generation unecessarily difficult (the same idiocy is in the "libraries", but I don't care about them).

At the same time, for example, TIMs which come in a dozen of different configuration within one STM32, are still TIMx...

JW

Piranha
Chief II

I'm using USART CMSIS register/bit names in my USART driver, which I'm using for any USART/UART peripheral. Therefore the only place, where USART/UART names differ, is a single definition in BSP, but that is board specific anyway. And reference manual also has no UART chapter...