[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference napalm::commusic_v1

Title:* * Computer Music, MIDI, and Related Topics * *
Notice:Conference has been write-locked. Use new version.
Moderator:DYPSS1::SCHAFER
Created:Thu Feb 20 1986
Last Modified:Mon Aug 29 1994
Last Successful Update:Fri Jun 06 1997
Number of topics:2852
Total number of notes:33157

2720.0. "homegrown Mac <-> MIDI interface" by COSMIC::DEVANE () Thu Sep 12 1991 15:24

    I'm building my own MIDI interface for my SE/30.  I have the "out"
    direction working (which is the only one I need at the moment).  I
    gather that some commercial interfaces draw their power straight from
    the Mac.  According to my SE/30 docs (and my voltmeter) there's no
    obvious power supply on the modem port (unlike the ADB connectors).  My
    best conjecture is that they draw it from the transmit data lines.  Can
    anybody give a reasonably authoritative answer on how this is done?
    Sure would like to mothball my +5V power supply.
    
    thanks,
    ch
    
    ps I've also posted this in the Macintosh notesfile.
T.RTitleUserPersonal
Name
DateLines
2720.1sorry, only on older MacsNUTELA::CHADChad, ZKO Computer ResourcesFri Sep 13 1991 07:029
	I believe the following to be true but make no guarantees:

	Older Macs like the Mac plus, Mac 128k, 512k, etc had a 
	different serial port that used a 9pin connector, one of
	whose pins had power.

	Chad

2720.2Power is somewhere on the pins of later Macs too...BENONI::ARNOLDThe profit is in the details...Fri Sep 13 1991 11:1213
>>>	I believe the following to be true but make no guarantees:

    The Apple MIDI interface and the Altech MIDI interface both work on later
    Macs (such as the SE) using the serial ports (modem or printer port).
    Neither of these interfaces has an external supply of power or a battery
    so they're getting their power from somewhere.

    Could it be that power only shows up on the pins when the port is
    `activated'?  Keep trying.  Alas, I don't have a pin layout for either
    of the interfaces I own.

    Good luck,
    - John -
2720.3It's magicRANGER::EIRIKURFri Sep 13 1991 11:517
The Apple and the Altech are "parasitic" devices that do some magic to derive
power from the data lines.  This seems to work fine as the MIDI interface
doesn't really need much current at all.  There seems to be no problem with
these units.  Apple should know what they are doing.

Eirikur

2720.4KOBAL::DICKSONFri Sep 13 1991 15:1212
    Remember that among the data lines are some signals that stay "high"
    all the time the circuit is in use (like Request-To-Send).  If you only
    need a small amount of power you could get it from there.
    
    There is also a circuit called a "charge pump" that be used to convert
    low voltages into high ones, or of different polarities, again as long
    as you do not use much power.
    
    ThunderWare sells a thing that plugs into the floppy port and steals
    power for whatever was hoping to get it from the serial port.  They
    developed these for their scanners.  I think they also sell one that
    plugs into the wall power.
2720.5Where to find +5Vcc ?AZUR::DESOZAJean-Pierre DE SOZA dtn 828-5559Mon Sep 16 1991 11:1921
	I have consulted the Macintosh Family Hardware Guide (same format/
	editor as I-M 1 to 6) and the pinout of the different connectors is
	described. It depends a lot on the hardware you have.
	- For those Macs that have a SCSI connector pin 25 provides with +5Vcc
	but it is clearly noted that this should not be used for powering
	any device, but only for connecting the termination resistors.
	The supported current drain is NOT documented.
	- For those Macs that have a diskette connector, pin 6 provides with
	+5Vcc, 700 mA max, for powering a diskette drive.
		 10	     1
		[o\:::::::::/o] (as you see it on the back of the Mac)
  		  19	   11
	- It's also possible to find +5Vcc on the mouse connector of a Mac
	Plus, 20mA max (= useless), or on the ADB bus for the other Macs,
	on pin 3 as far as I remember, with a usable current drain, 0.5 A or so.
			 _____
			(4 o 3) (as you see in on the keyboard or on the back of
			 (2 1)       a Mac)
			  ---
	I'm sure of the info about the disk drive and SCSI connector, but not
	about the ADB bus, I've noted the first, not the 2nd.
2720.6power from Tx linesCOSMIC::DEVANEMon Sep 23 1991 11:5533
    I finally have an anwser to my original question.  I'm now convinced
    (%98) that some interfaces draw their power from the the transmit data
    lines.
    
    "Inside Macintosh" has the schematics for the modem and printer
    interfaces on the Plus (I assume the SE, II, etc. are the same).
    There are no power pins.  There are no clever pullups to get +5V.
    Only three signals drive out to the connector: Tx+, Tx-, and HSKo.
    HSKo remains at a low voltage (~-4.6V) during MIDI operation (ie, when
    I'm running the Master Tracks Pro demo) so it's not very useful for
    generating a positive supply.  That leaves Tx+ and Tx-.
    
    I conjecture that Tx+ and Tx- could be rectified and filtered to
    produce a small supply - a few mA @ ~3.5V.  One kind soul (who wishes
    to remain anonymous) looked inside their Passport interface for me and
    thought they found diodes from the appropriate input pins to the power
    supply node.  That supports my conjecture.  Though I haven't had the
    opportunity to look inside an interface myself, I think I have come up
    with a circuit that could run off this small supply.  Now I just have
    to build and test it.
    
    If anyone would like to see the circuit if/when I get it working send
    me mail.  If there's enough interest I could post the schematic to the
    archives.
    
    Thanks everyone for the helpful suggestions,
    
    ch
    
    ps: this discussion only applies to newer Macs with the 8-pin mini DIN
    connector; the older Macs with the 9-pin connector had both +5V and
    +12V on the connector.