Cara Menggunakan MPLab

MPLab adalah software yang digunakan untuk membuat programming dan download program kepada PIC. MPLab boleh digunakan bagi Assembly Language dan C Language.

Dari segi hardware pula, saya menggunakan USB Programmer dari Cytron.  Ia compatible dengan Programmer PICkit2.

Sebelum membuat program, anda juga perlu memilih compiler yang sesuai. Bagi MBLab v8.20, telah tersedia HI-TECH ANSI C Compiler untuk support C Language. Compiler ini diperlukan untuk menukarkan C Language kepada file .hex. File .hex ini yang akan di download ke dalam PIC.

Saya telah menyediakan step-by-step cara menggunakan MPLAB v8.20 ini dalam bentuk PowerPoint.

31 Replies to “Cara Menggunakan MPLab”

  1. salam….power point nie xleh nk download.minta tolong….nie note yg bergune utk sye.tq shahrul.

  2. assalamualaikum..sedara,bila saya build coding,dia x keluar build success tapi just keluar loaded C:\User\programming\run1.cof sahaja..adakah ini bermakna ada error dalam coding atau masalah compiler?

  3. Great jobs!!! I’ve surfed across this site and feel shame for not able to produce the same one……

  4. Well, I followed up your slide step .
    The error still occured to me.
    “No valid installed HI-TECH compiler drivers”.

  5. salam,
    sy nk mntk pendapat, sy nk bt toggle switch tp dia kuar ‘code has no effect’. can sm1 help me? (i try to invert the led status) below is my code:

    #include
    #fuses HS,NOLVP,NOWDT
    #use delay (clock=20000000)
    #define GREEN_LED PIN_B7
    #define SWITCH_LED PIN_B0

    void wait_for_one_press() {
    while(!input(SWITCH_LED)) ;
    while(input(SWITCH_LED)) ;
    }
    void main () {
    while (TRUE) {
    if (!input (SWITCH_LED))
    {
    wait_for_one_press();
    (GREEN_LED) == (!GREEN_LED);
    }}
    }

    1. Software Hi-Tech untuk PIC16 dah sedia ada dengan software MPLab. Cuma pilih ‘Select Language Toolsuite’ untuk gunakan Hi-Tech.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.