Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:51 27 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 : Forced to enter 4 Pins? (OPTION COUNT pin1, pin2, pin3, pin4)

Author Message
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 396
Posted: 10:49am 28 Sep 2023
Copy link to clipboard 
Print this post

Ahh me again,

of course I first looked into the manual, but it states only:

Specifies which pins are to be used as Count inputs.
By default these are GP6, GP7, GP8 and GP9.
The SETPIN command defines the Counter mode.
This command must be run at the command prompt (not in a program).


Problem: I don't have as many Pins left. My project consumes already all pins and
GP2 (pin 4) I have reserved for this job. Why I am forced to enter 4 Pins?

I lerned from another topic that it is possible to leave them "blank" like:

OPTION COUNT , , ,GP2
 

but then I get an SYNTAX ERROR...

I am afraid by just taking "random" Pins (which are already used by my program) I am introducing other conflicts or errors.

I just need one Pin as a Counting, and that's GP2, is that possible?

Best wishes and forgive my noobness! Sadly the manual doesn't tell me about that specific case..    


Daniel
Edited 2023-09-28 20:51 by Amnesie
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9122
Posted: 11:13am 28 Sep 2023
Copy link to clipboard 
Print this post

Just specify any pins. If you don't use them as count pins it is completely benign.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 11:15am 28 Sep 2023
Copy link to clipboard 
Print this post

Peter answered it. :)
Edited 2023-09-28 21:16 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 396
Posted: 02:07pm 28 Sep 2023
Copy link to clipboard 
Print this post

Thank you, I thought if they are already in use there might be problems later on ...

Greetings
Daniel
 
Print this page


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

© JAQ Software 2024