Welcome, Guest. Please login or register.


Author Topic: BoxSoft Mouse Interface (Read 36617 times)

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13176
  • Country: hu
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 32.0 Firefox 32.0
    • View Profile
    • 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: 3835
  • Country: hu
  • OS:
  • Mac OS X 10.9.5 Mac OS X 10.9.5
  • Browser:
  • Chrome 37.0.2062.124 Chrome 37.0.2062.124
    • View Profile
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

  • EP addict
  • *
  • Posts: 13176
  • Country: hu
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 32.0 Firefox 32.0
    • View Profile
    • 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 :-)

Offline BruceTanner

  • EP user
  • *
  • Posts: 461
  • Country: gb
  • OS:
  • Windows NT 6.3 Windows NT 6.3
  • Browser:
  • Chrome 37.0.2062.124 Chrome 37.0.2062.124
    • View Profile
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?)

Online gflorez

  • EP addict
  • *
  • Posts: 2452
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 32.0 Firefox 32.0
    • View Profile
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.

Online gflorez

  • EP addict
  • *
  • Posts: 2452
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 32.0 Firefox 32.0
    • View Profile
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: 3835
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 37.0.2062.124 Chrome 37.0.2062.124
    • View Profile
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

Online gflorez

  • EP addict
  • *
  • Posts: 2452
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 32.0 Firefox 32.0
    • View Profile
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

Online gflorez

  • EP addict
  • *
  • Posts: 2452
  • Country: es
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 32.0 Firefox 32.0
    • View Profile
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: 3835
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 38.0.2125.104 Chrome 38.0.2125.104
    • View Profile
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

  • EP addict
  • *
  • Posts: 13176
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 33.0 Firefox 33.0
    • View Profile
    • http://enterprise.iko.hu/
Re: BoxSoft Mouse Interface
« Reply #85 on: 2014.October.19. 11:53:53 »
Good work! :smt038

Online gflorez

  • EP addict
  • *
  • Posts: 2452
  • Country: es
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 32.0 Firefox 32.0
    • View Profile
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: 3835
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 38.0.2125.104 Chrome 38.0.2125.104
    • View Profile
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

Online gflorez

  • EP addict
  • *
  • Posts: 2452
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 32.0 Firefox 32.0
    • View Profile
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: 3835
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 38.0.2125.104 Chrome 38.0.2125.104
    • View Profile
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