Struggling Newbie


Closed Thread
Results 1 to 3 of 3
  1. #1
    plakey's Avatar
    plakey Guest

    Default Struggling Newbie

    Hi All,

    I'm new to Microcontrollers and this forum so please be gentle.

    I purchased a EasyPic7 board to start playing with which came with full copy of MikroBasic, however I'm far from happy with MikroBasic and a bit of research has brought me here.

    PicBasic does look much more my sort of thing so I downloaded the demo, first thing I did was load up some samples for the 16F887 (I have one here to play with so thought it ideal learning) however I cannot seem to even compile the sample code that comes with PicBasic!..... they all seem to give "syntax errors" and in most samples it happens at the ANSEL and ANSELH lines.

    I am selecting the correct PIC from the drop down box before compiling, what else should I be doing?..... it's very frustrating when you can't even get the demos to work :-(.

    Thanks

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    967


    Did you find this post helpful? Yes | No

    Default Re: Struggling Newbie

    Welcome to the world of Picbasic

    The easiest way is to post the offending code so that anyone here might spot the problem and suggest remedies.

    Regards

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


    Did you find this post helpful? Yes | No

    Default Re: Struggling Newbie

    Hi,
    I just tried compiling a couple of the examples in the LABX2-16F887 folder and it seems to work fine.

    I know you said that you have the correct device selected but make sure you have the 16F887 and not the 16F877. Having the 877 selected produces syntax errors due to the fact that ANSEL and ANSELH doesn't exist in that device.

    /Henrik.

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