/* col_pic copyright Jan Panteltje always */

Install:

You need:
xforms installed, and the forms.h header file.
See also the README.

./configure
make install


Alternative compile method if you have Imake installed (no longer recommended):
xmkmf
make
make install
make install.man
NOTE:
 If you use this method with Imake, then the binary and manual will be installed in the X11 path.
 If this is searched before the /usr/local/bin/ path, and you later use the configure method,
 then you need to erase the manual and the binary in the X11 path, else always the old version is found.



Create the settings directory:
mkdir -p ~/.col_pic/setup

Copy the icon:
cp col_pic.xpm ~/.col_pic/



Programming the PIC 16F648A:

You need a hex programmer, use the file col.hex

Assembling col.hex (if you are into that), 
col.asm was assembled with gpasm-0.13.5 beta, use the script
./make_asm
to assemble col.asm to create col.hex



Connecting the PIC 16F648A:

The following values give approximately white for my LEDs with all 3 colors at 255, use trimpots in blue and red, green as reference: 
Red LED pin 18 via a 220 Ohm resistor to +5V. 
Green LED pin 17 via a 100 Ohm resistor to +5V. 
Blue LED pin 16 via a 1000 Ohm resistor to +5V. 

Ground to pin 5.
+5V to pin 14.

RX data (via for example a MAX232 chip) to pin 7.
TX data (via for example a MAX232 chip) to pin 8.

That is all.



Communicating with the PIC:

col.hex communicates at 19200 Baud, 8 data bits, 1 stop bit, no hardware handshaking.
You can use the ptlrc-0.3.tgz  communication program to communicate with PIC, it is on ftp://sunsite.unc.edu/pub/linux/apps/

Type h for help when connected to the PIC.




