Datasheet

Table Of Contents
2010 Microchip Technology Inc. DS39770C-page 119
PIC18F85J90 FAMILY
TABLE 10-5: PORTB FUNCTIONS
Pin Name Function
TRIS
Setting
I/O
I/O
Type
Description
RB0/INT0/SEG30 RB0 0 O DIG LATB<0> data output.
1 I TTL PORTB<0> data input; weak pull-up when RBPU
bit is cleared.
INT0 1 I ST External Interrupt 0 input.
SEG30 x O ANA LCD Segment 30 output; disables all other pin functions.
RB1/INT1/SEG8 RB1 0 O DIG LATB<1> data output.
1 I TTL PORTB<1> data input; weak pull-up when RBPU
bit is cleared.
INT1 1 I ST External Interrupt 1 input.
SEG8 x O ANA LCD Segment 8 output; disables all other pin functions.
RB2/INT2/SEG9 RB2 0 O DIG LATB<2> data output.
1 I TTL PORTB<2> data input; weak pull-up when RBPU
bit is cleared.
INT2 1 I ST External Interrupt 2 input.
SEG9 x O ANA LCD Segment 9 output; disables all other pin functions.
RB3/INT3/SEG10 RB3 0 O DIG LATB<3> data output.
1 I TTL PORTB<3> data input; weak pull-up when RBPU
bit is cleared.
INT3 1 I ST External Interrupt 3 input.
SEG10 x O ANA LCD Segment 10 output; disables all other pin functions.
RB4/KBI0/SEG11 RB4 0 O DIG LATB<4> data output.
1 I TTL PORTB<4> data input; weak pull-up when RBPU
bit is cleared.
KBI0 1 I TTL Interrupt-on-pin change.
SEG11 x O ANA LCD Segment 11 output; disables all other pin functions.
RB5/KBI1/SEG29 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-pin change.
SEG29 x O ANA LCD Segment 29 output; disables all other pin functions.
RB6/KBI2/PGC 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-pin change.
PGC x I ST Serial execution (ICSP™) clock input for ICSP and ICD operation.
RB7/KBI3/PGD RB7 0 O DIG LATB<7> data output.
1 I TTL PORTB<7> data input; weak pull-up when RBPU
bit is cleared.
KBI3 1 I TTL Interrupt-on-pin change.
PGD x O DIG Serial execution data output for ICSP and ICD operation.
x I ST Serial execution data input for ICSP and ICD operation.
Legend: O = Output, I = Input, ANA = Analog Signal, DIG = Digital Output, ST = Schmitt Trigger Buffer Input,
TTL = TTL Buffer Input, x = Don’t care (TRIS bit does not affect port direction or is overridden for this option).