Error's with clockx.bas from MELABS


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2005
    Posts
    14

    Default Error's with clockx.bas from MELABS

    I downloaded the clockx.bas program from MELABS website and get the following errors when I try to compile.

    error line 33: syntax error. (Line 33 is shown below)
    OPTION_REG = $55 ' Set TMR0 configuration and enable PORTB pullups

    Anyone know why?

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    wich pic?

    wich version: PICBASIC PRO or PICBASIC
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Aug 2005
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    I am using the PIC 18f252-17SP and PIC Basic PRO

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    There's no OPTION_REG register for those PIC. you'll have to open the 16F877 datasheet to know what it do, then translate it for the 18F252
    Last edited by mister_e; - 7th September 2006 at 14:26.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Compilation errors - strange
    By tetanus4 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th October 2009, 19:04
  2. 18F4431 and Melabs USB programmer ?
    By AndrewC in forum General
    Replies: 14
    Last Post: - 27th March 2009, 05:20
  3. Picbasic Pro Demo assembly errors
    By mikeRho in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 2nd January 2008, 06:41
  4. Microcode Studio Plus compile/assmebly errors
    By mikehagans in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th February 2006, 21:31
  5. Question for all that use MELABS PICBASIC PRO
    By oskuro in forum Off Topic
    Replies: 2
    Last Post: - 24th March 2005, 17:15

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