Mikroc Programming Tutorial Pdf

0 views
Skip to first unread message

Custodio Groves

unread,
Aug 4, 2024, 8:48:51 PM8/4/24
to atkaldeca
Thegoal of this page is to help you make your first project in the compiler and understand how the IDE operates.

Our examples will help you along the way. We will take you through all the steps, one by one, and show you how simple and easy it is to use any of our compilers.


All our compilers come with a comprehensive Help file and many coding examples that can help you get started and get to know the compiler.

You can also easily access them by clicking on the Open Examples folder.


The compiler license offers free upgrades. The only time you'll pay is when you buy the compiler.

All you need to do is check if there is a new update. You can do this by clicking on the Help -> Check for Updates.

The compiler license is valid until the end of the product life.


We offer free support, for all our products. There is a live chat option if you want to communicate with our support team and a Helpdesk where you can submit a ticket if you are having any trouble or need more information.


You can download and try our free demo version of the Visual TFT software on our web page. The demo version of the software allows you to freely design your GUI with as many components as you want, but code generation is limited to a maximum of seven components.


An IDE or an Integrated Development Environment is a software application in which all the developing is done.

Each of our IDEs is dedicated to one programming language: C, Basic and Pascal.


Our IDE is intuitive and easy to use and has a Windows based point-and-click environment.

With a detailed help file, developing applications and working on projects is simple and straightforward.

The "Introduction" chapter (Help file) gives you an excellent overview of the compiler you are using, and we suggest you read it before you start your first project.


The picture below shows the default layout of the compiler IDE. You can always customize the layout in a way that suits your needs.

Hide the features that are of no use to you at the moment, and add the ones that you require.


By the default layout, the first section of the Main Toolbar is dedicated to the creating, editing and deleting of the project. The second section is for adding files.

The third one is concerned with saving options and printing. The fourth one is for building your project and starting the programmer.

The fifth one is for managing the USART terminal, EEPROM editor tool, and other options. The sixth one is for layout features.

The seventh one is for assembly, listings, and statistics. The eight one is for the Help file and the examples folder.

The ninth and last section is History, for retracing your steps in the Code Editor.


In this section, you have the name of the device you are using, the frequency of the MCU clock and the Build/Debugger types.

The frequency of the MCU clock determines the speed of the microcontroller.


The Project Manager is an IDE feature which allows you to manage multiple projects. It shows source and header files in each project.

Several projects can be open at the same time, but only one of them may be active at one time.

To set a project in an active mode you need to double click on the desired project in the Project Manager.


Your projects can be organized into multiple screens or you can keep everything on a single screen.

Each screen can be moved and changed to your liking. Change the color of the background or reorganize the components.

One screen can contain one application or one functionality of the application.


The Components palette lets you choose between different fonts and labels, gradient and standard fill for boxes, visibility, border color and many more options.

You can use multiple screens and edit the components.




The compiler will adjust the internal settings based on the information you have entered. The default configuration is suggested for you at the beginning.

If you don't want to use the suggested path for storing your new project, you can change the destination folder. In order to do that please follow these instructions:


This step allows you to include additional files that you need in your project: some headers or source files that you already wrote, and that you might need in further development

. If you are going to add files, choose the folder they are located in and click the Next button. You can also add files later, by opening the Project Manager.


This step allows you to quickly set whether you want to include all libraries in your project, or not.

Even if all libraries are included, they will not consume any memory unless

they are explicitly used from within your code. The main advantage of including all libraries is that you will have over 500 functions available to use

in your code right away. These functions will be visible from Code Assistant [CTRL+Space]. The default configuration is the "Include All" option.

When you are done click on the Finish button.


Visual TFT software is a standalone application used for rapid development of graphical user interfaces for TFT displays.

The software generates code compatible with MikroElektronika compilers.

The visual/design process for creating new projects is the same for every compiler and on every architecture.


In this tutorial, we will show you how to develop a simple application with two screens. Each screen will carry a button which can be used to switch to the other screen.

You will be designing a graphical interface in Visual TFT software.


In the next window, you can add files to your project. Choose the files on your computer that you want to add and click the "Add" button.

After you have added all the files you wanted you can click the "Next" button and proceed to the last step in the New Project Wizard.

This step allows you to include additional files that you might need in your project - some headers or source files that you already wrote, and that you might

need in future development.


If you are a beginner we suggest that you choose the "Include All (Default)" option.

This step allows you to quickly set whether you want to include all libraries in your project, or not.

Even if you do include all libraries, they will not consume all memory unless they are explicitly used from within your code.

The main advantage of including all libraries is that you will have over 500 functions available for use in your code right away.

All the functions will be visible from the Code Assistant [CTRL+Space].


So far, we have successfully created a blank new project for EasyPIC Fusion v7 development board. Now, we are going to design the user interface.

We are going to add one button and one text section. In the tools section, in the upper right corner of the IDE, you have a list buttons you can add.

Choose the one you like and drag it to the display screen in the middle of the IDE.

After you click on the button, you can change its color, size, text and font in the Components section - Properties tab, in the bottom left corner of the IDE.

You can change the features of the screen in the upper lest corner of the IDE.

The Events tab, next to the Properties tab in the Components section defines what a button does.


LEDs can be used for visual indication of the logic state on PORT pins. An active LED indicates that a logic high (1) is present on the pin. In order to enable PORT LEDs, it is necessary to enable the corresponding switches on the board you are using.


Hello everyone! This is my first contribution in the field of electronics and technology. Since I am an electronics engineer, I would like to impart my knowledge about PIC programming that I had learned during my college days. This step by step process in making 8 LED light pattern is a basic programming that you can apply when you want to make a Christmas lights in your home. It only depends in your style, in your pattern & the design of light pattern that you want to see. For those who love electronics and technology, I hope you will find it interesting.


A capacitor is a passive two-terminal electrical component that stores electrical energy in an electric field.The effect of a capacitor is known as capacitance. While some capacitance exists between any two electrical conductors in proximity in a circuit, a capacitor is a component designed to add capacitance to a circuit. The capacitor was originally known as a condenser.


The acronym PIC stands for "peripheral interface controller," although that term is rarely used nowadays.

A microcontroller is a compact microcomputer designed to govern the operation of embedded systems in motor vehicles, robots, office machines, medical devices, mobile radios, vending machines, home appliances, and various other devices. A typical microcontroller includes a processor, memory, and peripherals.


Microcontroller programming means coding of a microcontroller for different purposes in special software. There are lots of software in which we can write different codes for microcontroller and IC Chips. But in this session, we will use the mikro C programming.


Burning a microcontroller means to transfer the coded program from the compiler where compiler is a software where we can write, analyze, test and debug the coded program for a microcontroller, to the microcontroller memory. The coding or program written for microcontroller is generally in assembly/C language and the compiler generates a hex file which is understandable by the microcontroller. The hex file contains special instructions which are to be transferred to the microcontroller memory and then it works according to the given instruction and program.


When we programmed a microcontroller (we will discuss the step by step tutorial on how to program and write the special purpose coding for a microcontroller), then we need it to burn this program to the memory of the microcontroller. For this purpose, we need a hardware which understand and read the contents and programming codes of the hex file stored on our laptop or PC via software. So we connect this hardware via USB cable or serial to the PC/Laptop and transfer the written programming code to the memory of microcontroller and then microcontroller perform the exact function for which the designer and manufacturer designed the microcontroller IC Chip.

3a8082e126
Reply all
Reply to author
Forward
0 new messages