Datasheet

2011 Microchip Technology Inc. DS39931D-page 141
PIC18F46J50 FAMILY
RB4/PMA1/
KBI0/SCK1/
SCL1/RP7
RB4 0 O DIG LATB<4> data output; not affected by analog input.
1 I TTL PORTB<4> data input; weak pull-up when RBPU
bit is
cleared. Disabled when analog input is enabled.
(1)
PMA1
(3)
1 I ST/TTL Parallel Slave Port Address input.
0 O DIG Parallel Master Port Address output.
KBI0 1 I TTL Interrupt-on-change pin.
SCK1 1 I ST SPI clock input (MSSP1 module).
0 O DIG SPI clock output (MSSP1 module).
SCL1 1 II
2
C/
SMBus
I
2
C™ clock input (MSSP1 module).
0 OI
2
CI
2
C clock output (MSSP1 module).
RP7 1 I ST Remappable Peripheral Pin 7 input.
0 O DIG Remappable Peripheral Pin 7 output.
RB5/PMA0/
KBI1/SDI1/
SDA1/RP8
RB5 0 O DIG LATB<5> data output.
1 I TTL PORTB<5> data input; weak pull-up when RBPU
bit is
cleared.
KBI1 1 I TTL Interrupt-on-change pin.
PMA0
(3)
1 I ST/TTL Parallel Slave Port Address input
0 O DIG Parallel Master Port Address output
SDI1 1 I ST SPI data input (MSSP1 module).
SDA1 1 II
2
C/
SMBus
I
2
C data input (MSSP1 module).
0 OI
2
CI
2
C™/SMBus.
RP8 1 I ST Remappable Peripheral Pin 8 input.
0 O DIG Remappable Peripheral Pin 8 output.
RB6/KBI2/
PGC/RP9
RB6 0 O DIG LATB<6> data output.
1 I TTL PORTB<6> data input; weak pull-up when RBPU
bit is
cleared.
KBI2 1 I TTL Interrupt-on-change pin.
PGC x I ST Serial execution (ICSP™) clock input for ICSP and ICD
operation.
(2)
RP9 1 I ST Remappable Peripheral Pin 9 input.
0 O DIG Remappable Peripheral Pin 9 output.
TABLE 10-5: PORTB I/O SUMMARY (CONTINUED)
Pin Function
TRIS
Setting
I/O
I/O
Type
Description
Legend: DIG = Digital level output; TTL = TTL input buffer; ST = Schmitt Trigger input buffer; ANA = Analog level
input/output; x = Don’t care (TRIS bit does not affect port direction or is overridden for this option)
Note 1: Pins are configured as analog inputs by default on POR. Using these pins for digital inputs requires setting
the appropriate bits in the ANCONx register first.
2: All other pin functions are disabled when ICSP™ or MPLAB
®
ICD are enabled.
3: This functionality is only available on 44-pin devices.