Part of Content:
This tutorial will introduce you to using the C programming language for microcontroller applications. We will be using a freeware C compiler, called PICC Lite, supplied by a company called Hi-Tech. However, our code will still be written in MPLAB environment. To use the compiler and write our code in C, we will still be using MPLAB IDE. Open the MPLAB Integrated Development Environment. Specify the device you will be using, making sure it is one of the devices supported by PICC Lite Compiler. Now create a Project and Directory just as you’ve done with the Assembly Language version. Then add this file to your project Source Files. By adding the “.c” extension, MPLAB automatically uses C syntax for editing in the IDE. Now, open the blank file you’ve created, cprog.c, and the first line of code to add to your blank page is: Navigate to the Hi-Tech directory and look at this include file. It basically sets up all the definitions for the particular chip you are using, similar to the 16F877 inc file we used in assembly. To set up the configuration bits, just select the CONFIGURATION Pull-Down Menu and set the configuration you want.

Tags:freeware c compiler, c programming tutorial, integrated development environment, c programming language, microcontroller applications
If you see unrelated pdf files with the description or copyrighted material published, please report to us, we'll correct/delete it it as soon as possible.NONE OF THOSE MATERIALS ARE HOSTED IN THIS SERVER NOR UPLOADED BY ME IN SOMEONE'S SERVERS.  Read our DISCLAIMER for more detail.
We are neither affiliated with authors and brands nor responsible for its content and change of content.
Information contained herein is provided "as is" without warranty of any kind, either expressed or implied, including any warranty of merchantability or fitness for a particular purpose. In no event shall ANYONE be held liable for any loss of profit, special, incidental, consequential, or other similar claims.