Baseline PIC Assembler Tutorials

This tutorial series introduces the baseline (12-bit) PIC architecture, peripherals, and assembly language.

To get the most out of these lessons, you should purchase the Gooligum baseline training and development board, which was designed to complement this tutorial series.

Search this site:
Custom Search


Download all the baseline assembler lessons as a single zip file from the Gooligum Electronics shop

or access them individually:

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: Lighting an LED
Introducing the PIC10F200 and PIC12F508
Updated 7/8/12
L1 source
2: Flashing an LED
Adding delay loops
Revised 27/2/12
L2 source
3: Writing Modular Code
Subroutines, relocatable modules, memory banking and paging
Introducing the PIC12F509
Revised 27/2/12
L3 source
4: Reading Switches
Internal pull-ups, reading and debouncing simple switches
Updated 7/6/12
L4 source
5: Timer0
Using Timer0 for event timing, delays, debouncing and as a counter
Updated 24/9/13
L5 source
6: Assembler Directives and Macros
MPASM expressions, macros and conditional assembly
Updated 24/9/13
L6 source
7: Sleep Mode, Watchdog and Clock Options
Using sleep mode, wakeup on change, the watchdog timer, and external oscillators
Revised 23/3/12
L7 source
8: Driving 7-Segment LED Displays
Single and multiple 7-segment displays, multiplexing,lookup tables and binary-coded decimal (BCD)
Introducing the PIC16F506
Revised 3/4/12
L8 source
9: Analog Comparators
Comparators, hysteresis, fixed and programmable voltage references
Revised 10/4/12
L9 source
10: Analog-to-Digital Conversion
Using the analog-to-digital converter (ADC) on the PIC16F506
Revised 24/4/12
L10 source
11: Arrays and Long Integer Arithmetic
Indirect addressing, multi-byte addition and subtraction and 8-bit multiplication
Revised 24/4/12
L11 source

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

Return to Main Page