Datasheet
PIC16F7X7
DS30498D-page 64 2003-2013 Microchip Technology Inc.
TABLE 5-3: PORTB FUNCTIONS
TABLE 5-4: SUMMARY OF REGISTERS ASSOCIATED WITH PORTB
Name 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 TTL Input/output pin. Internal software programmable weak pull-up or
analog input.
RB2/AN8 bit 2 TTL Input/output pin. Internal software programmable weak pull-up or
analog input.
RB3/CCP2/AN9 bit 3 TTL Input/output pin or Capture 2 input/Compare 2 output/PWM 2 output.
Internal software programmable weak pull-up or analog input.
RB4/AN11 bit 4 TTL Input/output pin (with interrupt-on-change). Internal software
programmable weak pull-up or analog input.
RB5/AN13/CCP3 bit 5 TTL 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 bit 6 TTL/ST
(2)
Input/output pin (with interrupt-on-change). Internal software
programmable weak pull-up. Serial programming clock.
RB7/PGD bit 7 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.
Address 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
06h, 106h PORTB RB7 RB6 RB5 RB4 RB3 RB2 RB1 RB0 xx00 0000 uu00 0000
86h, 186h TRISB PORTB Data Direction Register 1111 1111 1111 1111
81h, 181h OPTION_REG RBPU
INTEDG T0CS T0SE PSA PS2 PS1 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.