Home

About Us

Kits

Tutorials

FAQ

Contact Us

Useful Links

Midrange PIC C Programming Tutorials

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

Search this site:
Custom Search

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 and PICC-Lite
Digital I/O, debouncing, and using weak pull-ups on midrange PICs
Updated 23/1/10
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 23/1/10
L2 source
3: Introduction to Interrupts
Interrupt service routines, timer and external interrupts, debouncing
Updated 23/1/10
L3 source
4: IOC, Sleep Mode and the Watchdog Timer
Using interrupt-on-change, sleep mode, and the watchdog timer
Updated 23/1/10
L4 source
5: Reset, Power and Clock Options
Oscillator (clock) modes, power-on reset and brown-out detection
Updated 23/1/10
L5 source
6: Analog Comparators, part 1
Using the single and dual comparators and programmable voltage reference
on the PIC12F629 and PIC16F684
Updated 23/1/10
L6 source
7: Driving 7-Segment Displays
Single and multiple 7-segment displays, lookup tables and interrupt-driven multiplexing
Updated 23/1/10
L7 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