English
Language : 

PIC16F1847_13 Datasheet, PDF (128/440 Pages) Microchip Technology – 18/20/28-Pin Flash Microcontrollers with XLP Technology
PIC16(L)F1847
12.6.1 PORTB FUNCTIONS AND OUTPUT
PRIORITIES
Each PORTB pin is multiplexed with other functions. The
pins, their combined functions and their output priorities
are shown in Table 12-4.
When multiple outputs are enabled, the actual pin
control goes to the peripheral with the highest priority.
Analog input and some digital input functions are not
included in the list below. These input functions can
remain active when the pin is configured as an output.
Certain digital input functions override other port
functions and are included in the priority list.
TABLE 12-4: PORTB OUTPUT PRIORITY
Pin Name
Function Priority(1)
RB0
P1A
RB0
RB1
SDA1
RX/DT
RB1
RB2
SDA2
TX/CK
RX/DT
SDO1
RB2
RB3
MDOUT
CCP1/P1A
RB3
RB4
SCL1
SCK1
RB4
RB5
SCL2
TX/CK
SCK2
P1B
RB5
RB6
ICSPCLK
T1OSI
P1C
CCP2
P2A
RB6
RB7
ICSPDAT
T1OSO
P1D
P2B
RB7
Note 1: Priority listed from highest to lowest.
TABLE 12-5: SUMMARY OF REGISTERS ASSOCIATED WITH PORTB
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
ANSELB
ANSB7 ANSB6 ANSB5 ANSB4
ANSB3
ANSB2 ANSB1
LATB
LATB7
LATB6
LATB5
LATB4
LATB3
LATB2
LATB1
OPTION_REG WPUEN INTEDG TMR0CS TMR0SE
PSA
PS<2:0>
PORTB
RB7
RB6
RB5
RB4
RB3
RB2
RB1
TRISB
TRISB7 TRISB6 TRISB5 TRISB4
TRISB3
TRISB2 TRISB1
WPUB
WPUB7 WPUB6 WPUB5 WPUB4
WPUB3
WPUB2 WPUB1
Legend: — = unimplemented locations read as ‘0’. Shaded cells are not used by PORTB.
Bit 0
—
LATB0
RB0
TRISB0
WPUB0
Register
on Page
127
126
175
126
126
127
DS40001453D-page 128
Preliminary
 2011-2013 Microchip Technology Inc.