Home

About Us

Kits

Tutorials

FAQ

Contact Us

Useful Links

Follow gooligumelec on Twitter

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.

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, HI-TECH PICC-Lite and CCS PCB
Digital I/O, debouncing, and using weak pull-ups on baseline 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 11/1/10
L2 source
3: Sleep Mode and the Watchdog Timer
Using sleep mode, wakeup on change, and the watchdog timer
on baseline PICs
Updated 11/1/10
L3 source
4: Driving 7-Segment Displays
Single and multiple 7-segment displays, lookup tables and multiplexing
on baseline PICs (using the PIC16F505)
Updated 11/1/10
L4 source
5: Analog Comparators
Comparators, fixed and programmable voltage references
(using the PIC16F506)
Updated 11/1/10
L5 source
6: Analog-to-Digital Conversion and Simple Filtering
Analog-to-digital conversion (ADC) and calculating a moving average
(accessing banked memory)
Updated 21/2/10
L6 source

HI-TECH PICC-Lite C compiler, for use with MPLAB 8.xx: picc-lite_9.60PL2-setup.exe

That concludes the baseline C tutorial series.

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