high tech c delay problem

Discussion in 'Programmer's Corner' started by Jaden5165, Sep 10, 2011.

Thread Status:
Not open for further replies.
  1. Jaden5165

    Thread Starter Member

    Sep 9, 2011
    69
    0
    //LED example program written for
    //PIC programming tutorial.

    //standard include files
    #include <stdlib.h>
    #include <htc.h>
    #include “delay.h”

    //main function
    void main()
    {
    PORTA = 0x00; //set RA0-RA5 low
    TRISA = 0x00; //set PORTA to output

    //superloop
    while(1)
    {
    PORTA = !PORTA;
    DelayMs(250);
    }
    }


    Build C:\Users\Jaden_Ng Chun Hau\Desktop\FYP\led_delayms\delayms for device 16F877A
    Using driver D:\Program Files\HI-TECH Software\PICC\9.81a\bin\picc.exe
    Make: The target "C:\Users\Jaden_Ng Chun Hau\Desktop\FYP\led_delayms\Untitled.p1" is out of date.
    Executing: "D:\Program Files\HI-TECH Software\PICC\9.81a\bin\picc.exe" --pass1 "C:\Users\Jaden_Ng Chun Hau\Desktop\FYP\led_delayms\Untitled.c" -q --chip=16F877A -P --runtime=default --opt=default -D__DEBUG=1 --rom=default --ram=default -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
    Error [109] C:\Users\Jaden_Ng Chun Hau\Desktop\FYP\led_delayms\Untitled.c; 7.10 #include syntax error
    ********** Build failed! **********



    how to solve this?
     
  2. bertus

    Administrator

    Apr 5, 2008
    15,647
    2,346
Loading...
Thread Status:
Not open for further replies.