English
Language : 

PIC18LF24K Datasheet, PDF (212/594 Pages) –
PIC18(L)F26/45/46K40
17.0 PERIPHERAL PIN SELECT
(PPS) MODULE
The Peripheral Pin Select (PPS) module connects
peripheral inputs and outputs to the device I/O pins. Only
digital signals are included in the selections. All analog
inputs and outputs remain fixed to their assigned pins.
Input and output selections are independent as shown in
the simplified block diagram Figure 17-1.
The peripheral input is selected with the peripheral
xxxPPS register (Register 17-1), and the peripheral
output is selected with the PORT RxyPPS register
(Register 17-2). For example, to select PORTC<7> as
the EUSART RX input, set RXxPPS to 5’b1 0111,
and to select PORTC<6> as the EUSART TX output
set RC6PPS to 5'b0 1001.
17.1 PPS Inputs
Each peripheral has a PPS register with which the
inputs to the peripheral are selected. Inputs include the
device pins.
Multiple peripherals can operate from the same source
simultaneously. Port reads always return the pin level
regardless of peripheral PPS selection. If a pin also has
analog functions associated, the ANSEL bit for that pin
must be cleared to enable the digital input buffer.
Although every peripheral has its own PPS input selec-
tion register, the selections are identical for every
peripheral as shown in Register 17-1.
Note:
The notation “xxx” in the register name is
a place holder for the peripheral identifier.
For example, INT0PPS.
17.2 PPS Outputs
Each I/O pin has a PPS register with which the pin
output source is selected. With few exceptions, the port
TRIS control associated with that pin retains control
over the pin output driver. Peripherals that control the
pin output driver as part of the peripheral operation will
override the TRIS control as needed. These
peripherals include:
• EUSART (synchronous operation)
• MSSP (I2C)
Although every pin has its own PPS peripheral
selection register, the selections are identical for every
pin as shown in Register 17-2.
Note: The notation “Rxy” is a place holder for the
pin identifier. For example, RA0PPS.
 2016 Microchip Technology Inc.
Preliminary
DS40001816C-page 212