PDA

View Full Version : Urgent help need,,,some one please help program not compling....syntax erro



wahidPIC16
- 27th March 2012, 19:43
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

mister_e
- 27th March 2012, 21:41
Looks like a quote problem ....
` vs '

replace ` with ' or with ;

Demon
- 27th March 2012, 22:21
If you get more errors, post the errors so it's easier to make suggestions.

Robert