English
Language : 

PIC16F707 Datasheet, PDF (60/284 Pages) Microchip Technology – 40/44-Pin, Flash Microcontrollers with nanoWatt XLP and mTouch™ Technology
PIC16F707/PIC16LF707
6.4.1 ANSELC REGISTER
The ANSELC register (Register 6-12) is used to
configure the Input mode of an I/O pin to analog.
Setting the appropriate ANSELC bit high will cause all
digital reads on the pin to be read as ‘0’ and allow
analog functions on the pin to operate correctly.
The state of the ANSELC bits has no affect on digital
output functions. A pin with TRIS clear and ANSELC
set will still operate as a digital output, but the Input
mode will be analog. This can cause unexpected
behavior when executing read-modify-write instruc-
tions on the affected port.
Note:
The ANSELC register must be initialized
to configure an analog channel as a digital
input. Pins configured as analog inputs will
read ‘0’.
REGISTER 6-12: ANSELC: PORTC ANALOG SELECT REGISTER
R/W-1
R/W-1
R/W-1
U-0
U-0
R/W-1
ANSC7
ANSC6
ANSC5
—
—
ANSC2
bit 7
R/W-1
ANSC1
R/W-1
ANSC0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-5
bit 4-3
bit 2-0
ANSC<7:5>: Analog Select between Analog or Digital Function on Pins RC<7:5>, respectively
0 = Digital I/O. Pin is assigned to port or digital special function.
1 = Analog input. Pin is assigned as analog input(1). Digital input buffer disabled.
Unimplemented: Read as ‘0’
ANSC<2:0>: Analog Select between Analog or Digital Function on Pins RC<2:0>, respectively
0 = Digital I/O. Pin is assigned to port or digital special function.
1 = Analog input. Pin is assigned as analog input(1). Digital input buffer disabled.
Note 1: When setting a pin to an analog input, the corresponding TRIS bit must be set to Input mode in order to
allow external control of the voltage on the pin.
6.4.2 PIN DESCRIPTIONS
Each PORTC 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.
6.4.2.1 RC0/T1OSO/T1CKI/CPSB2
These pins are configurable to function as one of the
following:
• General purpose I/O
• Timer1 oscillator output
• Timer1 clock input
• Capacitive sensing input
6.4.2.2 RC1/T1OSi/CCP2/CPSB3
These pins are configurable to function as one of the
following:
• General purpose I/O
• Timer1 oscillator input
• Capture 2 input, Compare 2 output, and PWM2
output
• Capacitive sensing input
Note: CCP2 pin location may be selected as
RB3 or RC1.
DS41418A-page 60
Preliminary
 2010 Microchip Technology Inc.