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