>The MIDI-In interrupt is useful. :) >But, with the MIDI-Out interrupt, I agree. In fact, depending >on your interpretation of the Tech Manual, MIDI Out doesn't >generate and INT signal...(?)
Umm... actually, how you should probably do it is this: Assuming that you control all interrupts, etc: At startup, wait at least 2 frames (this gives the MIDI system time to output the data - it's 31.765 or so kHZ, so 2 frames is ample). Set a flag to true (MIDI system can send data). Then, when you want to send data through the MIDI, check the flag. If true, set it to false and then OUT to the MIDI port. If false, wait until it's true (spinlock, or alternatively, just HALT). In your interrupt driver, when you get a MIDI OUT interrupt, set the flag to TRUE. You don't have to do anything else. Though you could tie it to the COMMS interface's timer using the Mouse/COMMS interrupt for more accurate MIDI timings. Si ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
