PIC16F688

Manufacturer Part NumberPIC16F688
ManufacturerMicrochip Technology Inc.
PIC16F688 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
Page 191
192
Page 192
193
Page 193
194
Page 194
195
Page 195
196
Page 196
197
Page 197
198
Page 198
199
Page 199
200
Page 200
201
202
Page 198/202

Download datasheet (4Mb)Embed
PrevNext
PIC16F688
IOCA (Interrupt-on-Change PORTA) .......................... 35
OPTION_REG (OPTION) ........................................... 14
OPTION_REG (Option) .............................................. 47
OSCCON (Oscillator Control) ..................................... 22
OSCTUNE (Oscillator Tuning) .................................... 26
PCON (Power Control Register) ................................. 18
PCON (Power Control) ............................................. 115
PIE1 (Peripheral Interrupt Enable 1) ........................... 16
PIR1 (Peripheral Interrupt Register 1) ........................ 17
PORTA........................................................................ 33
PORTC ....................................................................... 42
RCSTA (Receive Status and Control)......................... 93
Reset Values............................................................. 117
Reset Values (Special Registers) ............................. 118
Special Function Register Map ..................................... 8
Special Register Summary ........................................... 9
STATUS ...................................................................... 13
T1CON ........................................................................ 51
TRISA (Tri-State PORTA) ........................................... 33
TRISC (Tri-State PORTC) .......................................... 42
TXSTA (Transmit Status and Control) ........................ 92
VRCON (Voltage Reference Control) ......................... 63
WDTCON (Watchdog Timer Control)........................ 124
WPUA (Weak Pull-Up PORTA) .................................. 35
Reset................................................................................. 112
Revision History ................................................................ 191
S
Software Simulator (MPLAB SIM)..................................... 140
SPBRG................................................................................ 95
SPBRGH ............................................................................. 95
Special Function Registers ................................................... 7
STATUS Register................................................................ 13
T
T1CON Register.................................................................. 51
Thermal Considerations .................................................... 151
Time-out Sequence........................................................... 115
Timer0 ................................................................................. 45
Associated Registers .................................................. 47
External Clock ............................................................. 46
Interrupt....................................................................... 47
Operation .............................................................. 45, 48
Specifications ............................................................ 158
T0CKI .......................................................................... 46
Timer1 ................................................................................. 48
Associated registers.................................................... 52
Asynchronous Counter Mode ..................................... 49
Reading and Writing ........................................... 49
Interrupt....................................................................... 50
Modes of Operation .................................................... 48
Operation During Sleep .............................................. 50
Oscillator ..................................................................... 49
Prescaler ..................................................................... 49
Specifications ............................................................ 158
Timer1 Gate
Inverting Gate ..................................................... 49
Selecting Source........................................... 49, 62
Synchronizing COUT w/Timer1 .......................... 62
TMR1H Register ......................................................... 48
TMR1L Register .......................................................... 48
Timers
Timer1
T1CON................................................................ 51
Timing Diagrams
A/D Conversion ......................................................... 162
DS41203D-page 196
A/D Conversion (Sleep Mode) .................................. 162
Asynchronous Reception............................................ 90
Asynchronous Transmission....................................... 86
Asynchronous Transmission (Back to Back) .............. 86
Auto Wake-up Bit (WUE) During Normal Operation . 100
Auto Wake-up Bit (WUE) During Sleep .................... 101
Automatic Baud Rate Calculator................................. 99
Brown-out Reset (BOR)............................................ 156
Brown-out Reset Situations ...................................... 114
CLKOUT and I/O ...................................................... 155
Clock Timing ............................................................. 153
Comparator Output ..................................................... 53
Fail-Safe Clock Monitor (FSCM)................................. 32
INT Pin Interrupt ....................................................... 121
Internal Oscillator Switch Timing ................................ 28
Reset, WDT, OST and Power-up Timer ................... 156
Send Break Character Sequence ............................. 102
Synchronous Reception (Master Mode, SREN) ....... 106
Synchronous Transmission ...................................... 104
Synchronous Transmission (Through TXEN) ........... 104
Time-out Sequence .................................................. 116
Case 3 .............................................................. 116
Timer0 and Timer1 External Clock ........................... 158
Timer1 Incrementing Edge ......................................... 50
Two Speed Start-up.................................................... 30
Wake-up from Interrupt............................................. 126
Timing Parameter Symbology .......................................... 152
TRISA ................................................................................. 33
TRISA Register................................................................... 33
TRISC Register................................................................... 42
Two-Speed Clock Start-up Mode........................................ 29
TXREG ............................................................................... 85
TXSTA Register.................................................................. 92
BRGH Bit .................................................................... 95
U
Ultra Low-Power Wake-up........................................ 6, 34, 36
V
Voltage Reference. See Comparator Voltage
Reference (CV
)
REF
Voltage References
Associated registers ................................................... 64
V
. S
ADC Reference Voltage
REF
EE
W
Wake-up on Break ............................................................ 100
Wake-up Using Interrupts ................................................. 125
Watchdog Timer (WDT).................................................... 123
Associated Registers ................................................ 124
Clock Source ............................................................ 123
Modes ....................................................................... 123
Period ....................................................................... 123
Specifications ........................................................... 157
WDTCON Register ....................................................... 9, 124
WPUA Register................................................................... 35
WWW Address ................................................................. 197
WWW, On-Line Support ....................................................... 4
© 2007 Microchip Technology Inc.