Datasheet

Table Of Contents
PIC12(L)F1501
DS41615A-page 100 Preliminary 2011 Microchip Technology Inc.
11.1 Alternate Pin Function
The Alternate Pin Function Control (APFCON) register
is used to steer specific peripheral input and output
functions between different pins. The APFCON register
is shown in Register 11-1. For this device family, the
following functions can be moved between different
pins.
•SDO
•SS
•T1G
•CLC1
NCO1
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.
REGISTER 11-1: APFCON: ALTERNATE PIN FUNCTION CONTROL REGISTER
R/W-0/0 R/W-0/0 U-0 U-0 R/W-0/0 U-0 R/W-0/0 R/W-0/0
CWG1BSEL CWG1ASEL
T1GSEL
CLC1SEL NCO1SEL
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 CWG1BSEL: Pin Selection bit
1 = CWG1B function is on RA4
0 = CWG1B function is on RA0
bit 6 CWG1ASEL: Pin Selection bit
1 = CWG1A function is on RA5
0 = CWG1A function is on RA2
bit 5-4 Unimplemented: Read as ‘0
bit 3 T1GSEL: Pin Selection bit
1 = T1G function is on RA3
0 = T1G function is on RA4
bit 2 Unimplemented: Read as ‘0
bit 1 CLC1SEL: Pin Selection bit
1 = CLC1 function is on RA4
0 = CLC1 function is on RA2
bit 0 NCO1SEL: Pin Selection bit
1 = NCO1 function is on RA5
0 = NCO1 function is on RA1