Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:58 28 Oct 2025 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 : Heartbeat on the 2350B

Author Message
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 1010
Posted: 06:54am 28 Sep 2025
Copy link to clipboard 
Print this post

I am a little confused here (AGAIN!!) Here is one of the notes from the Version 6 info.

  Quote  Changes from 6.00.01

Bugs fixed
Various fixes to OPTION LIST
Fixes bug in forward references in PIO assembler when the starting line number is > 1
Fixes bug in PRINT @(x,y) when outputting to a computer console
By default disables HEARTBEAT and enables access to all pins on RP2350B


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:

  Quote  Error : Pin 35/VREF is invalid


I even tried OPTION HEARTBEAT DISABLE but I still get the same error.

Any suggestions?
OA47
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8232
Posted: 07:32am 28 Sep 2025
Copy link to clipboard 
Print this post

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: Australia
Posts: 1010
Posted: 07:37am 28 Sep 2025
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10531
Posted: 07:45am 28 Sep 2025
Copy link to clipboard 
Print this post

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: Australia
Posts: 1010
Posted: 07:48am 28 Sep 2025
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 8232
Posted: 07:53am 28 Sep 2025
Copy link to clipboard 
Print this post

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: Australia
Posts: 1010
Posted: 09:05pm 28 Sep 2025
Copy link to clipboard 
Print this post

Using SetPin GP25 instead of SetPin 35 has worked ok.

Thankyou
  OA47
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 1010
Posted: 10:31pm 29 Sep 2025
Copy link to clipboard 
Print this post

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: Australia
Posts: 2786
Posted: 11:02pm 29 Sep 2025
Copy link to clipboard 
Print this post

Haven't got a 2350B but this works for the rest.
Array(xx) = MM.INFO(PINNO GPnn)

  Quote  MM.INFO(PINNO GPnn)
Returns the physical pin number for a given GP number. GPnn can be an unquoted string (GP01), a string literal(“GP01”) or a string variable. Ie, A$=”GP01”: MM.INFO(PINNO A$)

Edited 2025-09-30 09:04 by phil99
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025