
PICnMix SPI Example Software

We use the EPE Bootloader as a 'framework' for software development. The actual
SPI code is in the file SPI.INC, and some simple framework software to exercise
these routines can be found in APP.INC

If you do not wish to use the bootloader, just take the source code from the file
SPI.INC

The code demonstrates how to read and write bytes using the SPI module on the 
processor and also by 'bit bashing' the protocol.

Two different techniques for doing multi-byte transfers are show. 

The software is targeted at the PIC18F2420 but will work with either none or
minimal changes on other PIC processors, even ones without SPI modules.


To build the software using GPASM, change directory to where you have unzipped
the files and type the following

c:\gputils\bin\gpasm -I c:\gputils\header main.asm

