Urgent help need,,,some one please help program not compling....syntax erro


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

    Question Urgent help need,,,some one please help program not compling....syntax erro

    A PIC16F84 type microcontroller is used with a 4 MHz crystal

    ‘ Author: Dogan Ibrahim
    ‘ Date: January, 2005
    ‘ Compiler: PicBasic


    ‘ Modifications
    ‘ =======

    ‘************************************************* ************************


    ‘ Symbols

    Symbol PORTB = $06 ‘ PORTB address
    Symbol TRISB = $86 ‘ TRISB address
    Symbol J = B0
    POKE TRISB, 0 ‘ PORTB is output

    ‘ Move the robot forward for 4 seconds

    FOR J = 1 TO 174
    PULSOUT 0, 170
    PULSOUT 1, 130
    PAUSE 20
    NEXT

    ‘ Wait for 5 seconds

    PAUSE 5000

    ‘ Move the robot backward for 3 seconds

    FOR J = 1 TO 130
    PULSOUT 0, 130
    PULSOUT 1, 170
    PAUSE 20
    NEXT J
    END

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


    Did you find this post helpful? Yes | No

    Default Re: Urgent help need,,,some one please help program not compling....syntax erro

    Looks like a quote problem ....
    ` vs '

    replace ` with ' or with ;
    Steve

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

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,597


    Did you find this post helpful? Yes | No

    Default Re: Urgent help need,,,some one please help program not compling....syntax erro

    If you get more errors, post the errors so it's easier to make suggestions.

    Robert

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