Problem with Compiling


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Posts
    2

    Default Problem with Compiling

    I tried to do a really simple blink led, but my code won't compile!
    Every time I try to compile:

    @ DEVICE PIC16F877A, HS_OSC, WDT_OFF, PROTECT_OFF, LVP_OFF
    DEFINE OSC 20
    LED VAR PORTB.2

    TRISB=%00000000
    PORTB=%00000000

    main:
    low LED
    pause 1000
    high LED
    pause 1000
    goto main
    END

    I get an error message that says I have an undefined symbol 'pic16f877a'
    What can I do to fix this?

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tarexpanda View Post
    I tried to do a really simple blink led, but my code won't compile!
    Every time I try to compile:

    @ DEVICE PIC16F877A, HS_OSC, WDT_OFF, PROTECT_OFF, LVP_OFF
    DEFINE OSC 20
    LED VAR PORTB.2

    TRISB=%00000000
    PORTB=%00000000

    main:
    low LED
    pause 1000
    high LED
    pause 1000
    goto main
    END

    I get an error message that says I have an undefined symbol 'pic16f877a'
    What can I do to fix this?
    Which version of PBP are you using? 2.??
    For that matter, did you try simply really hard to read the green manual?
    Last edited by skimask; - 11th April 2007 at 04:59.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tarexpanda View Post
    I tried to do a really simple blink led, but my code won't compile!
    Every time I try to compile:

    @ DEVICE PIC16F877A, HS_OSC, WDT_OFF, PROTECT_OFF, LVP_OFF
    DEFINE OSC 20
    LED VAR PORTB.2

    TRISB=%00000000
    PORTB=%00000000

    main:
    low LED
    pause 1000
    high LED
    pause 1000
    goto main
    END

    I get an error message that says I have an undefined symbol 'pic16f877a'
    What can I do to fix this?
    Are you using MPASM or PM as your assembler?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Problem compiling EasyHID code
    By mindthomas in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th August 2010, 20:46
  2. Replies: 14
    Last Post: - 31st March 2009, 12:04
  3. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  4. Microcode Studio 18f2455 problem?????
    By volkan in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st May 2007, 21:04
  5. weird 12F629/675 problem
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th October 2004, 01:08

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts