[comp.sys.mac.hardware] Making an ADB device

glenn@palsoft.cts.com (Glenn Andreas) (02/08/91)

Does anyone know where to get information on how to actually make an
ADB device?  The hardware ref. book shows lots of information,
especially regarding timings, etc... but there really isn't a simple
example of how to make an ADB device.  I'm looking at making
something like the "Gold Brick" device (for hooking up Nintendo
devices to Macs), but simpler - i.e. it only need be able to handle a
joystick (no U-Force, no PowerGlove, etc... and $195 is a bit too
pricy for a joystick).  I can design a circuit to read the joystick
and figure out when a change in one of the buttons happens, but how
to take that 8-bit data and communicate over the ADB bus is beyond
me.  The software seems simple enough as well - when an interrupt for
that device occurs, figure out what button has changed, and then post
and up or down key event from some table mapping the joystick to
keys - maybe have some way to map some button to modifier keys as
well.  All I need how to take a register with data in it an send it
off across the ADB bus.  I know that ADB mice have a small, $2 microprocessor
that does all the work - how hard can it be?


-----------------------------------------------------------------------
Glenn Andreas      Palomar Software   Phone: (619) 721-7000
UUCP     : glenn@palsoft.cts.com      Fax  : (619) 721-4758
AppleLink: palomar.dev                AOL  : gandreas