-
UASRT 레지스터 CR2STM32 2021. 9. 29. 04:20
Control register 2 (USART_CR2)
Bits 31:28 ADD[7:4]: Address of the USART node
Bits 27:24 ADD[3:0]: Address of the USART node
Bit 23 RTOEN: Receiver timeout enable
Bits 22:21 ABRMOD[1:0]: Auto baud rate mode
00: Measurement of the start bit is used to detect the baud rate.
01: Falling edge to falling edge measurement.
10: 0x7F frame detection.
11: 0x55 frame detection
Bit 20 ABREN: Auto baud rate enable
Bit 19 MSBFIRST: Most significant bit first
Bit 18 DATAINV: Binary data inversion
Bit 17 TXINV: TX pin active level inversion
Bit 16 RXINV: RX pin active level inversion
Bit 15 SWAP: Swap TX/RX pins
Bit 14 Reserved, must be kept at reset value.
Bits 13:12 STOP[1:0]: STOP bits
00: 1 stop bit
01: Reserved
10: 2 stop bits
11: Reserved
Bit 11 CLKEN: Clock enable
Bit 10 CPOL: Clock polarity
Bit 9 CPHA: Clock phase
Bit 8 LBCL: Last bit clock pulse
Bits 7:5 Reserved, must be kept at reset value.
Bit 4 ADDM7:7-bit Address Detection/4-bit Address Detection
0: 4-bit address detection
1: 7-bit address detection (in 8-bit data mode)
Bits 3:0 Reserved, must be kept at reset value.'STM32' 카테고리의 다른 글
STM32CubeIDE 설치 (0) 2022.12.29 SWV로 printf 나오게 하기. (STM32CubeIDE 사용) (0) 2021.11.29 USART 레지스터 ISR (0) 2021.09.29 USART 레지스터 CR3 (0) 2021.09.29 USART 레지스터 CR1 (0) 2021.09.29