Home     Contact     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science     RSS     Terms of services     Privacy policy  
   
 Home      Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science   



Creating a new project in MPLAB

You are ready now to create a new project. You could as well edit a single file, but making each time a new project, even for simple little things such as LED flashers and staff, is very important for archiving, practicing and ease of programming. From now on, each tutorial that is presented, shall be a new project. Therefore, it is highly advised that you make a dedicated folder for our tutorials. For example, i shall use the folder "E:\Electronics\PIC-Tutorials\". Within this folder i will make each time a new sub-folder with the name of the tutorial (Tuto1-1, Tutor-2 etc). If you follow the same rule, it will be easier to follow and archive the tutorials as well.

With no further ado, here are the steps to create a new project. The name shall be "Tutor-1" and the folder "E:\Electronics\PIC-Tutorials\Tutor-1":

This is how the MPLAB looks like when you start it at first time:



Step 1:
You go to Menu Project -> New
Step 2:
The "New project" dialog opens. In the "Project name" textbox you type the project name. In our case, this will be "Tutor-1".
Step 3:
You click on the button "Browse". Then, you select the main directory where you will host the subdirectory of your project. In our case, this directory is the "E:\Electronics\PIC-Tutorials\". Then, you click the button "Make New Folder" at the bottom left side of this dialog. When you do this, the browser dialog shall become like the right photo.
Step 4:
A "New folder" has been placed inside the main folder. You need to rename this folder. You use normal Windows procedures to rename the folder. In our case we name it "Tutor-1"
Step 5:
There is a constant Windows bug from old versions. When you rename a folder and the folder is selected, the textbox marked "Folder" right under the browser has still the name "New Folder" instead of the new folder's name. Therefore, you need to click to another folder (for example the "PIC-Tutorials" right above your new one) and then click back your new folder. Then, the textbox will have the appropriate name shown. In our case "Tutor-1".
Step 6:
When you click the "OK" button, your dialog should look like the left picture. If everything is ok, you go on by clicking the "OK" button.
Step 7:
Then, on the top side, right under the menus, there is a drop down box with the selections "Release" and "Debug". Make sure that the "Release" option is selected.
Step 8:
Go to the menu Configure -> Select Device. When you do so, a dialog like the right image will be appeared. Select the device "PIC16F88" that we will use in all of our tutorials. Click "Ok"
Step 9:
Click on the menu Project -> Build options... -> Project
Step 10:
The "Buld options" dialog appears. Go to the tab labeled "MPASM Assembler" and make sure the checkbox "Disable case sensitivity" is checked. Then, click "Ok".
Step 11:
Make sure the menus View -> Project and View -> Output are marked as shown in the left and right images.
Step 12:
You're almost done. You only need to save your new project. Just click on the menu Project -> Save Project


That's it. If you have followed the steps correctly, then you should have a new project created, named "Tutor-1", in a folder named "Tutor-1" somewhere in your file system.












Previous page ---- Next page



Go back to the book contents

Go to the discussion forum of this book





 

Comments

  Name

  Email (shall not be published)

  Website

Notify me of new posts via email


Write your comments below:
BEFORE you post a comment:You are welcome to comment for corrections and suggestions on this page. But if you have questions please use the forum instead to post it. Thank you.


      

  • At 3 June 2011, 5:31:15 user SoUl wrote:   [reply @ SoUl]
    • Nice guide
     






    No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise without the prior written permission of the author.

    Read the Disclaimer


    All trademarks used are properties of their respective owners.
    Copyright © 2007-2009 Lazaridis Giorgos.
    All rights reserved.






     HOT in heaven!


  • Disclaimer
  • Book Contents
  • Discussion forum

  • Basics
  • What will you need
  • Choosing the right PIC
  • The MPLAB
  • Getting familiar with the MPLAB environment
  • Creating a new project
  • Open and close projects
  • Creating new files and including them in the project
  • Your very first assembly program
  • Compile a program and transfer to the PIC
  • Section 1: Beginner's theory
  • Memory Organization
  • The Data Memory Organization
  • The Program Memory Organization
  • The instructions
  • General knowledge about instructions
  • Value Loading Instructions
  • Program Flow Instructions
  • Mathematic Instructions
  • Logic Function Instructions
  • Bit Orientated Instructions
  • Byte Orientated Instructions
  • Miscellaneous Instructions
  • The Basic Special Function Registers
  • The Status Register
  • The Option_Reg Register
  • The TRIS and PORT registers
  • Beginner's PIC Tutorials
  • How to use our PIC Tutorials
  • A Pushbutton turning an LED on and off
  • A Simple LED Flasher
  • Interfacing Multiple Switches - The internal Pull-Up resistors
  • An LED Sequencer
  • Interface a Single 7seg Digit
  • Interface Multiple 7seg Digits
  • A 3-digits Decimal Counter
  • A Clever Button
  • Section 2: Intermediate theory
  • Instruction Cycle Duration and Calculated Delays
  • The Timer Modules - Timer0
  • The Timer Modules - Timer1
  • The Timer Modules-Timer2



  • NEW in heaven!



    New Theory: AC electric motor working principle






     Contact     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science     RSS   

    Site design: Giorgos Lazaridis
    © Copyright 2008
    Please read the Terms of services and the Privacy policy