Sie sind auf Seite 1von 13

Faculty of Engineering - Helwan Biomedical Engineering Department

___________________________________________________________________

Eng. Ahmed easa

Eng. Mostafa Abyad

Biomedical Engineering - Helwan University

ESC

Eng. A. easa & Eng. M. Abyad

Step 1:Install mplab 7.5 version.

Step 2:Select

start<all programs<microchip<mplab IDE v7.5 <mplab IDE.


Biomedical Engineering - Helwan University

ESC

Eng. A. easa & Eng. M. Abyad

Step 3:Select

project<project wizard.

Step 4:Select

next.


Biomedical Engineering - Helwan University

ESC

Eng. A. easa & Eng. M. Abyad

Step 5:Select

your chip type (EX:16f84a).

Step 6:This step determine the programming language (for


assembly we select the first line) .

Biomedical Engineering - Helwan University

ESC

Eng. A. easa & Eng. M. Abyad

Step 7:Name your project & locate folder that will contain it.

Step 8:Skip adding files

Biomedical Engineering - Helwan University

ESC

Eng. A. easa & Eng. M. Abyad

Step 9:Now click finish.

Step 10:Select

file<new.

Biomedical Engineering - Helwan University

ESC

Eng. A. easa & Eng. M. Abyad

Step 11:Select

file<save as.

Step 12:Now locate the folder that contain your project write
the file name(EX: flash.asm).

Biomedical Engineering - Helwan University

ESC

Eng. A. easa & Eng. M. Abyad

Step 13:Right click on mouse at source file then select add files.

Step 14:Select the file that you saved in project folder(flash.asm)

Biomedical Engineering - Helwan University

ESC

Eng. A. easa & Eng. M. Abyad

Step 15:Right click on mouse at linker script then select add files.

Step 16:Locate lkr folder then select file of your chip (16f84a.lkr)
Remark: lkr folder found in C:\Program Files\Microchip\MPASM Suite\LKR.

Biomedical Engineering - Helwan University

ESC

Eng. A. easa & Eng. M. Abyad

Step 17:Now you are ready to write your code.


Start your code with #include p16f84a.inc

Step 18:Finish your code with end.

Biomedical Engineering - Helwan University

ESC

Eng. A. easa & Eng. M. Abyad

Step 19:Press on build all icon.

Step 20:Now if build is successful that is ok and congratulation.


If

Biomedical Engineering - Helwan University

ESC

Eng. A. easa & Eng. M. Abyad

If there are error dont worry ,double click on the error and look at it Some Errors EX1: error message: Illegal character (o). This error result from I write o letter instead of zero.

EX2: error message: Symbol not previously defined (status) This result from I write the special function registers (trisb, port,) in small instead of capital.

Biomedical Engineering - Helwan University

ESC

Eng. A. easa & Eng. M. Abyad

Engineering & Science Club Biomedical Eng. Dept. Helwan University

Yahoo group:

ESC_pic@yahoogroups.com
Eng. Moustafa Abyad E-mail: bme_mabyad@yahoo.com Mobile: 0108236880

Eng. Ahmed Easa E-mail: medicalengineer86@yahoo.com Mobile: 0102278168

Biomedical Engineering - Helwan University

ESC

Eng. A. easa & Eng. M. Abyad

Das könnte Ihnen auch gefallen