                          
                     A Re-programmable Test Circuit
                     ==============================

                              David Tait
                         david.tait@man.ac.uk


The diagram in icsptest.pcx shows a test circuit consisting of a PIC,
four LEDs, a common anode 7-segment display and a push-to-make switch.  
It is designed so that you you can try out in-circuit serial programming 
using the simple programmer ideas described in:

http://www.man.ac.uk/~mbhstdj/icp84.html
and
http://www.man.ac.uk/~mbhstdj/files/spp01.zip

To start you off I've included four programs that will make the
circuit do something:

COUNT.ASM     shows 0-9 on the display  
COUNT1.ASM    use the switch to increment the displayed number 
CLOCK.ASM     a one-digit real-time clock
DIGIDIE.C     a digital die

The comments in the source give brief additional information on the 
programs.  To make things a bit easier I've also included the
hex files required by the programmer.  The hex files for the assembler 
programs were produced by MPASM (free from http://www.microchip.com);
DIGIDIE.HEX was generated using the demo version of the HI-TECH PIC 
C compiler (from http://www.htsoft.com).  Despite the fact that the
switch is connected to RB7 (normally reserved for ICSP) there is no 
need to disconnect the programmer while the programs are running.

The hardware will also work with the simple LED flashers described in:

http://www.man.ac.uk/~mbhstdj/files/first.txt

Of course there is no need to program the PIC in-circuit and any
PIC programmer can be used to try out the programs.

V-0.2  28/May/1998
