
2001 Microchip Technology Inc.
Advance Information
DS39541A-page 107
PIC18C601/801
TABLE 9-3:
PORTB FUNCTIONS
TABLE 9-4:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTB
Name
Bit#
Buffer
Function
RB0/INT0
bit0
TTL/ST(1)
Input/output pin or external interrupt 0 input. Internal software
programmable weak pull-up.
RB1/INT1
bit1
TTL/ST(1)
Input/output pin or external interrupt 1 input. Internal software
programmable weak pull-up.
RB2/INT2
bit2
TTL/ST(1)
Input/output pin or external interrupt 2 input. Internal software
programmable weak pull-up.
RB3/CCP2
bit3
TTL/ST(3)
Input/output pin or Capture2 input or Capture2 output or PWM2 output.
Internal software programmable weak pull-up.
RB4
bit4
TTL
Input/output pin (with interrupt-on-change). Internal software programmable
weak pull-up.
RB5
bit5
TTL
Input/output pin (with interrupt-on-change). Internal software programmable
weak pull-up.
RB6
bit6
TTL/ST(2)
Input/output pin (with interrupt-on-change). Internal software programmable
weak pull-up. Serial programming clock.
RB7
bit7
TTL/ST(2)
Input/output pin (with interrupt-on-change). Internal software programmable
weak pull-up. Serial programming data.
Legend: TTL = TTL input, ST = Schmitt Trigger input
Note 1: This pin is a Schmitt Trigger input when configured as the external interrupt.
2: This pin is a Schmitt Trigger input when used in Serial Programming mode.
3: This pin is a Schmitt Trigger input when used in a Capture input.
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
POR, BOR
Value on
all other
RESETS
PORTB
RB7
RB6
RB5
RB4
RB3
RB2
RB1
RB0
xxxx xxxx
uuuu uuuu
LATB
LATB Data Output Register
xxxx xxxx
uuuu uuuu
TRISB
PORTB Data Direction Register
1111 1111
INTCON
GIE/GIEH PEIE/GIEL
TMR0IE
INT0IE
RBIE
TMR0IF
INT0IF
RBIF
0000 000x
0000 000u
INTCON2
RBPU
INTEDG0
INTEDG1 INTEDG2 INTEDG3 TMR0IP
—
RBIP
1111 1111
INTCON3
INT2IP
INT1IP
—
INT2IE
INT1IE
—
INT2IF
INT1IF 1100 0000 1100 0000
Legend: x = unknown, u = unchanged. Shaded cells are not used by PORTD.