Datasheet

PIC16(L)F1454/5/9
DS41639A-page 130 Preliminary 2012 Microchip Technology Inc.
12.1 Alternate Pin Function
The Alternate Pin Function Control register is used to
steer specific peripheral input and output functions
between different pins. The APFCON register is shown
in Register 12-1. For this device family, the following
functions can be moved between different pins.
•CLKR
•SDO
•SS
•T1G
•P2
These bits have no effect on the values of any TRIS
register. PORT and TRIS overrides will be routed to the
correct pin. The unselected pin will be unaffected.
12.2 Register Definitions: Alternate Pin Function Control
REGISTER 12-1: APFCON: ALTERNATE PIN FUNCTION CONTROL REGISTER
R/W-0/0 R/W-0/0 R/W-0/0 U-0 R/W-0/0 R/W-0/0 U-0 U-0
CLKRSEL SDOSEL
(1)
SSSEL
T1GSEL P2SEL
(1)
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
u = Bit is unchanged x = Bit is unknown -n/n = Value at POR and BOR/Value at all other Resets
‘1’ = Bit is set ‘0’ = Bit is cleared
bit 7 CLKRSEL: Pin Selection bit
1 = CLKR function is on RC3
0 = CLKR function is on RA4
bit 6 SDOSEL: Pin Selection bit
(1)
1 = SDO function is on RA4
0 = SDO function is on RC2
bit 5 SSSEL: Pin Selection bit
For 14-Pin Devices (
PIC16(L)F1454/5):
1 =SS function is on RA3
0 =SS
function is on RC3
For 20-Pin Devices (
PIC16(L)F1455/9):
1 =SS
function is on RA3
0 =SS
function is on RC6
bit 4 Unimplemented: Read as0
bit 3 T1GSEL: Pin Selection bit
1 = T1G function is on RA3
0 = T1G function is on RA4
bit 2 P2SEL: Pin Selection bit
(1)
1 = T1G function is on RA5
0 = T1G function is on RC3
bit 1-0 Unimplemented: Read as ‘0
Note 1: PIC16(L)F1454/5 only.