Topic: ZXpand-AY now has mouse support!  (Read 3774 times)

Author Message

0 Members and 1 Guest are viewing this topic.

Offline sirmorris

  • Atari ST
  • *****
  • Posts: 535
  • Kudos 21
    • View Profile
ZXpand-AY now has mouse support!
« on: March 12, 2012, 08:57:13 PM »
I always wanted to be able to do this  8)

http://youtu.be/zPiPcgE3Gzs
-=-= Will Hack Hardware For Beer =-=-

Offline Scarlettkitten

  • Enjoy the silence
  • Administrator
  • Amiga 4000
  • ******
  • Posts: 2025
  • Kudos 31
  • Queen of the 3DO people
    • View Profile
Re: ZXpand-AY now has mouse support!
« Reply #1 on: March 12, 2012, 09:08:24 PM »
Nice :) I'm looking for a kempston mouse solution for the spectrum atm as originals + interface fetch a lot of money.

Offline AndyRCM

  • >=))))º> GO FEED THE FISH! <º((((=<
  • Administrator
  • Amiga 4000
  • ******
  • Posts: 9675
  • Kudos 50
  • Gender: Male
  • Manic Jet Set Willy
    • View Profile
    • Retro Computer Museum
Re: ZXpand-AY now has mouse support!
« Reply #2 on: March 12, 2012, 09:23:13 PM »
You do realise you CANT do this on a ZX81!

A

PML!
"I could see the faces of those who led pissing themselves laughing" - Funeral Pyre by The Jam

Offline sirmorris

  • Atari ST
  • *****
  • Posts: 535
  • Kudos 21
    • View Profile
Re: ZXpand-AY now has mouse support!
« Reply #3 on: March 12, 2012, 09:41:42 PM »
<facepalm> gaaah no-one told me that!  :-\

 ;D
-=-= Will Hack Hardware For Beer =-=-

Offline Prime

  • CPC 464
  • ***
  • Posts: 230
  • Kudos 12
    • View Profile
Re: ZXpand-AY now has mouse support!
« Reply #4 on: March 13, 2012, 12:50:34 PM »
Can't remember if you have any spare I/O pins on the PIC, but don't see why you couldn't use the joystick ones, but should be possible to implement PS/2 protocol, as I figure PS/2 (or dual USB & PS/2) mice are prolly easier to get hold of than Atari / Amiga....

Cheers.

Phill.

Offline sirmorris

  • Atari ST
  • *****
  • Posts: 535
  • Kudos 21
    • View Profile
Re: ZXpand-AY now has mouse support!
« Reply #5 on: March 13, 2012, 01:08:31 PM »
Hmm, you may be right, Phill! The difference would be the need to make an adapter, but in the long run it might be quicker to deal with the ps2 protocol than it would to decode the quadrature signals..
-=-= Will Hack Hardware For Beer =-=-

Offline Prime

  • CPC 464
  • ***
  • Posts: 230
  • Kudos 12
    • View Profile
Re: ZXpand-AY now has mouse support!
« Reply #6 on: March 13, 2012, 02:20:30 PM »
Hmm, you may be right, Phill! The difference would be the need to make an adapter, but in the long run it might be quicker to deal with the ps2 protocol than it would to decode the quadrature signals..


I have some ps/2 protocol code that might help, it's for the AVR but is pretty much standard C so should port to the PIC fairly easily I would think.

Cheers,

Phill.

Offline sirmorris

  • Atari ST
  • *****
  • Posts: 535
  • Kudos 21
    • View Profile
Re: ZXpand-AY now has mouse support!
« Reply #7 on: March 13, 2012, 02:23:21 PM »
Thanks - I'll take a look please. There's the ps2 mouse to atari/amiga computer interface too. That somes with PIC source so it would be good to cross-reference.
-=-= Will Hack Hardware For Beer =-=-

Offline Phu

  • RCM Workshop
  • Committee
  • Amiga 4000
  • *
  • Posts: 2084
  • Kudos 41
  • Gender: Female
  • Pay no attention to that PCB....
    • View Profile
    • ZX Spectrum Laptop Project
Re: ZXpand-AY now has mouse support!
« Reply #8 on: March 14, 2012, 12:36:45 PM »
There's the ps2 mouse to atari/amiga computer interface too. That somes with PIC source so it would be good to cross-reference.

It also sucks.

One of my many projects is writing a replacement PS/2 driver because this one has so many bugs:

1) Its packet processing is in an odd order, viz: if you move the mouse in a circle, the pointer tends to move in a square.
2) The mickeys-to-pixel ratio seems rather low, meaning it tends to be rather slow for most people's tastes.
3) Dodgy reset logic - if the mouse is in intellimouse mode, it doesn't detect and reset to PS/2 mode. This is a major problem when KVMs are involved.
3b) Sometimes it doesn't even start up, especially if it's powered up with the "wrong" timing. Result is you either get no mouse, or an erratic mouse.

-- Richard
8 End of File, RCM:1

Offline Prime

  • CPC 464
  • ***
  • Posts: 230
  • Kudos 12
    • View Profile
Re: ZXpand-AY now has mouse support!
« Reply #9 on: March 14, 2012, 08:54:35 PM »
Well I've given Sirmorris access to my ps/2 keyboard source which works pretty well and is being used in several keyboard interfaces. The physical mouse protocol is the same, so should also be usabile for that too, he'd just need to work on the high level mouse protocol. Plus my code is in C which the PIC in the ZXpand is programmed in, IIRC the other project uses PIC assembler.

Cheers,

Phill