Date : Wed, 15 Aug 2007 11:33:43 +0100
From : jgh@... (Jonathan Graham Harston)
Subject: Depraz mice + Master 512
>Message-ID: <46C1D567.10308@...>
Jules Richardson <julesrichardsonuk@...> wrote:
> OK... so, does anyone know what pinout the M512 is expecting? I get no
Search the mailing list archive, or see
http://mdfs.net/Info/Comp/BBC/Mouse :)
> The Depraz User Port connector pinout seems to be:
>
> port pin function
> 1 +5V
> 6 (PB0) Middle button
> 8 (PB1) Left button
> 10 (PB2) Right button
> 14 (PB4) Y1
> 16 (PB5) Y2
> 18 (PB6) X1
> 19 GND
> 20 (PB7) X2
>
> ... anyone know if that matches the mouse pinout for whatever mouse actually
> came with the M512?
That's wrong. At the very least, the mouse Xaxis and Yaxis need
to go to CB1 and CB2 to raise IRQs when the mouse moves.
The mouse driver code claims to be able to tell the difference
between a device wired as an AMX mouse as as what it calls a
Trackerball. It detects an AMX mouse by the fact that D3-D4 are
unconnected, and so are read as '1's. It looks like the code can
be tricked if the trackerball is move up and right at the same
time at the right instance, though it will reset back to AMX on
the next IRQ.
AMX Tracker
20 D7 Right
18 D6 Middle
16 D5 Left
14 D4 Ydir
12 D3 Xdir
10 D2 Ydir Right
8 D1 Middle
6 D0 Xdir Left
4 CB2 Yaxis Yaxis
2 CB1 Xaxis Xaxis
5 0v 0v 0v
1 +5v +5v +5v
Interestingly, what it calls 'Trackerball' is the wiring for the
Master Compact mouse connector.
> Alternatively, is there some specific *CO. command I need to issue on the
M512
> side before the mouse will work under GEM? (it's either that or the User
port
> is dead in the Master, which I suppose is possible... I'm not sure of the
> easiest way of quickly testing the port, though)
You need to ensure the AMOUSE.COM command is issued at some point.
--
J.G.Harston - jgh@... - mdfs.net/User/JGH
BBC BASIC for Windows and Internationalisation
See http://mdfs.net/Software/BBCBasic/Windows/ProgTips