Tuesday, March 25, 2014

Programming Tutorial with MikroC

in previous post we have seen Programming tutorial with MPLAB (high tech C compiler).In this post we will be learning programming tutorial with MikroC.


How to work with MikroC:

Following are the steps to start a project with Mikro C IDE. 
Step 1 :
To start a new project, open mikroC.exe..In the start, it will look exactly the same as in below image.

 Step 2 :
go to Project -> New Project. The following window will appear.

Step 3 : 
 click Next to Continue

 Step 4 :
The project name, its location and clock frequency is provided in the New Project window.

Step 5 : 
If you want , you can add files to project.

Step 6 : 
 select " include all " to include all inbuild header files in project.

Step 7 : 
Tick mark on Configuration bit checkbox.

 Step 8 :
The device configuration settings are also selected at the beginning of the project. PIC16f877a  includes several features like internal oscillator, watchdog timer etc to maximize the reliability and minimize the cost through elimination of external components. These features are configured through the Configuration bits.
 

Step 9 : 
After configuring the initial settings the code can be written in the Code Editor.
The code is written in Code Window
 Step 10 :
Built by pressing Ctrl+F9 or from Project -> Build. The error(s), if any, will be displayed in the Message Window at the bottom




No comments:

Post a Comment