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: GermanyPosts: 396 |
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 KingdomPosts: 9122 |
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 KingdomPosts: 6798 |
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: GermanyPosts: 396 |
Thank you, I thought if they are already in use there might be problems later on ... Greetings Daniel |
||||
Print this page |