English
Language : 

PIC16F631_08 Datasheet, PDF (73/306 Pages) Microchip Technology – 20-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC16F631/677/685/687/689/690
4.4.3
PIN DESCRIPTIONS AND
DIAGRAMS
Each PORTB pin is multiplexed with other functions. The
pins and their combined functions are briefly described
here. For specific information about individual functions
such as the SSP, I2C™ or interrupts, refer to the
appropriate section in this data sheet.
4.4.3.1 RB4/AN10/SDI/SDA
Figure 4-7 shows the diagram for this pin. The
RB4/AN10/SDI/SDA(1) pin is configurable to function
as one of the following:
• a general purpose I/O
• an analog input for the ADC (except PIC16F631)
• a SPI data I/O
• an I2C data I/O
Note 1: SDI and SDA are available on
PIC16F677/PIC16F687/PIC16F689/PIC
16F690 only.
FIGURE 4-7:
Data Bus
DQ
WR
WPUB
CK Q
RD
WPUB
BLOCK DIAGRAM OF RB4
Analog(1)
Input Mode
VDD
Weak
RABPU
DQ
WR
PORTB
CK Q
WR
TRISB
DQ
CK Q
RD
TRISB
SSPEN
SSPSR
01
10
From 01
SSP
10
Analog(1)
Input Mode
VDD
I/O Pin
VSS
RD
PORTB
DQ
WR
IOCB
CK Q
RD
IOCB
QD
EN
QD
EN
Interrupt-on-
Change
RD PORTB
To SSPSR
To A/D Converter(2)
Q3
ST
Available on PIC16F677/PIC16F687/PIC16F689/PIC16F690
only.
Note 1: ANSEL determines Analog Input mode.
2: Not implemented on PIC16F631.
© 2008 Microchip Technology Inc.
DS41262E-page 71