CS 179: Project in Architecture/Embedded Systems

CS 179J: Project in Architecture / Embedded Systems

Much of the information found on this webpage can also be found on the eBlock Homepage. I've copied much of the information found there on this page for your convenience, however you should still refer to the eBlock homepage for more/up-to-date information.


Compilation Method 1 : NOPPP Programmer + FPP

If you have a computer you have administrator access to you can use the following tutorial.


Compilation Method 2 : Programming at School

You do not have administrator access to the computers at school, thus you cannot use the same tools outlined in Method 1. You should have access to the compiler/linker through a putty window.

  1. Add the following path to your .bashrc so you don't have to type it in everytime you want to use a command
    /usr/local/pkgs/hitech/bin/picl
  2. Add the following to your .bashrc so you don't have to type it in everytime your open a putty window
    export HTL_PIC = /usr/local/pkgs/hitech
  3. To compile open a putty window and use the following command:
    PICL -16F627 -o -Zg -C filename.c
    You can also refer to the HI-TECH PIC C Lite Compiler manual for other options.
  4. To generate a hex file open a putty window and use the follwoing command:
    PICL -16F627 filename.obj
You should now have a hex file. You will need to copy the hex file to a floppy and take it to the programmer computer. The programmer computer is located in Surge 283.
To program the PIC you can use the FPP software, use the FPP + NOPPP (modified) Programmer - Device Programming tutorial.


Sample Code

You may try looking at the code below to see if you can program the PICs using the methods provided. The code snippets will also provide as a good starting point for writing your own programs. The Communicating PICs code assumes the use of an LCD, you will probably want to modify the code because you don't have an LCD available to you (but you do have LEDs!).