PIC Firmware Assembly Code Templates
These files are intended to provide a starting point for the development of code for your projects. Other additional files are typically required. See Demos for examples.

Main Code Templates
Main code template for assembly programs not using interrupts. template_main.asm (5K)
Main code template for assembly programs that use interrupts (updated 24 Feb 2005). template_main_interrupts.asm (9K)
A linker script for those using the 16F873, particularly with interrupts. Further modification by you is probably required. Note that your Makefile will require specification of "LKRDIR=./". 16f873.lkr (1K)
A template for a Real Time Loop (RTL) using TMR0. This is a work-in-progress but is functional. The BCD routines contained herein are untested and will eventually be moved to a (more comprehensive) library. rtl_frameworkTMR0.asm (18K)

Library Code Templates
Assembly library code template. template_library.asm (4K)
Header file for a library. This is the file that is included in the calling file. template_header.h (1K)