


Home | Commodore C64 | Commodore C128 | Peek Menu C | Peek Menu D | Peek Menu E | Peek Menu F | Peek Menu G | Peek Menu H | Contact Us
PIC Projects | USB Projects | Peek Menu K | Peek Menu L | Peek Menu M | Peek Menu N | Peek Menu O | Peek Menu P | Forums | Useful Links
Microchip PICkit2 | PIC Tutorials | 125 LED Cube 5x5x5 | 32 LED Circle | LED Propeller Clock | LED Chaser | LED Matrix Display | Knight Rider LED
The following tutorial series introduce Microchip PICkit2 Microcontroller, beginning with an overview of the PIC family and the development environment recommended for these lessons. The lessons cover the baseline and midrange PIC architectures using assembly language and freely-available PIC C compilers.
Introduction to PIC Microcontrollers
Baseline PIC Architecture and Assembly Language
Introducing the PIC12F508/509.
2: Flashing an
LED
L2 source
Adding delay
loops.
3:
Writing Modular Code
L3 source
Subroutines,
relocatable modules, memory banking and paging.
4:
Reading Switches
L4 source
Internal pull-ups, reading and debouncing
simple switches.
5: Timer0
L5 source
Using Timer0 for
event timing, delays, debouncing and as a counter.
6: Assembler Directives and Macros L6 source
MPASM expressions,
macros and conditional assembly.
7:
Sleep Mode, Watchdog and Clock Options
L7 source
Using sleep mode, wakeup
on change, the watchdog timer, and external oscillators.
8: Driving 7-Segment LED Displays L8 source
Single and
multiple 7-segment displays, multiplexing, and BCD counting
Using the PIC16F505.
9: Analog Inputs
(on baseline devices) L9 source
ADC, comparators,
hysteresis, fixed and programmable voltage references
Using the PIC16F506.
10: Arrays and Long Integer Arithmetic L10 source
Indirect addressing,
multi-byte addition and subtraction and 8-bit multiplication.
Midrange PIC Architecture and Assembly Language
1: Basic Digital Output
L1 source
Introducing the PIC12F629,
Using delay loops to flash an LED.
2: Writing Modular Code
L2 source
Subroutines,
relocatable modules, memory banking and paging.
Internal
pull-ups, reading and debouncing simple switches.
Using Timer0 for event timing, delays, debouncing and as a counter.
5: Assembler Directives and Macros
L5 source
MPASM expressions, macros
and conditional assembly.
6: Introduction to Interrupts L6 source
Interrupt service routines, timer and external interrupts, debouncing.
7: IOC, Sleep Mode and the Watchdog Timer L7 source
Using interrupt-on-change, sleep mode, and the watchdog timer.
Baseline PIC C Programming
1: Basic Digital I/O
L1
source
Introducing
HI-TECH C PRO, HI-TECH PICC-Lite and CCS PCB
Digital I/O, debouncing, and using weak
pull-ups on baseline PICs.
Configuring and
accessing Timer0
Using Timer0 for debouncing, background
tasks, event timing and counting.
(with some examples of C macros)
3: Sleep Mode and the Watchdog Timer L3
source
Using sleep mode,
wakeup on change, and the watchdog timer
on baseline PICs.
4: Driving 7-Segment Displays L4 source
Single and multiple
7-segment displays, multiplexing, and BCD counting
on baseline PICs. (using the PIC16F505)
5: Analog Comparators L5 source
Comparators,
fixed and programmable voltage references.
(using the PIC16F506)
6: Analog-to-Digital Conversion and Simple Filtering L6 source
Analog-to-digital conversion (ADC) and
calculating a moving average.
(accessing banked memory)
Midrange PIC C Programming
1: Basic Digital I/O L1 source
Introducing
HI-TECH C PRO and PICC-Lite.
Digital I/O, debouncing, and using weak
pull-ups on midrange PICs.
Configuring and
accessing Timer0.
Using Timer0 for debouncing, background
tasks, event timing and counting.
(with some examples of C macros)
3: Introduction to Interrupts
L3 source
Interrupt service
routines, timer and external interrupts, debouncing.
4: IOC, Sleep Mode and the Watchdog Timer
L4 source
Using
interrupt-on-change, sleep mode, and the watchdog timer.






























Stephen Peek | Peek Helicopters | Peek Fireworks | Peek House | Model Jet Club

