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
Page 51
52
Page 52
53
Page 53
54
Page 54
55
Page 55
56
Page 56
57
Page 57
58
Page 58
59
Page 59
60
Page 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
222
223
224
225
226
227
228
Page 60/228

Download datasheet (5Mb)Embed
PrevNext
PIC16F87/88
TABLE 5-3:
PORTB FUNCTIONS
Name
Bit#
Buffer
(7)
RB0/INT/CCP1
bit 0
TTL/ST
RB1/SDI/SDA
bit 1
TTL/ST
RB2/SDO/RX/DT
bit 2
TTL/ST
(3,7)
RB3/PGM/CCP1
bit 3
TTL/ST
RB4/SCK/SCL
bit 4
TTL/ST
RB5/SS/TX/CK
bit 5
TTL
(6)
RB6/AN5
/PGC/
bit 6
TTL/ST
T1OSO/T1CKI
(6)
RB7/AN6
/PGD/
bit 7
TTL/ST
T1OSI
Legend: TTL = TTL input, ST = Schmitt Trigger input
Note 1:
This buffer is a Schmitt Trigger input when configured as the external interrupt.
2:
This buffer is a Schmitt Trigger input when used in Serial Programming mode.
3:
Low-Voltage ICSP™ Programming (LVP) is enabled by default, which disables the RB3 I/O function. LVP
must be disabled to enable RB3 as an I/O pin and allow maximum compatibility to the other 18-pin
mid-range devices.
4:
This buffer is a Schmitt Trigger input when configured for CCP or SSP mode.
5:
This buffer is a Schmitt Trigger input when configured for SPI or I
6:
PIC16F88 only.
7:
The CCP1 pin is determined by the CCPMX bit in Configuration Word 1 register.
TABLE 5-4:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTB
Address
Name
Bit 7
Bit 6
06h, 106h PORTB
RB7
RB6
86h, 186h TRISB
PORTB Data Direction Register
81h, 181h OPTION_REG RBPU
INTEDG
(2)
9Bh
ANSEL
ANS6
Legend:
x = unknown, u = unchanged, - = unimplemented, read as ‘0’. Shaded cells are not used by PORTB.
Note 1:
This value applies only to the PIC16F87.
2:
This value applies only to the PIC16F88.
DS30487C-page 58
Function
(1)
Input/output pin or external interrupt input.
Capture input/Compare output/PWM output pin.
Internal software programmable weak pull-up.
(5)
Input/output pin, SPI™ data input pin or I
Internal software programmable weak pull-up.
(4)
Input/output pin, SPI data output pin.
AUSART asynchronous receive or synchronous data.
Internal software programmable weak pull-up.
(2)
Input/output pin, programming in LVP mode or Capture input/Compare
output/PWM output pin. Internal software programmable weak pull-up.
(5)
2
Input/output pin or SPI and I
C clock pin (with interrupt-on-change).
Internal software programmable weak pull-up.
Input/output pin or SPI slave select pin (with interrupt-on-change).
AUSART asynchronous transmit or synchronous clock.
Internal software programmable weak pull-up.
(2)
(6)
Input/output pin, analog input
, serial programming clock
(with interrupt-on-change), Timer1 oscillator output pin or Timer1 clock
input pin. Internal software programmable weak pull-up.
(2)
(6)
Input/output pin, analog input
, serial programming data (with
interrupt-on-change) or Timer1 oscillator input pin.
Internal software programmable weak pull-up.
2
C mode.
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
RB5
RB4
RB3
RB2
RB1
T0CS
T0SE
PSA
PS2
PS1
ANS5
ANS4
ANS3 ANS2 ANS1 ANS0
2
C™ data I/O pin.
Value on
Value on
Bit 0
all other
POR, BOR
Resets
(1)
(1)
RB0
xxxx xxxx
uuuu uuuu
(2)
(2)
00xx xxxx
00uu uuuu
1111 1111
1111 1111
PS0
1111 1111
1111 1111
-111 1111
-111 1111
 2005 Microchip Technology Inc.