PIC16F684-ISL

Manufacturer Part NumberPIC16F684-ISL
ManufacturerMicrochip Technology Inc.
PIC16F684-ISL datasheets
 

Specifications of PIC16F684-ISL

CaseN/ANotesNEW
Date_code11+  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Page 41
42
Page 42
43
Page 43
44
Page 44
45
Page 45
46
Page 46
47
Page 47
48
Page 48
49
Page 49
50
Page 50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
Page 42/164

Download datasheet (3Mb)Embed
PrevNext
PIC16F684
4.3
PORTC
PORTC is a general purpose I/O port consisting of 6
bidirectional pins. The pins can be configured for either
digital I/O or analog input to A/D converter or compara-
tor. For specific information about individual functions
such as the Enhanced CCP or the A/D, refer to the
appropriate section in this data sheet.
Note:
The ANSEL (91h) and CMCON0 (19h)
registers must be initialized to configure
an analog channel as a digital input. Pins
configured as analog inputs will read ‘0’.
EXAMPLE 4-3:
INITIALIZING PORTC
BCF
STATUS,RP0
;Bank 0
CLRF
PORTC
;Init PORTC
MOVLW
07h
;Set RC<4,1:0> to
MOVWF
CMCON0
;digital I/O
BSF
STATUS,RP0
;Bank 1
CLRF
ANSEL
;digital I/O
MOVLW
0Ch
;Set RC<3:2> as inputs
MOVWF
TRISC
;and set RC<5:4,1:0>
;as outputs
BCF
STATUS,RP0
;Bank 0
4.3.1
RC0/AN4/C2IN+
The RC0 is configurable to function as one of the
following:
• a general purpose I/O
• an analog input for the A/D Converter
• an analog input to the comparator
4.3.2
RC1/AN5/C2IN-
The RC1 is configurable to function as one of the
following:
• a general purpose I/O
• an analog input for the A/D Converter
• an analog input to the comparator
DS41202C-page 40
FIGURE 4-7:
BLOCK DIAGRAM OF RC0
AND RC1
Data Bus
D
Q
WR
CK
Q
PORTC
D
Q
WR
CK
Q
TRISC
RD
TRISC
RD
PORTC
To Comparators
To A/D Converter
Note 1:
Analog Input mode comes from ANSEL or
Comparator mode.
Preliminary
 2004 Microchip Technology Inc.
V
DD
I/O PIN
V
SS
Analog Input
(1)
Mode