how to use mplab
TRANSCRIPT
-
8/3/2019 How to Use Mplab
1/13
Biomedical Engineering - Helwan University ESC Eng. A. easa & Eng. M. Abyad
Faculty of Engineering - Helwan
Biomedical Engineering Department ___________________________________________________________________
Eng. Ahmed easa Eng. Mostafa Abyad
mailto:[email protected] -
8/3/2019 How to Use Mplab
2/13
Biomedical Engineering - Helwan University ESC Eng. A. easa & Eng. M. Abyad
.version.57mplabInstall:1 Step
7.5mplab IDE v
-
8/3/2019 How to Use Mplab
3/13
Biomedical Engineering - Helwan University ESC Eng. A. easa & Eng. M. Abyad
.project wizard
-
8/3/2019 How to Use Mplab
4/13
Biomedical Engineering - Helwan University ESC Eng. A. easa & Eng. M. Abyad
).a84f 16:EX(chip typeyourSelect:5 Step
for(the programming languagehis step determineT :6 Stepassembly we select the first line) .
-
8/3/2019 How to Use Mplab
5/13
Biomedical Engineering - Helwan University ESC Eng. A. easa & Eng. M. Abyad
.locate folder that will contain it&Name your project :7 Step
Skip adding files :8 Step
-
8/3/2019 How to Use Mplab
6/13
Biomedical Engineering - Helwan University ESC Eng. A. easa & Eng. M. Abyad
.ow click finishN :9 Step
.new
-
8/3/2019 How to Use Mplab
7/13
Biomedical Engineering - Helwan University ESC Eng. A. easa & Eng. M. Abyad
.save as
-
8/3/2019 How to Use Mplab
8/13
Biomedical Engineering - Helwan University ESC Eng. A. easa & Eng. M. Abyad
.ight click on mouse at source file then select add filesR :13 Step
)asm.flash(elect the file that you saved in project folderS :14 Step
-
8/3/2019 How to Use Mplab
9/13
Biomedical Engineering - Helwan University ESC Eng. A. easa & Eng. M. Abyad
.ight click on mouse at linker script then select add filesR :15 Step
Step 16: Locate lkr folder then select file of your chip (16f84a.lkr) Remark: lkr folder found in C:\Program Files\Microchip\MPASMSuite\LKR.
-
8/3/2019 How to Use Mplab
10/13
Biomedical Engineering - Helwan University ESC Eng. A. easa & Eng. M. Abyad
.e ready to write your codeow you arN :17 StepStart your code with #include p16f84a.inc
.inish your code with endF :18 Step
-
8/3/2019 How to Use Mplab
11/13
Biomedical Engineering - Helwan University ESC Eng. A. easa & Eng. M. Abyad
.ress on build all iconP :19 Step
Step 20: Now if build is successful that is ok and congratulation. If
-
8/3/2019 How to Use Mplab
12/13
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 ErrorsEX1: 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.
-
8/3/2019 How to Use Mplab
13/13
Biomedical Engineering - Helwan University ESC Eng. A. easa & Eng. M. Abyad
Engineering & Science ClubBiomedical Eng. Dept.
Helwan University
Yahoo group:
Eng. Moustafa Abyad
E-mail: [email protected]
Mobile: 0108236880
Eng. Ahmed Easa
E-mail: [email protected]
Mobile: 0102278168