

ELECTRONICS - [alarm system] - [page 5/9]
5. Software design
:: 5.1 Introduction
Without a program for the PIC, the whole circuit is useless. So I needed to write a program
(Actually, I first needed to learn how to build a PIC programmer, how to program it, and the
PIC instruction set). I finally wrote the program in assembler. This makes the program a little
bit complex for others to understand, but it's possible to code very efficient.
:: 5.2 Assembler Program
You can download the assembler sourcecode.
You can view this code in notepad, but code will look better if you view it using MPLAB IDE.
(you can download it from the
microchip website for free. It offers you a tool to design PIC programs, and even run
simulations on it). [The assembler file is commented, but in Dutch]
:: 5.3 Program demonstrates...