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 220/228

Download datasheet (5Mb)Embed
PrevNext
PIC16F87/88
Interrupts, Enable Bits
A/D Converter Interrupt Enable (ADIE Bit) ................. 20
AUSART Receive Interrupt Enable (RCIE Bit) ........... 20
AUSART Transmit Interrupt Enable (TXIE Bit) .......... 20
CCP1 Interrupt Enable (CCP1IE Bit) ......................... 20
Comparator Interrupt Enable (CMIE Bit) .................... 22
EEPROM Write Operation Interrupt
Enable (EEIE Bit) ............................................... 22
Global Interrupt Enable (GIE Bit) ....................... 19, 138
Interrupt-on-Change (RB7:RB4)
Enable (RBIE Bit) ............................................. 140
Oscillator Fail Interrupt Enable (OSFIE Bit) ............... 22
Peripheral Interrupt Enable (PEIE Bit) ....................... 19
Port Change Interrupt Enable (RBIE Bit) ................... 19
RB0/INT Enable (INT0IE Bit) ..................................... 19
Synchronous Serial Port (SSP)
Interrupt Enable (SSPIE Bit) .............................. 20
TMR0 Overflow Enable (TMR0IE Bit) ........................ 19
TMR1 Overflow Interrupt Enable
(TMR1IE Bit) ...................................................... 20
TMR2 to PR2 Match Interrupt Enable
(TMR2IE Bit) ...................................................... 20
Interrupts, Flag Bits
A/D Converter Interrupt Flag (ADIF Bit) ..................... 21
AUSART Receive Interrupt Flag (RCIF Bit) ............... 21
AUSART Transmit Interrupt Flag (TXIF Bit) ............... 21
CCP1 Interrupt Flag (CCP1IF Bit) .............................. 21
Comparator Interrupt Flag (CMIF Bit) ........................ 23
EEPROM Write Operation Interrupt
Flag (EEIF Bit) ................................................... 23
Interrupt-on-Change (RB7:RB4)
Flag (RBIF Bit) ........................................... 19, 140
Oscillator Fail Interrupt Flag (OSFIF Bit) .................... 23
RB0/INT Flag (INT0IF Bit) .......................................... 19
Synchronous Serial Port (SSP) Interrupt
Flag (SSPIF Bit) ................................................. 21
TMR0 Overflow Flag (TMR0IF Bit) .......................... 140
TMR1 Overflow Interrupt Flag (TMR1IF Bit) .............. 21
TMR2 to PR2 Interrupt Flag (TMR2IF Bit) ................. 21
INTRC Modes
Adjustment ................................................................. 38
L
Loading of PC .................................................................... 25
Low-Voltage ICSP Programming ..................................... 148
M
Master Clear (MCLR)
MCLR Reset, Normal Operation ...................... 132, 135
MCLR Reset, Sleep ......................................... 132, 135
Operation and ESD Protection ................................. 133
Memory Organization ......................................................... 11
Data Memory ............................................................. 11
Program Memory ....................................................... 11
Microchip Internet Web Site ............................................. 223
MPLAB ASM30 Assembler, Linker, Librarian .................. 158
MPLAB ICD 2 In-Circuit Debugger ................................... 159
MPLAB ICE 2000 High-Performance
Universal In-Circuit Emulator ................................... 159
MPLAB ICE 4000 High-Performance
Universal In-Circuit Emulator ................................... 159
MPLAB Integrated Development
Environment Software .............................................. 157
MPLAB PM3 Device Programmer .................................... 159
MPLINK Object Linker/MPLIB Object Librarian ............... 158
DS30487C-page 218
O
Opcode Field Descriptions ............................................... 149
OPTION_REG Register
INTEDG Bit ................................................................ 18
PS2:PS0 Bits ............................................................. 18
PSA Bit ...................................................................... 18
RBPU Bit ................................................................... 18
T0CS Bit .................................................................... 18
T0SE Bit .................................................................... 18
OSCCON Register ............................................................. 15
Oscillator Configuration ..................................................... 35
ECIO .......................................................................... 35
EXTRC .................................................................... 134
HS ...................................................................... 35, 134
INTIO1 ....................................................................... 35
INTIO2 ....................................................................... 35
INTRC ...................................................................... 134
LP ...................................................................... 35, 134
RC ....................................................................... 35, 37
RCIO .......................................................................... 35
XT ...................................................................... 35, 134
Oscillator Control Register
Modifying IRCF Bits ................................................... 41
Oscillator Delay upon Power-up, Wake-up
and Clock Switching .................................................. 42
Oscillator Start-up Timer (OST) ............................... 129, 133
Oscillator Switching ........................................................... 39
OSCTUNE Register ........................................................... 15
P
Packaging Information ..................................................... 207
Marking .................................................................... 207
Paging, Program Memory .................................................. 25
PCL Register ......................................................... 14, 15, 25
PCLATH Register .................................................. 14, 15, 25
PCON Register .......................................................... 15, 134
BOR Bit ...................................................................... 24
POR Bit ...................................................................... 24
PICkit 1 Flash Starter Kit ................................................. 161
PICSTART Plus Development Programmer .................... 160
PIE1 Register ..................................................................... 15
ADIE Bit ..................................................................... 20
CCP1IE Bit ................................................................ 20
RCIE Bit ..................................................................... 20
SSPIE Bit ................................................................... 20
TMR1IE Bit ................................................................ 20
TMR2IE Bit ................................................................ 20
TXIE Bit ..................................................................... 20
PIE2 Register ..................................................................... 15
CMIE Bit .................................................................... 22
EEIE Bit ..................................................................... 22
OSFIE Bit ................................................................... 22
Pinout Descriptions
PIC16F87/88 ............................................................... 8
PIR1 Register .................................................................... 14
ADIF Bit ..................................................................... 21
CCP1IF Bit ................................................................. 21
RCIF Bit ..................................................................... 21
SSPIF Bit ................................................................... 21
TMR1IF Bit ................................................................. 21
TMR2IF Bit ................................................................. 21
TXIF Bit ...................................................................... 21
 2005 Microchip Technology Inc.