|
Forum Index : Microcontroller and PC projects : Heartbeat on the 2350B
| Author | Message | ||||
| OA47 Guru Joined: 11/04/2012 Location: AustraliaPosts: 1010 |
I am a little confused here (AGAIN!!) Here is one of the notes from the Version 6 info. I have initially used OPTION HEARTBEAT ON to verify that the MMBASIC 6.00.03 was working then OPTION HEARTBEAT OFF and when I tried to use Pin35 (GP25) I get: I even tried OPTION HEARTBEAT DISABLE but I still get the same error. Any suggestions? OA47 |
||||
| Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 8232 |
You might need SETPIN GP25 DOUT now. (Please avoid using the Pin35 reference if you can - GP25 can be on different pin numbers on different modules!) . Edited 2025-09-28 17:33 by Mixtel90 Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
| OA47 Guru Joined: 11/04/2012 Location: AustraliaPosts: 1010 |
Mick, I have tried SetPin 35, DOUT but made no difference. I want to overcome this saga as I have just received a shipment of PCB's using that pin as an INPUT as I thought from the notes above all was good with this pin. OA47 |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10531 |
Use the gpn variant. Pin numbers refer to the Pico. The rp2350 uses the same gpno/pin number mapping and pin 35 is vref. See the manual for the pseudo pin number for gp25 |
||||
| OA47 Guru Joined: 11/04/2012 Location: AustraliaPosts: 1010 |
Thanks Peter, the reason I used the pin numbers is because I had them in an array and loaded them in a for next loop. I will recode and try the GPXX and see how it goes. OA47 |
||||
| Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 8232 |
Peter beat me to it. :) . Edited 2025-09-28 17:55 by Mixtel90 Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
| OA47 Guru Joined: 11/04/2012 Location: AustraliaPosts: 1010 |
Using SetPin GP25 instead of SetPin 35 has worked ok. Thankyou OA47 |
||||
| OA47 Guru Joined: 11/04/2012 Location: AustraliaPosts: 1010 |
I am still not out of the woods, is there a way to use the PIN(GPnn) function where nn is a variable? My previous code just used the pin numbers which were read from an array. OA47 |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2786 |
Haven't got a 2350B but this works for the rest. Array(xx) = MM.INFO(PINNO GPnn) Edited 2025-09-30 09:04 by phil99 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |