C18 Library Examples

Hi here are several examples of Microchip's C18 Compiler libraries. All of the programs are working and have been simulated. The C18 Libraries are documented on:

http://ww1.microchip.com/downloads/en/devicedoc/mplab_c18_libraries_51297f.pdf

All of the programs use the internal 4Mhz oscillator. two chips 18F1320 and 18F4620 have been used in the examples. Use Proteus VSM to simulate them. A demo version of Proteus VSM can be downloaded from this site:

http://www.labcenter.com/download/prodemo_download.cfm#professional

You can also download its VSM IDE that allows you to work work diretly from a universal environment for a host of compilers.

The Simulation files required to test the codes can be downloaded from:

For Analog to Digital Converter, PWM, Software UART, Timer/Counter, USART: http://www.box.net/shared/j68lzvhr70

For External LCD, Input Capture: http://www.box.net/shared/bjll0zgj31

For I²C: http://www.box.net/shared/ievbkuyg9d

Since the functions have different arguments for different processors and all the processors cant be discussed so the arguments if required by any function should be checked from the C18 Libraries document, although a brief description of all the available functions has been provided for ease of use and understanding.

The libraries for which examples/tutorials have been made are:

Hardware Peripheral Libraries:

Analog to Digital Converter Library

I²C Library

Input Capture Library

PWM Library

Timer/Counter Library

USART Library

Software Peripheral Libraries:

External LCD Library

Software UART Library

Note: If you have made an example of any library and want to publish it on the site, feel free to contact us at:

service.ehutonline@gmail.com