Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:57 11 Jul 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 : CMM2 gen. 1 - how to connect a ps/2 mouse

Author Message
hhtg1968
Senior Member

Joined: 25/05/2023
Location: Germany
Posts: 136
Posted: 03:02pm 09 Jan 2025
Copy link to clipboard 
Print this post

Hello. I want to connect a ps/2 mouse to my cmm2 gen1.

in the documentation i found an doc image.





i can connect to pin 33 and 32 and ground on the gpio. but where can i connect the 5v from the mouse?

there are 3.v pins, no 5v pins...

sorry for the silly question.

greetings from germany.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4038
Posted: 03:50pm 09 Jan 2025
Copy link to clipboard 
Print this post

I think it means you need to provide 5V.

John
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7858
Posted: 04:05pm 09 Jan 2025
Copy link to clipboard 
Print this post

Pin 2 or pin 4 (manual page 10)

TBH I don't remember the CMM2 having any support for PS2 at all...

.
Edited 2025-01-10 02:12 by Mixtel90
Mick

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

Joined: 05/03/2018
Location: Netherlands
Posts: 5056
Posted: 04:07pm 09 Jan 2025
Copy link to clipboard 
Print this post

Hi

+5V is available at pin 2 and 4 of the 40 pin connector.

Volhout

PicomiteVGA PETSCII ROBOTS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7858
Posted: 06:38pm 09 Jan 2025
Copy link to clipboard 
Print this post

My brain must be going...
Of course the CMM2 supports direct connection of a PS2 mouse. Technically it's a USB mouse that supports the PS2 protocol though. It works fine - I modified my CMM2. It's on channel 0.
Seems like such a long time ago now....
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
hhtg1968
Senior Member

Joined: 25/05/2023
Location: Germany
Posts: 136
Posted: 08:22pm 09 Jan 2025
Copy link to clipboard 
Print this post

  Volhout said  Hi

+5V is available at pin 2 and 4 of the 40 pin connector.

Volhout



Thank you very much.
 
hhtg1968
Senior Member

Joined: 25/05/2023
Location: Germany
Posts: 136
Posted: 09:11am 10 Jan 2025
Copy link to clipboard 
Print this post

And it runs well...





you can see the mouse "cursor"...

Thanks again.
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4301
Posted: 09:26am 10 Jan 2025
Copy link to clipboard 
Print this post

Just an observation @hhtg1968 but NEXT statements in MMBasic don't require the variable name, e.g. you can just write:

For i = 1 To 10
 For j = 20 To 30
   Print i, j
 Next ' No j required
Next ' No i required


And by doing so you would save 110 variable lookups, which is a worthwhile saving as variable lookup is quite an expensive operation.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Chopperp

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1095
Posted: 11:15am 10 Jan 2025
Copy link to clipboard 
Print this post

  Quote  NEXT statements in MMBasic don't require the variable name


From the manual
  Quote  If no ‘counter-variable’ is specified the NEXT will default to the innermost loop.


Thanks Tom. I didn't know that either
ChopperP
 
hhtg1968
Senior Member

Joined: 25/05/2023
Location: Germany
Posts: 136
Posted: 10:26pm 10 Jan 2025
Copy link to clipboard 
Print this post

  thwill said  Just an observation @hhtg1968 but NEXT statements in MMBasic don't require the variable name, e.g. you can just write:

For i = 1 To 10
 For j = 20 To 30
   Print i, j
 Next ' No j required
Next ' No i required


And by doing so you would save 110 variable lookups, which is a worthwhile saving as variable lookup is quite an expensive operation.

Best wishes,

Tom


thank you for the notice. i had measured it, it is actually faster...
 
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