Datasheet
PIC16(L)F1847
DS40001453E-page 128 2011-2013 Microchip Technology Inc.
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-5: SUMMARY OF REGISTERS ASSOCIATED WITH PORTB
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.
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Register
on Page
ANSELB ANSB7 ANSB6 ANSB5 ANSB4 ANSB3 ANSB2 ANSB1 — 127
LATB LATB7 LATB6 LATB5 LATB4 LATB3 LATB2 LATB1 LATB0 126
OPTION_REG WPUEN
INTEDG TMR0CS TMR0SE PSA PS<2:0> 175
PORTB RB7 RB6 RB5 RB4 RB3 RB2 RB1 RB0 126
TRISB TRISB7 TRISB6 TRISB5 TRISB4 TRISB3 TRISB2 TRISB1 TRISB0 126
WPUB WPUB7 WPUB6 WPUB5 WPUB4 WPUB3 WPUB2 WPUB1 WPUB0 127
Legend: — = unimplemented locations read as ‘0’. Shaded cells are not used by PORTB.