Datasheet

PIC16F610/616/16HV610/616
DS41288F-page 44 © 2009 Microchip Technology Inc.
4.3.5 RC4/C2OUT/P1B
(1)
The RC4 is configurable to function as one of the
following:
a general purpose I/O
a digital output from Comparator C2
a digital output from the Enhanced CCP
(1)
FIGURE 4-8: BLOCK DIAGRAM OF RC4
4.3.6 RC5/CCP1
(1)
/P1A
(1)
The RC5 is configurable to function as one of the
following:
a general purpose I/O
a digital input/output for the Enhanced CCP
(1)
FIGURE 4-9: BLOCK DIAGRAM OF RC5
PIN
TABLE 4-2: SUMMARY OF REGISTERS ASSOCIATED WITH PORTC
Note 1: PIC16F616/16HV616 only.
2: Enabling both C2OUT and P1B will cause
a conflict on RC4 and create unpredictable
results. Therefore, if C2OUT is enabled,
the ECCP can not be used in Half-Bridge
or Full-Bridge mode and vice-versa.
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
WR
PORTC
WR
TRISC
RD
TRISC
RD
PORTC
0
1
Note 1: Port/Peripheral Select signals selects between
PORT data and peripheral output.
C2OE
CCP1M<3:0>
C2OE
C2OUT
CCP1M<3:0>
CCPOUT/P1B
Note 1: PIC16F616/16HV616 only.
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data bus
WR
PORTC
WR
TRISC
RD
TRISC
To Enhanced CCP
RD
PORTC
0
1
CCP1OUT
(1)
/
CCP1OUT
(1)
Enable
P1A
Note 1: PIC16F616/16HV616 only.
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Value on
POR, BOR
Value on
all other
Resets
ANSEL ANS7ANS6ANS5ANS4
ANS3
(1)
ANS2
(1)
ANS1 ANS0 1111 1111 1111 1111
CCP1CON
(1)
P1M1 P1M0 DC1B1 DC1B0 CCP1M3 CCP1M2 CCP1M1 CCP1M0 0000 0000 0000 0000
CM1CON0 C1ON C1OUT
C1OE C1POL C1R C1CH1 C1CH0 0000 -000 0000 -000
CM2CON0 C2ON C2OUT
C2OE C2POL C2R C2CH1 C2CH0 0000 -000 0000 -000
PORTC
RC5 RC4 RC3 RC2 RC1 RC0 --xx 00xx --uu 00uu
TRISC
TRISC5 TRISC4 TRISC3 TRISC2 TRISC1 TRISC0 --11 1111 --11 1111
Legend: x = unknown, u = unchanged, – = unimplemented locations read as ‘0’. Shaded cells are not used by PORTC.
Note 1: PIC16F616/HV616 only.