Can someone help me identify why this simple program won't compile?


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Can someone help me identify why this simple program won't compile?

    What PIC, PBP version, ASM version?

    Can you post all your entire code?

    Have you tried just blinking an LED on port e.2?

    Robert

  2. #2
    Join Date
    Mar 2013
    Location
    Florida
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: Can someone help me identify why this simple program won't compile?

    The PIC that this would be loaded to, if it ever got tested would be 16F877a

    I have Microcode Studio 5.0.0.3 Compiler 3.0.6.3 and whatever assembler came down when I downloaded this all together.
    If the ASM version is still important, you will have to direct me to where I find that bit of information.


    This code sample is complete, but if it does not look complete, that may be the problem. I took the code from the book to test the LCD.
    Thanks, Joe

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,627


    Did you find this post helpful? Yes | No

    Default Re: Can someone help me identify why this simple program won't compile?

    Hi,
    Make sure you select the correct target device in the drop down list in MicroCode Studio before compiling.
    If you're compiling for a chip which doesn't have a PortE (for example) then the compiler doesn't know what to do with the command LOW PortE.2 so it throws a Syntax Error.

    I've tried your code here, compiling ot for 16F877A, and it compiles without any errors.

    /Henrik.

Similar Threads

  1. Compile problems with simple RF remote control example
    By astouffer in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th July 2012, 06:22
  2. Can anyone compile a C program for me?
    By circuitpro in forum Off Topic
    Replies: 2
    Last Post: - 25th February 2012, 10:22
  3. ICD Compile Program in MicroCode Studio Plus
    By Mike2545 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 5th December 2010, 17:29
  4. Compile and Program help using PICKit2
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 10th March 2009, 15:51
  5. Problem to compile my program
    By wagner in forum Off Topic
    Replies: 5
    Last Post: - 7th July 2008, 21:17

Members who have read this thread : 0

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