30.1.2.1 Enabling the Receiver

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

  • The Continuous Receive Enable (CREN) bit is set to ‘1’ to enables the receiver circuitry of the EUSART
  • The EUSART Mode Select (SYNC) bit is set to ‘0’ to configure the EUSART for asynchronous operation
  • The Serial Port Enable (SPEN) bit is set to ‘1’ to enable the EUSART interface

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

The user must set the RXxPPS register to select the RXx/DTx I/O pin and set the corresponding TRIS bit to configure the pin as an input.

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