PIC16F88

Manufacturer Part NumberPIC16F88
ManufacturerMicrochip Technology Inc.
PIC16F88 datasheet
 
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
42
43
44
45
46
47
48
49
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
Page 211
212
Page 212
213
Page 213
214
Page 214
215
Page 215
216
Page 216
217
Page 217
218
Page 218
219
Page 219
220
Page 220
221
222
223
224
225
226
227
228
Page 218/228

Download datasheet (5Mb)Embed
PrevNext
PIC16F87/88
RB6/AN5/PGC/T1OSO/T1CKI Pin ............................. 65
RB7/AN6/PGD/T1OSI Pin .......................................... 66
Simplified PWM .......................................................... 84
2
SSP in I
C Mode ........................................................ 92
SSP in SPI Mode ....................................................... 90
System Clock ............................................................. 41
Timer0/WDT Prescaler .............................................. 67
Timer1 ........................................................................ 73
Timer2 ........................................................................ 79
Watchdog Timer (WDT) ........................................... 141
BOR. See Brown-out Reset.
BRGH Bit ............................................................................ 99
Brown-out Reset (BOR) ........................... 129, 132, 133, 135
BOR Status (BOR Bit) ................................................ 24
C
C Compilers
MPLAB C17 ............................................................. 158
MPLAB C18 ............................................................. 158
MPLAB C30 ............................................................. 158
Capture/Compare/PWM (CCP) .......................................... 81
Capture Mode ............................................................ 82
CCP Pin Configuration ....................................... 82
Software Interrupt .............................................. 82
Timer1 Mode Selection ...................................... 82
Capture, Compare and Timer1
Associated Registers ......................................... 83
CCP Prescaler ........................................................... 82
CCP Timer Resources ............................................... 81
CCP1IF ...................................................................... 82
CCPR1 ....................................................................... 82
CCPR1H:CCPR1L ..................................................... 82
Compare Mode .......................................................... 83
CCP Pin Configuration ....................................... 83
Software Interrupt Mode .................................... 83
Special Event Trigger ......................................... 83
Special Event Trigger Output of CCP1 .............. 83
Timer1 Mode Selection ...................................... 83
PWM and Timer2 Associated Registers .................... 85
PWM Mode ................................................................ 84
Example Frequencies/Resolutions .................... 85
Operation Setup ................................................. 85
CCP1CON Register ........................................................... 14
CCP1M0 Bit ....................................................................... 81
CCP1M1 Bit ....................................................................... 81
CCP1M2 Bit ....................................................................... 81
CCP1M3 Bit ....................................................................... 81
CCP1X Bit .......................................................................... 81
CCP1Y Bit .......................................................................... 81
CCPR1H Register ........................................................ 14, 81
CCPR1L Register ......................................................... 14, 81
Clock Sources .................................................................... 39
Selection Using OSCCON Register ........................... 39
Clock Switching .................................................................. 39
Transition and the Watchdog Timer ........................... 40
Transition Sequence .................................................. 41
CMCON Register ............................................................... 15
Code Examples
Call of a Subroutine in Page 1 from Page 0 ............... 25
Changing Between Capture Prescalers ..................... 82
Changing Prescaler Assignment from
WDT to Timer0 ................................................... 69
Erasing a Flash Program Memory Row ..................... 31
Implementing a Real-Time Clock Using
a Timer1 Interrupt Service ................................. 77
Indirect Addressing .................................................... 26
DS30487C-page 216
Initializing PORTA ...................................................... 51
Reading a 16-Bit Free Running Timer ....................... 74
Reading Data EEPROM ............................................ 29
Reading Flash Program Memory ............................... 30
Saving STATUS, W and PCLATH Registers
in RAM ............................................................. 140
Writing a 16-Bit Free Running Timer ......................... 74
Writing to Data EEPROM .......................................... 29
Writing to Flash Program Memory ............................. 33
Code Protection ....................................................... 129, 147
Comparator Module ......................................................... 121
Analog Input Connection Considerations ................ 125
Associated Registers ............................................... 126
Configuration ........................................................... 122
Effects of a Reset .................................................... 125
External Reference Signal ....................................... 123
Internal Reference Signal ........................................ 123
Interrupts ................................................................. 124
Operation ................................................................. 123
Operation During Sleep ........................................... 125
Outputs .................................................................... 123
Reference ................................................................ 123
Response Time ........................................................ 123
Comparator Specifications ............................................... 177
Comparator Voltage Reference ....................................... 127
Associated Registers ............................................... 128
Computed GOTO ............................................................... 25
Configuration Bits ............................................................ 129
Crystal and Ceramic Resonators ....................................... 35
Customer Change Notification Service ............................ 223
Customer Notification Service ......................................... 223
Customer Support ............................................................ 223
CVRCON Register ............................................................. 15
D
Data EEPROM Memory ..................................................... 27
Associated Registers ................................................. 34
EEADR Register ........................................................ 27
EEADRH Register ..................................................... 27
EECON1 Register ...................................................... 27
EECON2 Register ...................................................... 27
EEDATA Register ...................................................... 27
EEDATH Register ...................................................... 27
Operation During Code-Protect ................................. 34
Protection Against Spurious Writes ........................... 34
Reading ..................................................................... 29
Write Complete Flag (EEIF Bit) ................................. 27
Writing ....................................................................... 29
Data Memory
Special Function Registers ........................................ 14
DC and AC Characteristics
Graphs and Tables .................................................. 193
DC Characteristics
Internal RC Accuracy ............................................... 174
PIC16F87/88, PIC16LF87/88 .................................. 175
Power-Down and Supply Current ............................ 166
Supply Voltage ........................................................ 165
Demonstration Boards
PICDEM 1 ................................................................ 160
PICDEM 17 .............................................................. 161
PICDEM 18R ........................................................... 161
PICDEM 2 Plus ........................................................ 160
PICDEM 3 ................................................................ 160
PICDEM 4 ................................................................ 160
PICDEM LIN ............................................................ 161
PICDEM USB .......................................................... 161
PICDEM.net Internet/Ethernet ................................. 160
 2005 Microchip Technology Inc.