Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Syntax Error with PBP and Mplab

Status
Not open for further replies.

simple&cheap

New Member
I got a Syntax Error on line 26 of this code. Line 26 is SF=0
SF should be BUZ. if I change it to buz and try compiling
I get unable to access file
Error processing cod file
if I change it back to SF I get the line 26 error. any help

SYMBOL TRG = GPIO.0
SYMBOL Camswitch = GPIO.1
SYMBOL SENSOR = GPIO.2
SYMBOL BUZ = GPIO.5


TRG= 1
Camswitch = 0
SF=0
 
You've already assigned BUZ to a port. If you are trying to make the port go low try "LOW BUZ" instead of BUZ=0.
 
Simple
could you post all your code for review?
 
sorry for not getting back i had to go out of town. found the problem the code was written using CDlite I could fix it there. but not in PBP. thanks again and I'm sure I will need more help in the future :oops:
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top