PIC16F62X
TABLE 5-3:
PORTB FUNCTIONS
Buffer
Bit #
Name
Function
Type
TTL/ST(1)
bit0
RB0/INT
Bi-directional I/O port/external interrupt. Can be software programmed for
internal weak pull-up.
TTL/ST(3)
bit1
RB1/RX/DT
RB2/TX/CK
RB3/CCP1
RB4/PGM
Bi-directional I/O port/ USART receive pin/synchronous data I/O. Can be
software programmed for internal weak pull-up.
TTL/ST(3)
bit2
Bi-directional I/O port/ USART transmit pin/synchronous clock I/O. Can be
software programmed for internal weak pull-up.
TTL/ST(4)
bit3
Bi-directional I/O port/Capture/Compare/PWM I/O. Can be software pro-
grammed for internal weak pull-up.
TTL/ST(5)
bit4
Bi-directional I/O port/Low voltage programming input pin. Wake-up from
SLEEP on pin change. Can be software programmed for internal weak
pull-up. When low voltage programming is enabled, the interrupt on pin
change and weak pull-up resistor are disabled.
RB5
bit5
bit6
TTL
Bi-directional I/O port/Wake-up from SLEEP on pin change. Can be soft-
ware programmed for internal weak pull-up.
TTL/ST(2)
RB6/T1OSO/T1CKI
Bi-directional I/O port/Timer1 oscillator output/Timer1 clock input. Wake up
from SLEEP on pin change. Can be software programmed for internal weak
pull-up.
TTL/ST(2)
RB7/T1OSI
bit7
Bi-directional I/O port/Timer1 oscillator input. Wake up from SLEEP on pin
change. Can be software programmed for internal weak pull-up.
Legend: ST = Schmitt Trigger, TTL = TTL input
Note 1: This buffer is a Schmitt Trigger input when configured as the external interrupt.
Note 2: This buffer is a Schmitt Trigger input when used in serial programming mode.
Note 3: This buffer is a Schmitt Trigger I/O when used in USART/synchronous mode.
Note 4: This buffer is a Schmitt Trigger I/O when used in CCP mode.
Note 5: This buffer is a Schmitt Trigger input when used in low voltage program mode.
TABLE 5-4:
SUMMARY OF REGISTERS ASSOCIATED WITH PORT
Value on
All Other
Resets
Value on
POR
Address Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
06h
86h
81h
PORTB
TRISB
RB7
RB6
RB5
RB4
RB3
RB2
RB1
RB0
xxxx xxxx uuuu uuuu
TRISB7 TRISB6 TRISB5 TRISB4 TRISB3 TRISB2 TRISB1 TRISB0 1111 1111 1111 1111
OPTION
RBPU INTEDG
T0CS
T0SE
PSA
PS2
PS1
PS0
1111 1111 1111 1111
Legend: u = unchanged, x = unknown
Note: Shaded bits are not used by PORTB.
1999 Microchip Technology Inc.
Preliminary
DS40300B-page 43