The download file for this article contains the source code for
13 experiments using the common and inexpensive PIC16F88
microcontroller. The exercises demonstrate all of the various clock
modes. The programs are well documented and contain instructions
on how to set things up and what to look for. The hardware
arrangement for Experiments 1 through 12 is depicted in Figure 6,
while Figure 7 shows what's needed for Experiment 13.
In Experiments 2, 4, and 6, use an oscilloscope or frequency
counter to monitor ϕ/4. In all cases, an LED is blinked just to give the
PIC something to do.
Figure 7. T1OSC mode uses a watch
crystal as a timebase.
PIC Basic Project Board
16F88 PIC Basic Project Board Features
* LCD Display - back light & contrast control
* 2 A/D channels, 8 digital I/O lines, 5V and 9V operation
* Free student version of PICBASIC PRO & Microcode Studio
with purchase of PIC Programming book bundle.
16F88 Programming Service Available
* Project library with source codes and hex files available.
* See 16F88 PCB Project page for more details
Bend and Force Sensors
CdS Light sensors
Radiation Pulse Counter
Images Scientific Instruments Inc.
Feature Illustrated Source Code
1 INTRC, A. 6 free INTRC.GCB
2 INTRC, A. 6 follows ϕ/4 INTRC.GCB
3 INTOSC, A. 6 free INTOSC.GCB
4 INTOSC, A. 6 follows ϕ/4 INTOSC.GCB
5 RCIO, A. 6 free RC-RCIO.GCB
6 RC, A. 6 follows ϕ/4 RC-RCIO.GCB
7 LP, low power 32.768 kHz crystal LP.GCB
8 XT, medium power 4 MHz crystal XT.GCB
9 HS, high speed 19.6608 MHz crystal HS.GCB
10 ECIO, 555 timer external clock ECIO.GCB
11 Failsafe, yank crystal, and see INTOSC take over FAILSAFE.GCB
12 Switching from secondary to primary on reset SWITCHING.GCB
13 T1OSC as a secondary clock T1OSC.GCB
List of Experiments.
January 2014 43