Datasheet

2003 Microchip Technology Inc. Preliminary DS41206A-page 25
PIC16F716
FIGURE 3-10: BLOCK DIAGRAM OF RB7/P1D PIN
TABLE 3-3: PORTB FUNCTIONS
Name Bit# Buffer Function
RB0/INT/
ECCPAS2
bit 0 TTL/ST
(1)
Input/output pin or external interrupt input. Internal software
programmable weak pull-up. ECCP auto-shutdown input.
RB1/T1OS0/
T1CKI
bit 1 TTL/ST
(1)
Input/output pin or Timer1 oscillator output, or Timer1 clock input. Internal
software programmable weak pull-up. See Section 5.0 “Timer1 Module”
for detailed operation.
RB2/T1OSI bit 2 TTL/XTAL Input/output pin or Timer1 oscillator input. Internal software programmable
weak pull-up. See Section 5.0 “Timer1 Module” for detailed operation.
RB3/CCP1/
P1A
bit 3 TTL/ST
(1)
Input/output pin or Capture1 input, or Compare1 output, or PWM A output.
Internal software programmable weak pull-up. See CCP1 section for
detailed operation.
RB4/
ECCPAS0
bit 4 TTL Input/output pin (with interrupt-on-change). Internal software programmable
weak pull-up. ECCP auto-shutdown input.
RB5/P1B bit 5 TTL Input/output pin (with interrupt-on-change). Internal software programmable
weak pull-up. PWM B output.
RB6/P1C bit 6 TTL/ST
(2)
Input/output pin (with interrupt-on-change). Internal software programmable
weak pull-up. PWM C output. Serial programming clock.
RB7/P1D bit 7 TTL/ST
(2)
Input/output pin (with interrupt-on-change). Internal software programmable
weak pull-up. PWM D output. Serial programming data.
Legend: TTL = TTL input, ST = Schmitt Trigger input, XTAL = Crystal Oscillator input
Note 1: This buffer is a Schmitt Trigger input when configured as the external interrupt or peripheral input.
2: This buffer is a Schmitt Trigger input when used in Serial Programming mode.
Data Latch
From other
RBPU
(1)
P
V
DD
QD
CK
QD
CK
QD
EN
QD
EN
DATA BUS
WR PORTB
WR TRISB
Set RBIF
TRIS Latch
RD TRISB
RD PORTB
RB7:RB4 pins
weak
pull-up
RD PORTB
Latch
TTL
Buffer
Q3
Q1
Note 1: To enable weak pull-ups,
set the appropriate TRIS
bit(s) and clear the RBPU
bit (OPTION_REG<7>).
VSS
VDD
RB7/P1D
0
1
Q
PWMD(P1D) Enable
PWMD(P1D) Data out
PWMD(P1D) Auto-shutdown tri-state
ST
Buffer
ICSPD - In circuit serial programming data input