Welcome, Guest. Please login or register.


Author Topic: Why not directly use the internal serial port to operate a mouse? (Read 3932 times)

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
The old mouse of PCs has a very slow and easy protocol, 1200 bauds,7 bits data, 1 stop bit, no parity. It only sends data while is active(some movement, buttons pulsed or released). The message is only three bytes long and easy to interpret, as directly gives positive or negative movement from the X or Y axis, unlike the Atari protocol (Amiga), which requires a further translation from  analog to digital.

The other day I found an interesting article in the Dutch magazine ENTERface Jun-Jul 1987(thanks Zozo) about MIDI protocol, which is a subject that interests me although I don´t interpret any instrument...

They managed to communicate with an external MIDI instrument with the EP serial bus, IN and OUT (a pity they talk of a demo MIDI.BAS but there is no listing, and the continuation in the August edition is missing). They achieved the necessary 31250 bauds  to work by the use of machine code, NOPs and some delay loops.
------
But the serial mouse is so slow that his reading could be made by interrupts calling directly EXOS, isn't it?

What are the benefits and necessity of the Gyula Mészáros' serial card to make the mouse work?
---------------------------

El viejo ratón de PC tiene un protocolo muy lento y fácil, 1200 baudios , 7 bits de datos , 1 bit de parada , sin paridad . Sólo envía datos mientras está activo ( algún movimiento, botones pulsados ​​o liberados) . El mensaje es de sólo tres bytes de longitud y de fácil interpretación , da directamente el movimiento positivo o negativo del eje X o Y , a diferencia del protocolo de Atari ( Amiga) , que requiere una traducción posterior de analógico a digital.

El otro día me encontré con un interesante artículo en la revista holandesa ENTERface Jun-Jul 1987 ( gracias Zozo ) sobre el protocolo MIDI , que es un tema que me interesa , aunque no interpreto ningún instrumento ...

Se las arreglaron para comunicarse con un instrumento MIDI externo por el bus serie EP , IN y OUT (una lástima que hablan de una demostración MIDI.BAS pero no hay listado, y falta la continuación en la edición de agosto) . Lograron los 31.250 baudios necesarios para poder trabajar, por el uso de código de máquina , NOPs y algunos bucles de retardo.
----
Pero el ratón de serie es tan lento que su lectura puede ser hecha por interrupciones llamando directamente a EXOS , ¿no es así ?

¿Cuáles son los beneficios y la necesidad de la tarjeta serie de Gyula Mészáros para hacer funcionar un ratón ?

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14723
  • Country: hu
    • http://enterprise.iko.hu/
Quote from: gflorez
What are the benefits and necessity of the Gyula Mészáros' serial card to make the mouse work?
The Enterprise serial port are fully software driven, need a lot of CPU time, the main program will be slow and not running smoothly. He wrote in the Hungarian article, tried this before started to develope the HW serial port.
« Last Edit: 2014.April.21. 13:13:19 by szipucsu »

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Now, I understand, no matter the Midi program completely occupying the time of the Z80, but for the mouse is necessary that the serial port works transparent to the system.


And how about the Boxsoft mouse?, it seems to me like a mid-solution, translating mouse movements to joystick movements, isn't it?


Sorry if this tread seems repetitive.

-------------
Ya, entiendo, no importa que el programa Midi entretenga completamente al Z80, pero para el ratón es necesario que el puerto serie funcione transparente para el sistema.

¿Y que tal el ratón de Boxsoft? parece una solución intermedia, un traductor de movimientos de ratón a movimientos de joystick, ¿no?

Siento que este hilo sea una repetición.