Sample Code
-
Printf - A set of printf-like routines in assembler.
-
USART - Configuring and using an onboard USART in PIC assembler.
-
I2C Complete - A sample project that demonstrates
how to use I2C to read from a TC74 temperature sensor and store readings in an I2C EEPROM. This project also
contains code for bit banged serial communications, LCD display control and other handy code including
pause routines, math and bank management macros.
PIC Web Sites
There are several excellent PIC resources on the internet.
Here are links to a few of the best.
-
MIT PIC List
The most complete PIC resource on the web.
-
Microchip PIC Forums
The official Microchip PIC forum. Lots of help and resources for the PIC processors.
-
Elmer 160 Tutorial
An excellent PIC tutorial. One of the best around. If you are new to the PIC, start here.
Resources
A question that comes up often is "how do I interface with an LCD display?" The
most common LCD displays for hobbyists are based on the Hitachi HD44780 chipset.
The Hitachi based displays are easy to work with once you figure out the basic steps.
Here are a couple of links to get you started: