Welcome, Guest. Please login or register.


Author Topic: EnterMice (Joy & PS/2 mouse interface) (Read 242824 times)

Offline gflorez

  • EP addict
  • *
  • Posts: 3615
  • Country: es
    • Támogató Támogató
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #105 on: 2015.June.16. 10:39:24 »
Yes, "joystick mode" is complicate, as the mouse must use again the J column instead of K column for the directions. Also the principal Fire Button on "Joystick mode" has to be in J column to allow old games to read it. I think the best solution is, when in "joystick mode", to move the "Right Mouse Button" from L column to J column, leaving the "Left Mouse Button" on K column permanently. The original Boxsoft interface searches for the "Right Mouse Button" on L column, but no problem as it is "Mouse mode".

In "joystick mode" the "Joy1" port of the interface conflicts with the mouse port if you move a plugged Joystick at the same time. I think only disabling the common at Joy1 will work, but it's not a big problem if you leave quiet your hands...

Can it be done?
« Last Edit: 2015.June.16. 12:09:10 by gflorez »

Offline pear

  • EP lover
  • *
  • Posts: 825
  • Country: pl
  • Z80 only
    • Támogató Támogató
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #106 on: 2015.June.16. 13:09:16 »
In the arrangement with priority, I still have one free input in the PLD.
It can be used to turn mouse in "Joystick Mode" and disabling Joystick 1 at this time.
Of course, the matrix will be more complicated, but I still have more than half of the available resources in the PLD.

EDIT:
I managed to find simple way.
The mouse in "joystick mode" is switched to the joystick 1 by one signal.
Of course, the MCU also needs to know that has to work in joystick mode emulation.

JM1 = 0 - joystick 1 and mouse with priority
JM1 = 1 - mouse working in "joystick mode", joystick 1 disconnected with no unpluged
« Last Edit: 2015.June.16. 21:14:31 by pear »

Offline gflorez

  • EP addict
  • *
  • Posts: 3615
  • Country: es
    • Támogató Támogató
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #107 on: 2015.June.16. 22:42:35 »
I've been thinking.... dangerous....

Now I know that only disabling the common on Joy1 is insufficient to isolate completely that port.

It is because internally in the joystick two direction switches  can be combined when the stick is on diagonals.  Then the two signals of the switches are joined by the common even if it is not connected.

Then, in "Joystick mode", although only pressed one of these virtual switches by the MCU, the Enterprise will read a diagonal.

Offline pear

  • EP lover
  • *
  • Posts: 825
  • Country: pl
  • Z80 only
    • Támogató Támogató
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #108 on: 2015.June.17. 06:17:16 »
I did not disable the common on Joystick 1, just disconnect all joystick signals from KB_J line.
In one moment to the KB_J line only the joystick or mouse signals are connected.
The buffer BUFT is active at low level, and BUFE at high.
There is no right to interfere.

Offline gflorez

  • EP addict
  • *
  • Posts: 3615
  • Country: es
    • Támogató Támogató
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #109 on: 2015.June.17. 09:10:09 »
But you don't disconnect the direction lines on Joy1 port. Is inside the connected Joystick where two direction lines joined in diagonal can be bypassed by the common(the disconnected  KB_J line).

This can affect the behaviour of the mouse in "joystick mode" if somebody fiddles a joystick plugged on Joy1 port.

I'm sorry. I'm only looking for perfection.....

Again, you don't need to disconnect all four direction lines, only two of them to avoid the use of diagonals. But that is not neat...

Offline pear

  • EP lover
  • *
  • Posts: 825
  • Country: pl
  • Z80 only
    • Támogató Támogató
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #110 on: 2015.June.17. 09:51:29 »
Don't worry.
Both joysticks and mouse lines are connected by a separate three-state buffers.
It is not possible to the signals "turned around" or shorted :)
On external sockets for joysticks common line is the ground, not KB_J.
Thanks to that, on the occasion, the AutoFire will be fully serviced.
« Last Edit: 2015.June.17. 09:58:58 by pear »

Offline gflorez

  • EP addict
  • *
  • Posts: 3615
  • Country: es
    • Támogató Támogató
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #111 on: 2015.June.17. 10:09:54 »
Now I realise it, thanks.

I had forgotten for a moment the strange control ports the Enterprise has, and the complicate task to make them standard.

Offline pear

  • EP lover
  • *
  • Posts: 825
  • Country: pl
  • Z80 only
    • Támogató Támogató
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #112 on: 2015.June.21. 16:05:18 »
Approaching holidays. This week I'm going to order Xilinx chips to EnterMice.
Delivery time is a few weeks, so I would like to know the indicative count that will be needed.
In other words, how many potential buyers for the purchase of a ready interface ?
At least orientation. Chips are packaged by 10 pieces.

Offline gflorez

  • EP addict
  • *
  • Posts: 3615
  • Country: es
    • Támogató Támogató
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #113 on: 2015.June.21. 17:35:03 »
I would want two. They will be my dream come true....

Offline fatbob_gb

  • Newbie
  • Posts: 16
  • Country: gb
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #114 on: 2015.June.21. 18:00:28 »
I would like one please

Offline Jungsi

  • Beginner
  • *
  • Posts: 25
  • Country: de
    • Jungsis Corner
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #115 on: 2015.June.21. 18:21:25 »
I also would like one!
Jungsis Corner - http://www.jungsi.de

Offline BruceTanner

  • EP lover
  • *
  • Posts: 609
  • Country: gb
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #116 on: 2015.June.21. 18:31:08 »
One for me too please! :smt041

Online Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14779
  • Country: hu
    • http://enterprise.iko.hu/
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #117 on: 2015.June.21. 19:01:56 »
I need least two.

About how many will be the price?

Offline pear

  • EP lover
  • *
  • Posts: 825
  • Country: pl
  • Z80 only
    • Támogató Támogató
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #118 on: 2015.June.21. 20:29:19 »
Tomorrow I will give the estimated cost of the interface.

Offline Bagpuss22

  • EP fan
  • *
  • Posts: 167
  • Country: gb
Re: EnterMice (Joy & PS/2 mouse interface)
« Reply #119 on: 2015.June.21. 22:59:09 »
Hi Pear,

Definitely one here.....

Russ