Microchip Technology MA330031-2 Data Sheet

Page of 530
 2011-2013 Microchip Technology Inc.
DS70000657H-page 283
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X AND PIC24EPXXXGP/MC20X
20.3
UARTx Control Registers
REGISTER 20-1:
UxMODE: UART
x
 MODE REGISTER
R/W-0
U-0
R/W-0
R/W-0
R/W-0
U-0
R/W-0
R/W-0
UARTEN
(
)
USIDL
IREN
RTSMD
UEN1
UEN0
bit 15
bit 8
R/W-0, HC
R/W-0
R/W-0, HC
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
WAKE
LPBACK
ABAUD
URXINV
BRGH
PDSEL1
PDSEL0
STSEL
bit 7
bit 0
Legend:
HC = Hardware Clearable bit
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 15
UARTEN:
 UARTx Enable bit
(
)
1
 = UARTx is enabled; all UARTx pins are controlled by UARTx as defined by UEN<1:0>
0
 = UARTx is disabled; all UARTx pins are controlled by PORT latches; UARTx power consumption is
minimal
bit 14
Unimplemented:
 Read as ‘0’
bit 13
USIDL:
 UARTx Stop in Idle Mode bit
1
 = Discontinues module operation when device enters Idle mode
0
 = Continues module operation in Idle mode
bit 12
IREN:
 IrDA
®
 Encoder and Decoder Enable bit
(
)
1
 = IrDA encoder and decoder are enabled
0
 = IrDA encoder and decoder are disabled
bit 11
RTSMD:
 Mode Selection for UxRTS Pin bit
1
  = UxRTS pin is in Simplex mode
0
  = UxRTS pin is in Flow Control mode
bit 10
Unimplemented:
 Read as ‘0’
bit 9-8
UEN<1:0>:
 UARTx Pin Enable bits
11
 = UxTX, UxRX and BCLKx pins are enabled and used; UxCTS pin is controlled by PORT latches
10
 = UxTX, UxRX, UxCTS and UxRTS pins are enabled and used
01
 = UxTX, UxRX and UxRTS pins are enabled and used; UxCTS pin is controlled by PORT latches
00
 = UxTX and UxRX pins are enabled and used; UxCTS and UxRTS/BCLKx pins are controlled by
PORT latches
bit 7
WAKE:
 Wake-up on Start bit Detect During Sleep Mode Enable bit
1
 = UARTx continues to sample the UxRX pin; interrupt is generated on the falling edge; bit is cleared
in hardware on the following rising edge
0
 = No wake-up is enabled
bit 6
LPBACK:
 UARTx Loopback Mode Select bit
1
 = Enables Loopback mode
0
 = Loopback mode is disabled
Note 1:
Refer to the “UART” (DS70582) section in the “dsPIC33/PIC24 Family Reference Manual” for information on 
enabling the UARTx module for receive or transmit operation.
2:
This feature is only available for the 16x BRG mode (BRGH = 0).
3:
This feature is only available on 44-pin and 64-pin devices.
4:
This feature is only available on 64-pin devices.