|
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.
|
▷ |