PIC16C925/926
TABLE 4-3: PORTB FUNCTIONS
Name
Bit#
Buffer
Function
RB0/INT
bit0
TTL/ST
Input/output pin or external interrupt input. Internal software
programmable weak pull-up. This buffer is a Schmitt Trigger input when
configured as the external interrupt.
RB1
bit1
TTL
Input/output pin. Internal software programmable weak pull-up.
RB2
bit2
TTL
Input/output pin. Internal software programmable weak pull-up.
RB3
bit3
TTL
Input/output pin. 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 Input/output pin (with interrupt-on-change). Internal software programmable
weak pull-up. Serial programming clock. This buffer is a Schmitt Trigger
input when used in Serial Programming mode.
RB7
bit7
TTL/ST Input/output pin (with interrupt-on-change). Internal software programmable
weak pull-up. Serial programming data. This buffer is a Schmitt Trigger
input when used in Serial Programming mode.
Legend: TTL = TTL input, ST = Schmitt Trigger input
TABLE 4-4: SUMMARY OF REGISTERS ASSOCIATED WITH PORTB
Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2
06h, 106h PORTB RB7 RB6 RB5 RB4 RB3 RB2
86h, 186h TRISB PORTB Data Direction Control Register
81h, 181h OPTION RBPU INTEDG T0CS T0SE PSA PS2
Legend: x = unknown, u = unchanged. Shaded cells are not used by PORTB.
Bit 1
RB1
PS1
Bit 0
RB0
PS0
Value on
Power-on
Reset
Value on all
other
RESETS
xxxx xxxx uuuu uuuu
1111 1111 1111 1111
1111 1111 1111 1111
DS39544A-page 32
Preliminary
2001 Microchip Technology Inc.