PIC Resources

About
Home
Gallery
Links
Linkblog [RSS]
Projects
Resume
Email
Facebook

This is a collection of various files that I've created during my foray into the world of PIC programming. Most of the m I use currently, some are just files I made along the way. I haven't taken the time to write any documentation, but most of the files are fairly well commented. Some of the programs work, some don't. As always, use at your own risk.

If you don't know what a PIC is, look here.

All of my code is generated with the gputils set of tools on a FreeBSD machine. In theory they should also work with MPLAB, but I wouldn't know.

These files are being made available under a license very similar to that used by the FreeBSD Project. The actual license text is included in the file License.txt which can be found in the archive files linked below.

Assembly Language Include Files

[zip | tar]

These file are meant to be included in other asm files, they won't run by themselves. All of the files with "_func" in their names contain function definitions, I usually include these at the bottom of my programs. All other files are macros and/or defines.

  • picutil.inc, picutil_func.inc: Very basic macros and functions that make life a little easier. These are required by most (if not all) of the files listed below.
  • pic_ee.inc, pic_ee_func.inc: For reading and writing to the EEPROM of a PIC16F877.
  • pic_flash.inc, pic_flash_func.inc: For reading and writing program memory on a PIC16F877.
  • picspi.inc, picspi_func.inc: For using the SPI port on the PIC16F877
  • pic232.inc, pic232_func.inc: For the USART on the PIC16F877
  • mcp2510x.inc: Lots of helpful stuff for the MCP2510 CAN controller. This requires the SPI files above as well as mcp2510.inc (available from Microchip or in the gputils-extras package)

© 1999 Brandon Fosdick