Example Programs for the ECPE 5 PIC Project Board

J. Dunmire
March 13, 2003


The table below provides links to some example programs for the ECPE 5 PIC Project Board. Most are written in JAL. Links to the executable files (in HEX format) are included.

To build executable files from the .jal files, enter the following command in an MS-DOS command window:

c:\jal\jal.exe -sc:\jal\lib flash_1LED.jal

Repeat the command, substituting the other file names for the last argument (flash_1LEd.jal).

To download the files, right-click on the link and select Save Link As...

To program the Project Board use a command line similar to:

C:\PYTHON22\python.exe "C:\Program Files\XWisp\xwisp.py" flash_1LED

or download the XWisp command file and then double-click on the file name (programmer.xwisp) and select one of the buttons in the resulting window.

Note: The instructions above assume that JAL, XWisp have all been installed in their default locations following the instructions provided by Wouter van Ooijen:
Source Image (hex) Description Related

flash_1LED.jal flash_1LED.hex A simple first program for the PIC Project board. It flashes a single LED.
count_4LED.jal count_4LED.hex This program exercises the 4 discrete LEDs next to the PIC processor on the PIC Project Board. A simple 4 bit binary counter.
count_11LED.jal count_11LED.hex This program extends the 4 bit counter in count_4LED.jal to 11 bits. The count is displayed using a column from the dot matrix display and the 4 discrete LEDs next to the PIC processor.
interrupt.jal interrupt.hex An example showing how to write interrupt service routines in JAL.

This program is based on the 11 bit counter. An interrupt routine responds to the switches and moves the display of the upper 7 bits of the counter right or left on the dot matrix display.

This program also illustrates some of the complexity that can arise when switches have to be debounced in software.

DS1821_demo.jal DS1821_demo.hex Demonstrates that the DS1821 thermometer is working by displaying temperature as a binary value on one row of the 5x7 dot matrix display.
MAX522_demo.jal MAX522_demo.hex Demonstrates that the MAX522 dual-DAC is working by generating trianglular signals.
flashLEDs.asm flashLEDs.HEX This program is an example of how to write programs using the MPLab environment for use with WLoader. README.txt
$Date: 2008-10-21 19:17:35 $
$Source: /home/cvsroot/projectsTop/picProjectBoard/examples/index.html,v $
Contact me by email: jedunmire at gmail.com