Home > other >  Stm32 questions about cr1 register Settings
Stm32 questions about cr1 register Settings

Time:10-11

USART1 - & gt; CR1 |=0 x200c;//one stop, no parity bit.
Have bosses know why this is equal to 0 x200c, crying, C language foundation is bad can explain

CodePudding user response:

The
refer to the original poster weixin_44752570 response:
USART1 - & gt; CR1 |=0 x200c;//one stop, no parity bit.
Have bosses know why this is equal to 0 x200c, crying, C language foundation is bad can explain

Why is zero x200c with C language it doesn't matter, this is the STM32 CR1 register Settings,

Pictures of STM32F103X CR1 register,
0 x200c=0 b0010000000001100, corresponding to one of bit13, bit3 and bit2, respectively USART module can make, can make sending and receiving enabled, bit12 s said data word includes a start bit, 8 data bits n stop bits, bit10 0 means ban inspection,
I need to understand SCM register Settings, "STM32F103XXX reference manual" for reference, can be downloaded in the manual with detailed description of register,

CodePudding user response:

You this is or equal to the
  • Related