Welcome, Guest. Please login or register.


Author Topic: BoxSoft Mouse Interface (Read 72460 times)

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14723
  • Country: hu
    • http://enterprise.iko.hu/
Re: BoxSoft Mouse Interface
« Reply #45 on: 2014.October.14. 14:25:45 »
I still need the Strobe(RTS) signal from SERIAL port so it will do the selection mouse-joystick as in the original, but without the embarrassing commutation of the left button.
Yes. The problem with the shared line come from the C64 wiring of the Neos.

Offline Z80System

  • EP addict
  • *
  • Posts: 3848
  • Country: hu
Re: BoxSoft Mouse Interface
« Reply #46 on: 2014.October.14. 14:26:42 »
Quote
I still need the Strobe(RTS) signal from SERIAL port

I just realized, you know the name of the "Strobe(RTS)" signal of the boxsoft <-> EP communication ...

Do you know all of the details of the boxsoft <-> EP communication ?

Where can I find those details ?
Z80 System

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: BoxSoft Mouse Interface
« Reply #47 on: 2014.October.14. 15:47:31 »
You have all the details yet, Zozo assured Neos has the MSX protocol as he had read the Mouse-Cheese disassembly of the C64 . But you can see the disassembly of the mouse.xr version Hisoft.

It's a four bit parallel protocol with a strobe signal and, as the JOY ports of the EP can only read but not send data, the boxsoft uses RTS from the sparsely utilized SERIAL port.

On the other side, I found the schematics of a MSX Phillips mouse and there they name "STOROBE" to that signal.
« Last Edit: 2014.October.14. 23:46:22 by gflorez »

Offline Z80System

  • EP addict
  • *
  • Posts: 3848
  • Country: hu
Re: BoxSoft Mouse Interface
« Reply #48 on: 2014.October.14. 15:57:34 »
Quote
Zozo assured Neos has the MSX protocol

Is the MSX protocol achived on joystick connectors, too ?

As far as I know EP can only read 3 bits on a joystick port, and not 4.

So how does it read the 4 bits ?

How does exactly the strobe signal work ?

On what pins does the EP want and which bits of the values of MSX protocol ?

I would not like to read mouse.xr dissassembly or such things ... If somebody already did that ... Nobody did that, yet ?
Z80 System

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: BoxSoft Mouse Interface
« Reply #49 on: 2014.October.14. 16:13:41 »
Then, in this MSX faq page they say this about the protocol:

"The system works as follows:

The MSX Mouse sends 2 signed bytes to the computer, X and Y. This byte must be added to the current X and Y location, so it is a relative movement. So X=0 means X is the same, X=1 means X=+1 and X=255 means X=-1. This is very easy to implement, however it poorly supports mouse speed control, because it's a digital signal. Well, anyways, those 2 bytes are transferred in 4 parts. The computer reads pins 1-4 four times, afterwards signalling the mouse to ready the next 4 bits by complementing pin 8."


------------
The protocol needs the signals to be in a specific  pin, as uses combined the wires Up, Down, Left, Right(pins 1 to 4), to send a 4 bit number four times to do two signed bytes. And then Strobe(pin 8 on MSX but pin6 on Neos) is needed to do the transaction.

The problem with C64(new Atari standard) was it had the 5v pin at  pin 7, not at pin 5 as MSX do so, to make the Neos work on the C64, they rearranged some pins of the standard to avoid a short circuit....
« Last Edit: 2014.October.14. 16:20:52 by gflorez »

Offline Z80System

  • EP addict
  • *
  • Posts: 3848
  • Country: hu
Re: BoxSoft Mouse Interface
« Reply #50 on: 2014.October.14. 16:19:31 »
This is okay, but this does not specify the strobe sign, and the 4 bit partition either ...

And the bit partition must be different on EP, because EP will not read 4 bits paralell ... I think ...
Z80 System

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14723
  • Country: hu
    • http://enterprise.iko.hu/
Re: BoxSoft Mouse Interface
« Reply #51 on: 2014.October.14. 16:19:56 »
MSX mouse protocol (don't care with pin numbers)

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: BoxSoft Mouse Interface
« Reply #52 on: 2014.October.14. 16:22:34 »
In fact EP reads five pins in parallel if you count fire....

Offline Z80System

  • EP addict
  • *
  • Posts: 3848
  • Country: hu
Re: BoxSoft Mouse Interface
« Reply #53 on: 2014.October.14. 16:23:02 »
Quote
This is okay, but this does not specify the strobe sign, and the 4 bit partition either ...

And the bit partition must be different on EP, because EP will not read 4 bits paralell ... I think ...

But these are questions, still ...
Z80 System

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14723
  • Country: hu
    • http://enterprise.iko.hu/
Re: BoxSoft Mouse Interface
« Reply #54 on: 2014.October.14. 16:24:48 »
But these are questions, still ...
What is the problem? Read one and one and one and last one.

Offline Z80System

  • EP addict
  • *
  • Posts: 3848
  • Country: hu
Re: BoxSoft Mouse Interface
« Reply #55 on: 2014.October.14. 16:25:49 »
Quote
In fact EP reads five pins in parallel if you count fire....

As far as I know, unfortunately it does not.

It can read only 3 bits PARALELL.

In fact, when somebody read the five "input" of a joystick on EP,

they read that on a single bit, in SERIAL way.
Z80 System

Offline Z80System

  • EP addict
  • *
  • Posts: 3848
  • Country: hu
Re: BoxSoft Mouse Interface
« Reply #56 on: 2014.October.14. 16:28:02 »
Quote
What is the problem? Read one and one and one and last one.

With a serial way ? Like PS/2 ?

Wich will be the first bit ? In the stream ? In a message ?
Z80 System

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: BoxSoft Mouse Interface
« Reply #57 on: 2014.October.14. 16:30:15 »
No, you read all switches in one row with an "IN A, (port)". isn't it?

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14723
  • Country: hu
    • http://enterprise.iko.hu/
Re: BoxSoft Mouse Interface
« Reply #58 on: 2014.October.14. 16:32:18 »
Wich will be the first bit ?
What you want.
Mouse put 4 bit to the joy 4 direction wire.
4 bit is stand.
You can read 0,1,2,3. Or 3,2,1,0. Or 0,3,2,1 Or 2,3,1,0 Or...

Offline Z80System

  • EP addict
  • *
  • Posts: 3848
  • Country: hu
Re: BoxSoft Mouse Interface
« Reply #59 on: 2014.October.14. 16:33:43 »
Quote
No, you read all switches in one row with an "IN A, port". isn't it?

No, with one "port out" and one "port in", you can read 3 bits.

In practice, games read the 5 joystick input in SERIAL way,

with 5 port out and 5 port in.
« Last Edit: 2014.October.14. 16:44:19 by Z80System »
Z80 System