SCSP is equipped with a serial interface for MIDI with a transfer rate of 31.25Kbps. However, it is not equipped with a "MIDI peripheral circuit" or a "MIDI DIN connector", so it is not possible to create applications using MIDI.
Figure 4.53 shows the MIDI interface block diagram.
Figure 4.53 MIDI-I/F block diagram
MIBUF[7:0](R) ; Midi Input BUFfer
MIDI input data buffer. When receiving on the MIDI-IN side, data transferred from the outside is automatically imported into the MIDI-IN buffer "MIBUF".
MIOVF(R) ; Midi Input Over-Flow
If data is transferred to MIDI-IN while all of the data has been captured in the MIDI-IN buffer, "MIOVF" will become "1B", indicating that an overflow has occurred. An overflow will result in a MIDI communication error because MIDI communication will not occur properly.
MIFULL(R) ; Midi Input FULL
If all 4 bytes of the MIDI-IN buffer have been filled with data, "MIFULL" will be "1B", indicating that there is no free space in the buffer.
MOFULL(R) ; Midi Output FULL
Data Output If all 4 bytes of the MIDI-OUT buffer contain data, "MOFULL" will be "1B", indicating that there is no free space in the buffer.
MOEMP(R) ; Midi Output EMPty
When all the data in the MIDI-OUT buffer has been sent out, or when no data has been transferred to the MIDI buffer, "MOEMP" becomes "1B", indicating that the buffer is empty. At the same time, it is also possible to notify the CPU that it is empty via an interrupt.
Figure 4.54 shows MIDI-OUT and the interrupt generation section.
Figure 4.54 MIDI OUT section and interrupt generation section
MOBUF[7:0](W) ; Midi Output BUFfer
MIDI output data buffer. For transfer on the MIDI-OUT side, write the data you want to transfer to "MOBUF". Your data will then be transferred automatically.