PIC16F7X7
TABLE 5-3:
Name
PORTB FUNCTIONS
Bit#
Buffer
Function
RB0/INT/AN12
bit 0
TTL/ST(1) Input/output pin or external interrupt input. Internal software
programmable weak pull-up or analog input.
RB1/AN10
bit 1
bit 2
bit 3
bit 4
bit 5
TTL
TTL
TTL
TTL
TTL
Input/output pin. Internal software programmable weak pull-up or
analog input.
RB2/AN8
Input/output pin. Internal software programmable weak pull-up or
analog input.
RB3/CCP2/AN9
RB4/AN11
Input/output pin or Capture 2 input/Compare 2 output/PWM 2 output.
Internal software programmable weak pull-up or analog input.
Input/output pin (with interrupt-on-change). Internal software
programmable weak pull-up or analog input.
RB5/AN13/CCP3
Input/output pin (with interrupt-on-change). Internal software
programmable weak pull-up or analog input or Capture 2 input/
Compare 2 output/PWM 2 output.
RB6/PGC
RB7/PGD
bit 6
bit 7
TTL/ST(2) Input/output pin (with interrupt-on-change). Internal software
programmable weak pull-up. Serial programming clock.
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 buffer is a Schmitt Trigger input when configured as the external interrupt.
2: This buffer is a Schmitt Trigger input when used in Serial Programming mode.
TABLE 5-4:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTB
Value on
all other
Resets
Value on:
POR, BOR
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
RB4
Bit 3
RB3
PSA
Bit 2
RB2
PS2
Bit 1
RB1
PS1
Bit 0
06h, 106h PORTB
86h, 186h TRISB
RB7
RB6
RB5
RB0 xx00 0000 uu00 0000
1111 1111 1111 1111
PORTB Data Direction Register
T0CS
81h, 181h OPTION_REG RBPU INTEDG
T0SE
PS0 1111 1111 1111 1111
9Fh
ADCON1
ADFM ADCS2 VCFG1 VCFG0 PCFG3 PCFG2 PCFG1 PCFG0 0000 0000 0000 0000
Legend:
x= unknown, u= unchanged. Shaded cells are not used by PORTB.
DS30498C-page 64
2004 Microchip Technology Inc.