Enabling the Receiver

The UART receiver is enabled for asynchronous operation by configuring the following control bits:

All other UART control bits are assumed to be in their default state.

Setting the RXEN bit enables the receiver circuitry of the UART. Setting the MODE bits configures the UART for the desired Asynchronous mode. Setting the ON bit enables the UART. The TRIS bit corresponding to the selected RX I/O pin must be set to configure the pin as an input.

Important: If the RX function is on an analog pin, the corresponding ANSEL bit must be cleared for the receiver to function.