Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
PIC microcontrollers (Dragan Andric).pdf
Скачиваний:
272
Добавлен:
12.08.2013
Размер:
2.52 Mб
Скачать

Chapter 5 - MPLAB

 

 

 

Previous page

Table of contents

Chapter overview

Next page

5.4 Designing a project

In order to start writing a program you need to create a project first. By clicking on PROJECT --> NEW PROJECT you are able to name your project and store it in a directory of your choice. In the picture below, a project named 'test.pjt' is being created and stored in c:\PIC\PROJEKTS\ directory.

This directory is chosen because authors had such directory set up of on their computer. Generally speaking, directory with files is usually placed in a larger directory whose name is unmistakably associated with its contents.

Opening a new project

After naming the project, click on OK. New window comes up as in the next picture.

Chapter 5 - MPLAB

Adjusting project elements

Using a mouse click on "test [.hex]" which activates 'Node properties' option in the bottom right corner of a window. By clicking on it you get the following window.

Chapter 5 - MPLAB

Defining parameters of MPASM assembler

From the picture we see that there are many different parameters. Each kind corresponds to one parameter in "Command line" . As memorizing these parameters is very uncomfortable, even forbidding for beginners, graphic adjustment has been introduced. From the picture we see which options need to be turned on. By clicking on OK we go back to previous window where "Add node" is an active option. By clicking on it we get the following window where we name our assembler program. Let's name it "Test.asm" since this is our first program in MPLAB.

Chapter 5 - MPLAB

Opening a new project

By clicking on OK we go back to the starting window where we see added an assembler file.

Chapter 5 - MPLAB

Assembler file added

By clicking on OK we return to MPLAB environment.

Previous page

Table of contents

Chapter overview