English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware

 
 
Thread Tools
Old 09 August 2012, 10:05   #1
Lakanman
Sheetman
 
Lakanman's Avatar
 
Join Date: May 2010
Location: Sweden
Age: 42
Posts: 35
Send a message via MSN to Lakanman
Sega Mouse on Amiga?

Anyone know if the Sega Mouse works on Amiga?

Lakanman is offline  
Old 09 August 2012, 10:41   #2
lilalurl
Global Moderator
 
lilalurl's Avatar
 
Join Date: Aug 2001
Location: France
Posts: 3,289
Send a message via ICQ to lilalurl
Can't answer you, but as I had no idea it existed before you posted this, I looked a bit online.

I found a forum post that might be useful for people with enough technical knowledge to tell you how likely it is to be compatible:
http://gendev.spritesmind.net/forum/...7dad7105f93d2c

Quote:
Charles MacDonalds doc on the Genesis IO, where you find this:


Sega Mega Mouse

This is a three button mouse (left, middle, right) with an extra button (Start) located near the thumb position. It uses a PIC16C54
microcontroller which manages the buttons and position tracking.
The Sega Mega Mouse that is distributed in North America is incompatible with the European version of Populous 2. The mouse
functions normally but has Y axis inverted so up is down and vice-versa. It may have been designed for the Japanese Mega Drive
mouse, which is a different product with 2 buttons and unique physical appearance.
The protocol works as follows: TH and TR are outputs which tell the microcontroller to stop or start a data transfer, and to
acknowledge received data. TL is an input which returns a busy flag for the microcontroller. D3-D0 are inputs that return the data.

Here's a table showing the communication process:
Write TH TR TL D3 D2 D1 D0 Description
$60 1 1 1 0 0 0 0 Request data
$20 0 1 1 0 0 0 0 ID #0 ($0)
$00 0 0 1 1 0 1 1 ID #1 ($B)
$20 0 1 0 1 1 1 1 ID #2 ($F)
$00 0 0 1 1 1 1 1 ID #3 ($F)
$20 0 1 0 Y Over X Over Y Sign X Sign Axis sign and overflow
$00 0 0 1 Start Middle Right Left Button state
$20 0 1 0 X7 X6 X5 X4 X axis MSN
$00 0 0 1 X3 X2 X1 X0 X axis LSN
$20 0 1 0 Y7 Y6 Y5 Y4 Y axis MSN
$00 0 0 1 Y3 Y2 Y1 Y0 Y axis LSN

Write #$60 when you are done polling to stop the data transfer. If you continue to poll the mouse after collecting all the data by
writing $20 / $00, the Y axis LSN will always be returned. Sega advises polling beyond this point will make the mouse behave
abnormally. It's possible that the PIC code in some versions of the Mega Mouse may have problems if the poll sequence is too
long.
The X/Y overflow flags are supposed to be set if the mouse is moved over a distance greater than can be measured. I can't get
them to become set, maybe the mouse supports a fairly wide range of movement.
You need a considerable delay between writing new values to TH/TR. I think the intention is to poll TL until the microcontroller
returns 'not busy', but I can't get this to work reliably. Sega's mouse reading code also has a timeout when checking TL which
would indicate it may get stuck in a certain state.
All buttons (start, left, middle, right) are active-high logic, so they return '1' when pressed and '0' when released.
lilalurl is offline  
Old 09 August 2012, 10:46   #3
robinsonb5
Registered User
 
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 1,153
Quote:
Originally Posted by lilalurl View Post
I found a forum post that might be useful for people with enough technical knowledge to tell you how likely it is to be compatible:
Interesting! It's definitely not compatible out-of-the-box, but with the "standard" MegaDrive to Amiga wiring adapter, it may be possible to read the mouse, given the right driver software.

If you're hoping to just plug it in and go, though, there's no chance.
robinsonb5 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a Commodore mouse work as an Amiga mouse? Amiga1992 support.Hardware 6 11 August 2012 18:01
AMIGA MOUSE == Any 9 PIN Serial Mouse ????? megajetman support.Hardware 15 26 April 2012 13:51
Amiga mouse moonlighting as Myarc Mouse thinlega Nostalgia & memories 1 11 April 2008 13:53
2 Button Amiga / Sega pad to USB Zetr0 Hardware pics 1 09 August 2007 07:33
Sega Master System website. made on an amiga! Fred the Fop Amiga websites reviews 5 16 August 2004 23:28

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:26.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08297 seconds with 15 queries