This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RXBUFFER与txbuffer



能详细的讲讲这两个寄存器吗

 

  • UxRXBUF, USART Receive Buffer Register:

    The receive-data buffer is user accessible and contains the last received character from the receive shift register. Reading UxRXBUF resets the receive-error bits, the RXWAKE bit, and URXIFGx. In 7-bit data mode, UxRXBUF is LSB justified and the MSB is always reset.

    UxTXBUF, USART Transmit Buffer Register:

    The transmit data buffer is user accessible and holds the data waiting to be
    moved into the transmit shift register and transmitted on UTXDx. Writing to
    the transmit data buffer clears UTXIFGx. The MSB of UxTXBUF is not
    used for 7-bit data and is reset.