You are on page 1of 11

PROJET SMAIS

ROB MOBILE ROBOTICS SPECIALIST

MIKROC PRO FOR PIC SOFTWARE

ESTIA2023 – Systèmes Microprogrammés - Module Systèmes Discrets


Create your workspace
Step One – Create a folder named “Systèmes Microprogrammés”.

Step Two – Initiate, as illustrated by the example below, the creation of our workspace tree.

Need to structure your workspace correctly and


Systèmes microprogrammés
continuously in order to better exploit your work.

Présentation

Découverte du monde des microcontrôleurs

Découverte et prise en main des outils


EASYPIC7
Projet FLRMob2022
MikroC
CDC

Dev_1

Dev_1

ROBESTIA - Projet SMAIS - Phase Formation 2


Create a new project
Open the software
Open the MikroC Pro for PIC software

ROBESTIA - Projet SMAIS - Phase Formation 3


Create a new project

New Project
─ Before creating a new project, close all the opened projects using the dropdown menu Project ›
Close Project.
─ The easiest way to create a project is by means of the New Project Wizard, using the dropdown
menu Project › New Project or by clicking the New Project Icon from Project Toolbar.

New Project Wizard Steps


In the Project type window, start creating your New project, by selecting Standard Project and
clicking Next button.

ROBESTIA - Projet SMAIS - Phase Formation 4


Create a new project
In the Project settings window:

Step One – Give an understanding name to your Project.


Step Two – Specify the correct location where your project will be saved. This location depends on
the structure of the previously created workspace.
Step Three – Select the device PIC16F887 from the device drop-down list.
Step Four – Configure the oscillator frequency value at 8 MHz.
Step Five – Click the Next button.

ROBESTIA - Projet SMAIS - Phase Formation 5


Create a new project
In the Add files window:

Step One – Add project files to the project if they are available at this point. You can always add
project files later using Project Manager.
Step Two – Click the Finish button.

ROBESTIA - Projet SMAIS - Phase Formation 6


Create a new project
Your new project is now created. Save this new project and the corresponding file .c in the good
place, normally specified in the Project settings window.
Project Manager
workspace

Project settings

File .c containing main function

Associated project
librairies

ROBESTIA - Projet SMAIS - Phase Formation 7


Build and program the microcontroller

Download and copy/paste the example code


Step One – Download the file Ex1_FLR.c.
Step Two – Open this file with the MikroC PRO for PIC software using the dropdown menu File ›
Open or by clicking the Open Icon from File Toolbar.
Step Three – Copy all the example code and paste this code into the previously created file .c.
Step Four – Close the file Ex1_FLR.c and save your project.

ROBESTIA - Projet SMAIS - Phase Formation 8


Build and program the microcontroller

Build and program the microcontroller


Step One – Verify the correct configuration of the EASYPIC development card.
Step Two – Connect the EASYPIC development card to your computer in order to program the
microcontroller embedded on it.
Step Three – Build and program the microcontroller by clicking the Build and program Icon
from File Toolbar.
Step Four – If there is no problem, the Finished successfully message appears in the Messages
Window and the mikroProg Suite software opens automatically to program the microcontroller.
Step Five – Verify the good operation of the program using the EASYPIC development card.

ROBESTIA - Projet SMAIS - Phase Formation 9


PROJET SMAIS
ROB MOBILE ROBOTICS SPECIALIST

MIKROC PRO FOR PIC SOFTWARE

ESTIA2023 – Systèmes Microprogrammés - Module Systèmes Discrets


Sources

─ https://www.mikroe.com/blog/compiler-quick-start-guide
─ EASYPIC7 User’s guide
https://moodle2a.estia.fr/pluginfile.php/21349/mod_resource/content/4/easypi
c7_manual.pdf

ROBESTIA - Projet SMAIS - Phase Formation 11

You might also like