English
Language : 

PIC16F1829LIN Datasheet, PDF (38/74 Pages) Micon Design Technology Corporation – 20-Pin, 8-bit Flash LIN/J2602 Microcontroller
PIC16F1829LIN
5.0 I/O PORTS
5.1 Alternate Pin Function
The Alternate Pin Function Control 0 (APFCON0) and
Alternate Pin Function Control 1 (APFCON1) registers
are used to steer specific peripheral input and output
functions between different pins. It functions the same
as described in the “PIC16(L)F1825/1829 Data Sheet”
(DS41440) with the differences described below.
The APFCON0 and APFCON1 registers are shown in
Register 5-1 and Register 5-2. For this device family,
the following functions can be moved between different
pins.
• RX/DT/TX/CK
• T1G
• P1B/P1C/P1D/P2B
• CCP1/P1A/CCP2
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 Definitions: Alternate Pin Function Control
REGISTER 5-1: APFCON0: ALTERNATE PIN FUNCTION CONTROL REGISTER 0
R/W-0/0
R/W-0/0
R/W-0/0
U-0
R/W-0/0
R/W-0/0
U-0
RXDTSEL
—
—
—
T1GSEL TXCKSEL
—
bit 7
U-0
—
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
bit 7
bit 6-4
bit 3
bit 2
bit 1-0
RXDTSEL: Pin Selection bit
0 = RX/DT function is on RB5
1 = Do not use
Unimplemented: Read as ‘0’
T1GSEL: Pin Selection bit
0 = T1G function is on RA4
1 = T1G function is on RA3
TXCKSEL: Pin Selection bit
0 = TX/CK function is on RB7
1 = TX/CK function is on RC4
Unimplemented: Read as ‘0’
DS41673A-page 38
Preliminary
 2012 Microchip Technology Inc.