English
Language : 

PIC16F684T-E Datasheet, PDF (44/192 Pages) Microchip Technology – 14-Pin, Flash-Based 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC16F684
4.3.5 RC4/C2OUT/P1B
The RC4 is configurable to function as one of the
following:
• a general purpose I/O
• a digital output from the comparator
• a digital output from the Enhanced CCP
Note:
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.
FIGURE 4-9:
BLOCK DIAGRAM OF RC4
C2OUT EN
CCPOUT EN
C2OUT EN
C2OUT
CCPOUT EN
CCPOUT
Data Bus
DQ
WR
PORTC
CK Q
VDD
1
0
I/O Pin
VSS
WR
TRISC
DQ
CK Q
RD
TRISC
RD
PORTC
Note 1: Port/Peripheral Select signals selects between
port data and peripheral output.
4.3.6 RC5/CCP1/P1A
The RC5 is configurable to function as one of the
following:
• a general purpose I/O
• a digital input/output for the Enhanced CCP
FIGURE 4-10:
Data bus
BLOCK DIAGRAM OF RC5
PIN
DQ
WR
PORTC
CK Q
WR
TRISC
DQ
CK Q
CCP1OUT
Enable
CCP1OUT 1
0
VDD
I/O Pin
VSS
RD
TRISC
RD
PORTC
To Enhanced CCP
TABLE 4-2: SUMMARY OF REGISTERS ASSOCIATED WITH PORTC
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
ANS7 ANS6 ANS5 ANS4 ANS3 ANS2
ANS1
ANS0 1111 1111 1111 1111
CMCON0 C2OUT C1OUT C2INV C1INV
CIS
CM2
CM1
CM0 0000 0000 0000 0000
PORTC
—
—
RC5
RC4
RC3
RC2
RC1
RC0 --xx 0000 --uu uu00
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.
DS41202F-page 42
© 2007 Microchip Technology Inc.