Home

About Us

Kits

Tutorials

FAQ

Contact Us

Useful Links

Baseline PIC C Programming Tutorials

The following tutorials build on the material covered in the baseline assembler tutorial series, showing how to implement the example applications from those lessons, using freely available PIC C compilers, including those from HI-TECH and CCS.

Click on the lesson title to read each tutorial (PDF).
Right-click the source code links to save the code for that tutorial to your PC.

1: Basic Digital I/O
Introducing HI-TECH C PRO, HI-TECH PICC-Lite and CCS PCB
Digital I/O, debouncing, and using weak pull-ups on baseline PICs
Updated 16/8/08
L1 source
2: Using Timer0
Configuring and accessing Timer0
Using Timer0 for debouncing, background tasks, event timing and counting
(with some examples of C macros)
Updated 26/1/08
L2 source
3: Sleep Mode and the Watchdog Timer
Using sleep mode, wakeup on change, and the watchdog timer
on baseline PICs
Added 16/2/08
L3 source
4: Driving 7-Segment Displays
Single and multiple 7-segment displays, multiplexing, and BCD counting
on baseline PICs (using the PIC16F505)
Added 8/3/08
L4 source
5: Analog Comparators
Comparators, fixed and programmable voltage references
(using the PIC16F506)
Added 24/4/08
L5 source
6: Analog-to-Digital Conversion and Simple Filtering
Analog-to-digital conversion (ADC) and calculating a moving average
(accessing banked memory)
Added 6/4/08
L6 source

Further tutorials are being compiled.

If you have found these tutorials useful and would like to encourage their continued development, please click on this button to make a donation:

PDF files are read with free Adobe Reader software. Click here to get adobe reader

Return to Main Page