Datasheet

2012 Microchip Technology Inc. Preliminary DS41637B-page 131
PIC16(L)F1784/6/7
13.2 Register Definitions: Alternate Pin Function Control
REGISTER 13-1: APFCON1: ALTERNATE PIN FUNCTION CONTROL 1 REGISTER
R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0
C2OUTSEL CCP1SEL SDOSEL SCKSEL SDISEL
TXSEL
RXSEL CCP2SEL
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
C2OUTSEL: C2OUT Pin Selection bit
1 = C2OUT is on pin RA6
0 = C2OUT is on pin RA5
bit 6
CCP1SEL: CCP1 Input/Output Pin Selection bit
1 = CCP1 is on pin RB0
0 = CCP1 is on pin RC2
bit 5
SDOSEL: MSSP SDO Pin Selection bit
1 = SDO is on pin RB5
0 = SDO is on pin RC5
bit 4
SCKSEL: MSSP Serial Clock (SCL/SCK) Pin Selection bit
1 = SCL/SCK is on pin RB7
0 = SCL/SCK is on pin RC3
bit 3
SDISEL: MSSP Serial Data (SDA/SDI) Output Pin Selection bit
1 = SDA/SDI is on pin RB6
0 = SDA/SDI is on pin RC4
bit 2
TXSEL: TX Pin Selection bit
1 = TX is on pin RB6
0 = TX is on pin RC6
bit 1
RXSEL: RX Pin Selection bit
1 = RX is on pin RB7
0 = RX is on pin RC7
bit 0
CCP2SEL: CCP2 Input/Output Pin Selection bit
1 = CCP2 is on pin RB3
0 = CCP2 is on pin RC1
REGISTER 13-2: APFCON2: ALTERNATE PIN FUNCTION CONTROL 2 REGISTER
U-0 U-0 U-0 U-0 U-0 U-0 U-0
R/W-0/0
CCP3SEL
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-1
Unimplemented: Read as ‘0
bit 0
CCP3SEL: CCP3 Input/Output Pin Selection bit
1 = CCP3 is on pin RB5
PIC16(L)F1786 devices
:
0 = CCP3 is on pin RC6
PIC16(L)F1784/7 devices
:
0 = CCP3 is on pin RE0