English
Language : 

PIC18F23K22 Datasheet, PDF (264/492 Pages) Microchip Technology – 28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
PIC18(L)F2X/4XK22
FIGURE 16-2:
EUSART RECEIVE BLOCK DIAGRAM
CREN
OERR
RCIDL
RXx/DTx pin
Pin Buffer
and Control
Data
Recovery
Baud Rate Generator
BRG16
+1
SPBRGHx SPBRGx
FOSC
÷n
Multiplier x4 x16 x64 n
SYNC 1 X 0 0 0
BRGH X 1 1 0 0
BRG16 X 1 0 1 0
The operation of the EUSART module is controlled
through three registers:
• Transmit Status and Control (TXSTAx)
• Receive Status and Control (RCSTAx)
• Baud Rate Control (BAUDCONx)
These registers are detailed in Register 16-1,
Register 16-2 and Register 16-3, respectively.
For all modes of EUSART operation, the TRIS control
bits corresponding to the RXx/DTx and TXx/CKx pins
should be set to ‘1’. The EUSART control will
automatically reconfigure the pin from input to output, as
needed.
When the receiver or transmitter section is not enabled
then the corresponding RXx/DTx or TXx/CKx pin may be
used for general purpose input and output.
MSb
Stop (8)
RSR Register
7 ••• 1
LSb
0 START
RX9
FERR
RX9D
RCREGx Register
FIFO
8
Data Bus
RCxIF
RCxIE
Interrupt
DS41412B-page 264
Preliminary
 2010 Microchip Technology Inc.