35.2.2.1 Enabling the Receiver
The UART receiver is enabled for asynchronous operation by configuring the following control bits:
- RXEN = 1
- MODE = 0000 through 0011
- UxBRG = desired baud rate
- BRGS = desired baud rate multiplier
- RXPPS = code for desired input pin
- Input pin ANSEL bit = 0
- ON = 1
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.