STM32

USART 레지스터 CR1

봄가을1 2021. 9. 29. 04:13

Control register 1 (USART_CR1)

    Bits 31:29 Reserved, must be kept at reset value
    Bit 28 M1: Word length
        M[1:0] = 00: 1 Start bit, 8 data bits, n stop bits
        M[1:0] = 01: 1 Start bit, 9 data bits, n stop bits
        M[1:0] = 10: 1 Start bit, 7 data bits, n stop bits
        This bit can only be written when the USART is disabled (UE=0).
    Bit 27 Reserved, must be kept at reset value
    Bit 26 RTOIE: Receiver timeout interrupt enable
    Bits 25:21 DEAT[4:0]: Driver Enable assertion time
    Bits 20:16 DEDT[4:0]: Driver Enable de-assertion time
    Bit 15 OVER8: Oversampling mode
        0: Oversampling by 16
        1: Oversampling by 8
    Bit 14 CMIE: Character match interrupt enable
    Bit 13 MME: Mute mode enable
    Bit 12 M0: Word length
        0: 1 Start bit, 8 data bits, n stop bits
        1: 1 Start bit, 9 data bits, n stop bits
    Bit 11 WAKE: Receiver wakeup method
        0: Idle line
        1: Address mark
    Bit 10 PCE: Parity control enable
    Bit 9 PS: Parity selection
        0: Even parity
        1: Odd parity
    Bit 8 PEIE: PE interrupt enable
    Bit 7 TXEIE: interrupt enable
    Bit 6 TCIE: Transmission complete interrupt enable
    Bit 5 RXNEIE: RXNE interrupt enable
    Bit 4 IDLEIE: IDLE interrupt enable
    Bit 3 TE: Transmitter enable
    Bit 2 RE: Receiver enable
    Bit 1 Reserved, must be kept at reset value.
    Bit 0 UE: USART enable