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
212
213
214
215
216
217
218
219
220
221
Page 221
222
Page 222
223
Page 223
224
Page 224
225
Page 225
226
Page 226
227
Page 227
228
Page 228
Page 221/228

Download datasheet (5Mb)Embed
PrevNext
PIR2 Register ..................................................................... 14
CMIF Bit ..................................................................... 23
EEIF Bit ...................................................................... 23
OSFIF Bit ................................................................... 23
POP ................................................................................... 25
POR. See Power-on Reset.
PORTA ................................................................................. 8
Associated Register Summary ................................... 52
PORTA Register ................................................................ 14
PORTB ................................................................................. 9
Associated Register Summary ................................... 58
PORTB Register .................................................. 14, 16
Pull-up Enable (RBPU Bit) ......................................... 18
RB0/INT Edge Select (INTEDG Bit) ........................... 18
RB0/INT Pin, External .............................................. 140
RB2/SDO/RX/DT Pin ........................................... 98, 99
RB5/SS/TX/CK Pin .................................................... 98
RB7:RB4 Interrupt-on-Change ................................. 140
RB7:RB4 Interrupt-on-Change
Enable (RBIE Bit) ............................................. 140
RB7:RB4 Interrupt-on-Change
Flag (RBIF Bit) ........................................... 19, 140
TRISB Register .......................................................... 97
Postscaler, WDT
Assignment (PSA Bit) ................................................ 18
Rate Select (PS2:PS0 Bits) ....................................... 18
Power-Down Mode. See Sleep.
Power-Managed Modes ..................................................... 43
RC_RUN .................................................................... 43
SEC_RUN .................................................................. 44
SEC_RUN/RC_RUN to Primary Clock Source .......... 45
Power-on Reset (POR) ............................ 129, 132, 133, 135
POR Status (POR Bit) ................................................ 24
Power Control (PCON) Register .............................. 134
Power-Down (PD Bit) ............................................... 132
Time-out (TO Bit) ............................................... 17, 132
Power-up Timer (PWRT) ......................................... 129, 133
PR2 Register ................................................................ 15, 79
Prescaler, Timer0
Assignment (PSA Bit) ................................................ 18
Rate Select (PS2:PS0 Bits) ....................................... 18
PRO MATE II Universal Device Programmer .................. 159
Program Counter
Reset Conditions ...................................................... 135
Program Memory
Interrupt Vector .......................................................... 11
Map and Stack
PIC16F87/88 ...................................................... 11
Paging ........................................................................ 25
Reset Vector .............................................................. 11
Program Verification ........................................................ 147
PUSH ................................................................................. 25
R
R/W Bit ............................................................................... 93
RA0/AN0 Pin ........................................................................ 8
RA1/AN1 Pin ........................................................................ 8
RA2/AN2/CV
/V
- Pin .................................................. 8
REF
REF
RA3/AN3/V
+/C1OUT Pin ............................................... 8
REF
RA4/AN4/T0CKI/C2OUT Pin ............................................... 8
RA5/MCLR/V
Pin ............................................................. 8
PP
RA6/OSC2/CLKO Pin .......................................................... 8
RA7/OSC1/CLKI Pin ............................................................ 8
RB0/INT/CCP1 Pin .............................................................. 9
RB1/SDI/SDA Pin ................................................................ 9
RB2/SDO/RX/DT Pin ........................................................... 9
 2005 Microchip Technology Inc.
PIC16F87/88
RB3/PGM/CCP1 Pin ............................................................ 9
RB4/SCK/SCL Pin ............................................................... 9
RB5/SS/TX/CK Pin .............................................................. 9
RB6/AN5/PGC/T1OSO/T1CKI Pin ...................................... 9
RB7/AN6/PGD/T1OSI Pin ................................................... 9
RBIF Bit ............................................................................. 57
RCIO Oscillator .................................................................. 37
RCREG Register ............................................................... 14
RCSTA Register ................................................................ 14
ADDEN Bit ................................................................. 98
CREN Bit ................................................................... 98
FERR Bit .................................................................... 98
RX9 Bit ...................................................................... 98
RX9D Bit .................................................................... 98
SPEN Bit .............................................................. 97, 98
SREN Bit ................................................................... 98
Reader Response ............................................................ 224
Receive Overflow Indicator Bit, SSPOV ............................ 89
Register File Map
PIC16F87 .................................................................. 12
PIC16F88 .................................................................. 13
Registers
ADCON0 (A/D Control 0) ......................................... 114
ADCON1 (A/D Control 1) ......................................... 115
ANSEL (Analog Select) ........................................... 113
CCP1CON (Capture/Compare/PWM
Control 1) ........................................................... 81
CMCON (Comparator Control) ................................ 121
CONFIG1 (Configuration Word 1) ........................... 130
CONFIG2 (Configuration Word 2) ........................... 131
CVRCON (Comparator Voltage
Reference Control) .......................................... 127
EECON1 (Data EEPROM Access Control 1) ............ 28
FSR ........................................................................... 26
Initialization Conditions (table) ......................... 135–136
INTCON (Interrupt Control) ....................................... 19
OPTION_REG (Option Control) .......................... 18, 68
OSCCON (Oscillator Control) .................................... 40
OSCTUNE (Oscillator Tuning) ................................... 38
PCON (Power Control) .............................................. 24
PIE1 (Peripheral Interrupt Enable 1) ......................... 20
PIE2 (Peripheral Interrupt Enable 2) ......................... 22
PIR1 (Peripheral Interrupt Request (Flag) 1) ............. 21
PIR2 (Peripheral Interrupt Request (Flag) 2) ............. 23
RCSTA (Receive Status and Control) ....................... 98
Special Function, Summary ....................................... 14
SSPCON (Synchronous Serial Port Control) ............. 89
SSPSTAT (Synchronous Serial Port Status) ............. 88
STATUS (Arithmetic Status) ...................................... 17
T1CON (Timer1 Control) ........................................... 72
T2CON (Timer2 Control) ........................................... 80
TXSTA (Transmit Status and Control) ....................... 97
WDTCON (Watchdog Timer Control) ...................... 142
Reset ....................................................................... 129, 132
Brown-out Reset (BOR). See Brown-out Reset (BOR).
MCLR Reset. See MCLR.
Power-on Reset (POR). See Power-on Reset (POR).
Reset Conditions for All Registers ........................... 135
Reset Conditions for PCON Register ...................... 135
Reset Conditions for Program Counter ................... 135
Reset Conditions for STATUS Register .................. 135
WDT Reset. See Watchdog Timer (WDT).
Revision History ............................................................... 213
RP0 Bit .............................................................................. 11
RP1 Bit .............................................................................. 11
DS30487C-page 219