PIC16C745/765
TABLE 5-3:
PORTB FUNCTIONS
Input
Type
Output
Type
Name
Function
Description
RB0
INT
TTL
ST
CMOS Bi-directional I/O
RB0/INT
—
Interrupt
RB1
RB2
RB3
RB4
RB5
RB1
RB2
RB3
RB4
RB5
RB6
ICSPC
RB7
TTL
TTL
TTL
TTL
TTL
TTL
ST
CMOS Bi-directional I/O
CMOS Bi-directional I/O
CMOS Bi-directional I/O
CMOS Bi-directional I/O with Interrupt on Change
CMOS Bi-directional I/O with Interrupt on Change
CMOS Bi-directional I/O with Interrupt on Change
In-Circuit Serial Programming Clock input
RB6/ICSPC
TTL
ST
CMOS Bi-directional I/O with Interrupt on Change
CMOS In-Circuit Serial Programming Data I/O
RB7/ICSPD
Legend:
ICSPD
OD = open drain, ST = Schmitt Trigger
TABLE 5-4:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTB
Value on:
POR,
BOR
Value on all
other resets
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
uuuu uuuu
1111 1111
1111 1111
06h, 106h
86h, 186h
81h, 181h
PORTB
TRISB
OPTION_REG RBPU INTEDG T0CS T0SE PSA PS2
RB7
RB6
RB5
RB4
RB3 RB2 RB1 RB0
xxxx xxxx
1111 1111
1111 1111
PORTB Data Direction Register
PS1
PS0
Legend: x= unknown, u= unchanged. Shaded cells are not used by PORTB.
DS41124A-page 34
Advanced Information
1999 Microchip Technology Inc.