[sdiy] MIDI specifications

Blitzcraig blitz at nmt.edu
Thu Apr 17 01:54:19 CEST 2003


hey all, got the code compiled for my sequencer, but I'm having troubles
with the MIDI specifications, i.e. timing and pins.

MIDI specification says it's Asynchronous serial, baud rate is 31.25 Kbaud
and a serial byte has 1 start bit, 8 data bits and 1 stop bit.  I
understand how there's a status byte followed by two data bytes, but I
don't see how it's 10 bits as described above.  Maybe I don't understand
the concept of asynchronous serial?  As a I see it, note on will be...

status:  1001XXXX
key:  0XXXXXXX
velocity: 0XXXXXXX

I send this out of my microcontroller, with a 40ms delay between bits
(MIDI spec says 320 ms per serial byte)?  Am I understanding this
correctly?  Where does the start bit and stop bit come into play?

Second question is about MIDI port wiring, pin 1 & 3 are not used, pin 4
and 5 are pair?  Which pin is sending the serial data?  Which pin is tied
to my microcontroller ground, etc.

thanks for your help, I hope you could understand my amature questions.

-Joe




More information about the Synth-diy mailing list