Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:53 29 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : SETPIN "Incorrect syntax" problem...

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 08:51pm 29 Mar 2014
Copy link to clipboard 
Print this post

Hi folks.


If I use the line:

SETPIN D3,6,ResetP

that works fine for enabling an interrupt on pin D3.

BUT, if I use the line:

SETPIN D3,0,ResetP

i get an invalid syntax error.

In the manual, page 34 under the SETPIN command, it says that if I use 0 for cfg, this should disable the interrupt - "0 - Not configured or inactive"

Any idea why this is not working?

Full-size colour MM, version 4.4
Edited by Grogster 2014-03-31
Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 09:35pm 29 Mar 2014
Copy link to clipboard 
Print this post

OK, looks like you don't need to specify the interrupt routine when you disable the pin.

SETPIN D3,0,ResetP throws an error, but SETPIN D3,0 does not, and still seems to work OK as far as disabling the interrupt on that pin.

Manual update perhaps?
Smoke makes things work. When the smoke gets out, it stops!
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024