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

Download datasheet (5Mb)Embed
PrevNext
Development Support ...................................................... 157
Device Differences ........................................................... 213
Device Overview .................................................................. 5
Direct Addressing ............................................................... 26
E
EEADR Register .......................................................... 16, 27
EEADRH Register ........................................................ 16, 27
EECON1 Register ........................................................ 16, 27
EECON2 Register ........................................................ 16, 27
EEDATA Register ........................................................ 16, 27
EEDATH Register ........................................................ 16, 27
Electrical Characteristics .................................................. 163
Errata ................................................................................... 4
Evaluation and Programming Tools ................................. 161
Exiting Sleep with an Interrupt ........................................... 50
External Clock Input ........................................................... 36
External Clock Input (RA4/T0CKI). See Timer0.
External Interrupt Input (RB0/INT). See Interrupt Sources.
F
Fail-Safe Clock Monitor ............................................ 129, 144
Flash Program Memory ..................................................... 27
Associated Registers ................................................. 34
EEADR Register ........................................................ 27
EEADRH Register ...................................................... 27
EECON1 Register ...................................................... 27
EECON2 Register ...................................................... 27
EEDATA Register ...................................................... 27
EEDATH Register ...................................................... 27
Erasing ....................................................................... 30
Reading ...................................................................... 30
Writing ........................................................................ 32
FSR Register ......................................................... 14, 15, 26
G
General Purpose Register File ........................................... 12
I
I/O Ports ............................................................................. 51
PORTA ....................................................................... 51
PORTB ....................................................................... 57
TRISB Register .......................................................... 57
2
I
C
Addressing ................................................................. 93
Associated Registers ................................................. 95
Master Mode .............................................................. 95
Mode .......................................................................... 92
Mode Selection .......................................................... 92
Multi-Master Mode ..................................................... 95
Reception ................................................................... 93
SCL and SDA Pins ..................................................... 93
Slave Mode ................................................................ 93
Transmission .............................................................. 93
ID Locations ............................................................. 129, 147
In-Circuit Debugger .......................................................... 147
In-Circuit Serial Programming .......................................... 129
In-Circuit Serial Programming (ICSP) .............................. 147
INDF Register ........................................................ 14, 15, 26
Indirect Addressing ............................................................ 26
 2005 Microchip Technology Inc.
PIC16F87/88
Instruction Set .................................................................. 149
ADDLW .................................................................... 151
ADDWF ................................................................... 151
ANDLW .................................................................... 151
ANDWF ................................................................... 151
BCF ......................................................................... 151
BSF .......................................................................... 151
BTFSC ..................................................................... 152
BTFSS ..................................................................... 152
CALL ........................................................................ 152
CLRF ....................................................................... 152
CLRW ...................................................................... 152
CLRWDT ................................................................. 152
COMF ...................................................................... 153
DECF ....................................................................... 153
DECFSZ .................................................................. 153
Descriptions ............................................................. 151
General Format ....................................................... 149
GOTO ...................................................................... 153
INCF ........................................................................ 153
INCFSZ .................................................................... 153
IORLW ..................................................................... 154
IORWF ..................................................................... 154
MOVF ...................................................................... 154
MOVLW ................................................................... 154
MOVWF ................................................................... 154
NOP ......................................................................... 154
Read-Modify-Write Operations ................................ 149
RETFIE .................................................................... 155
RETLW .................................................................... 155
RETURN .................................................................. 155
RLF .......................................................................... 155
RRF ......................................................................... 155
SLEEP ..................................................................... 155
SUBLW .................................................................... 156
SUBWF .................................................................... 156
Summary Table ....................................................... 150
SWAPF .................................................................... 156
XORLW ................................................................... 156
XORWF ................................................................... 156
INT Interrupt (RB0/INT). See Interrupt Sources.
INTCON Register
GIE Bit ....................................................................... 19
INT0IE Bit .................................................................. 19
INT0IF Bit .................................................................. 19
PEIE Bit ..................................................................... 19
RBIE Bit ..................................................................... 19
RBIF Bit ..................................................................... 19
TMR0IE Bit ................................................................ 19
Internal Oscillator Block ..................................................... 37
INTRC Modes ............................................................ 38
Internet Address .............................................................. 223
Interrupt Sources ..................................................... 129, 138
AUSART Receive/Transmit Complete ....................... 97
RB0/INT Pin, External ............................................. 140
TMR0 Overflow ........................................................ 140
Interrupts
RB7:RB4 Port Change .............................................. 57
Interrupts, Context Saving During .................................... 140
DS30487C-page 217