Welcome, Guest. Please login or register.


Author Topic: BoxSoft Mouse Interface (Read 72454 times)

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14723
  • Country: hu
    • http://enterprise.iko.hu/
Re: BoxSoft Mouse Interface
« Reply #75 on: 2014.October.15. 11:33:26 »
The cartridge hardware was designed to be hot-swappable - that is why the power "fingers" on the edge connector are longer than the others (power is connected first/disconnected last).
I also guess it is hot swappable, because the power pins. Now it is sure, thanks for the info!

Quote
But you have probably noticed when at the "ok" prompt you can unplug the cartridge and plug it back in again and then just continue as though nothing had happened
:shock:
I will try it!

Offline Z80System

  • EP addict
  • *
  • Posts: 3848
  • Country: hu
Re: BoxSoft Mouse Interface
« Reply #76 on: 2014.October.15. 11:36:12 »
Quote
But you have probably noticed when at the "ok" prompt you can unplug the cartridge and plug it back in again and then just continue as though nothing had happened (as long as you have nothing else in the cartridge ROM with interrupt code!)

Wow!

I do not think anybody tried that thing, before now ... :)
Z80 System

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14723
  • Country: hu
    • http://enterprise.iko.hu/
Re: BoxSoft Mouse Interface
« Reply #77 on: 2014.October.15. 11:48:53 »
I do not think anybody tried that thing, before now ... :)
I tried but with German cartridge, with the additional BRD extension, then the system froozen :oops:
Now try again with UK only :-)

Online BruceTanner

  • EP lover
  • *
  • Posts: 607
  • Country: gb
Re: BoxSoft Mouse Interface
« Reply #78 on: 2014.October.15. 11:56:23 »
I tried but with German cartridge, with the additional BRD extension, then the system froozen :oops:
Now try again with UK only :-)

I don't think it will work if anything in the ROM hooks into EXOS, but with the the original plain BASIC cartridge and EXOS internal ROM it should. It works because when it is at the "ok" prompt it is inside the editor device executing 100% from the internal ROM, and only returns to BASIC when you press a key (or maybe you can even type and it just returns to BASIC when you press ENTER?)

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: BoxSoft Mouse Interface
« Reply #79 on: 2014.October.15. 12:02:51 »
In this page someone has made yet the PS/2 to MSX mouse adaptor with an Arduino, and  the code is there.

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: BoxSoft Mouse Interface
« Reply #80 on: 2014.October.15. 12:06:23 »
Even it seems to work with USB mouses.


Edit: No, only if they work in PS/2 mode...

Offline Z80System

  • EP addict
  • *
  • Posts: 3848
  • Country: hu
Re: BoxSoft Mouse Interface
« Reply #81 on: 2014.October.15. 12:10:41 »

From the page:

Quote
Usually USB-mice that are produced before 2010 support PS/2 protocol out of the box.

I think real usb mouses will not work with this ...
Z80 System

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: BoxSoft Mouse Interface
« Reply #82 on: 2014.October.15. 16:12:46 »
This is redundant, but here is a routine to read directly a mouse on a MSX computer. It can be adjusted to work on EP, but we already have Mouse.xr.

; A routine  to read the mouse:
;
;
;        LD    D,&B10010011     ; Use these values for a mouse in port 1
;        LD    E,&B00010000
;
;
;        LD    D,&B11101100     ; Use these values for a mouse in port 2
;        LD    E,&B00100000
;
; Read the mouse.   Input: D/E=.... Output: H=X-offset, L=Y-offset
; Note that the routine will output H=L=255 if no mouse is present!
GTMOUS:
 
        LD    B,WAIT2          ; Long delay for first read
        CALL  GTOFS2          ; Read bit 7-4 of the x-offset
        AND   0FH
        RLCA
        RLCA
        RLCA
        RLCA
        LD    C,A
        CALL  GTOFST          ; Read bit 3-0 of the x-offset
        AND   0FH
        OR    C
        LD    H,A             ; Store combined x-offset
        CALL  GTOFST          ; Read bit 7-4 of the y-offset
        AND   0FH
        RLCA
        RLCA
        RLCA
        RLCA
        LD    C,A
        CALL  GTOFST          ; Read bit 3-0 of the y-offset
        AND   0FH
        OR    C
        LD    L,A             ; Store combined y-offset
        RET
 
WAIT1:  EQU   10              ; Short delay value
WAIT2:  EQU   30              ; Long delay value
 
GTOFST: LD    B,WAIT1
GTOFS2: LD    A,15            ; Read psg register 15 voor mouse
        OUT   (0A0H),A
        LD    A,D
        OUT   (0A1H),A
        XOR   E
        LD    D,A
 
WAIT:   DJNZ  WAIT           ; Extra delay because the mouse is slow.
 
        LD    A,14
        OUT   (0A0H),A
        IN    A,(0A2H)
        RET

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: BoxSoft Mouse Interface
« Reply #83 on: 2014.October.19. 11:43:32 »
This is my ugly attempt to build a Boxsoft mouse interface. It seems to work, at least as joystick interface. I'll load Mouse.xr and try it with the Neos.

Offline Z80System

  • EP addict
  • *
  • Posts: 3848
  • Country: hu
Re: BoxSoft Mouse Interface
« Reply #84 on: 2014.October.19. 11:52:16 »
Not bad to the eyes ! :)

With what kind of tool did you do the cuttings on this type of PCB ?
Z80 System

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14723
  • Country: hu
    • http://enterprise.iko.hu/
Re: BoxSoft Mouse Interface
« Reply #85 on: 2014.October.19. 11:53:53 »
Good work! :smt038

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: BoxSoft Mouse Interface
« Reply #86 on: 2014.October.19. 12:09:04 »
The board is of fiberglass. I begun to cut the tracks with a knife, but is easy to slip. It's better with a Dremel or simmilar.
« Last Edit: 2014.October.19. 17:49:17 by gflorez »

Offline Z80System

  • EP addict
  • *
  • Posts: 3848
  • Country: hu
Re: BoxSoft Mouse Interface
« Reply #87 on: 2014.October.19. 16:56:13 »
I thought of the wires actually, not the whole of the PCB ... Some of the cuts of the wires of the board are nice and even ...

When I cut a wire, it is usually not a straight even line ...
Z80 System

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: BoxSoft Mouse Interface
« Reply #88 on: 2014.October.19. 17:16:35 »
It is not a secret. I weld the components and  bend some the wires until they broke.

Then usually I re-weld. That´s why you don't see the cooper.

This all in the middle of checking, checking and checking.

Offline Z80System

  • EP addict
  • *
  • Posts: 3848
  • Country: hu
Re: BoxSoft Mouse Interface
« Reply #89 on: 2014.October.19. 17:24:49 »
Okay, maybe we did not understand each other,

so I think of this on the picture.

That vertical cut of the wires of the PCB is made by you, isn't it ?

When I cut a wire of the board (usually I scratch the wires through with a knife or scissor) that will not be such straight and even at the edges of the cut.
Z80 System