Steven_C Posted March 1, 2004 Report Posted March 1, 2004 How to plug a MIDI device to a MIDIbox with MIDIbox-to-COM InterfaceThis could work with the MIDI Merger project. To use the Merger as a baudrate converter, just change following lines in the MIDI Merger source code:;; code located in init.inc, function: Init_USART:;; SWITCHBANK_0_1 movlw (1 << TXEN) ; set baudrate: 31250 movwf TXSTA movlw 0x09 movwf SPBRG SWITCHBANK_1_0must be changed to: SWITCHBANK_0_1 movlw (1 << TXEN) | (1 << BRGH) ; set baudrate: 38400 movwf TXSTA movlw 0x20 movwf SPBRG SWITCHBANK_1_0On this way, the Hardware UART is clocked with 38400 baud, but the software UART runs with the MIDI baurate anymore. Following interconnections are necessary:MIDI In1 of the merger to MIDI-Out of the MIDI device (i.e. a MIDI Keyboard) MIDI In2 of the merger directly - without optocoupler - to the output of the MAX232 (Pin 12) MIDI Out of the merger directly - without optocoupler - to the Rx port of the MIDIbox-PIC. Its the bit at the end I don't understand... does this mean it is possible to create a serial midi interface to use with any generic midi device? or does it mean that only a midi serial input (output not possible?) can be created by combining the midi-merger project, and the MAX232?thanks, from Steve Quote
TK. Posted March 1, 2004 Report Posted March 1, 2004 Hi Steve,or does it mean that only a midi serial input (output not possible?) can be created by combining the midi-merger project, and the MAX232?correct, a second output which runs with MIDI baudrate cannot be realized with the merger. Best Regards, Thorsten. Quote
Steven_C Posted March 1, 2004 Author Report Posted March 1, 2004 Thanks for the reply, Thorsten! ;)handy for a controller keyboard, I guess! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.