I am working on UART configuration for pic16f877a and want to configure registers for UART ...
I have looked datasheet of pic16f877a I don't understand the correct way for the UART configuration so could anyone help to configure register.
I have attached pic16f877a datasheet. page 112, 113 uart
TXSTA :Transmit Status And Control Register
RCSTA : Receive Status And Control Register
SPBRG : USART Baud Rate Generator
TXREG : USART Transmit Register. Holds the data to be transmitted on UART...
UART Register Configuration
I have looked datasheet of pic16f877a I don't understand the correct way for the UART configuration so could anyone help to configure register.
I have attached pic16f877a datasheet. page 112, 113 uart
TXSTA :Transmit Status And Control Register
RCSTA : Receive Status And Control Register
SPBRG : USART Baud Rate Generator
TXREG : USART Transmit Register. Holds the data to be transmitted on UART...
UART Register Configuration