Hi, I was thinking to use the 2com interface to start with in my midibox sid. However at first I thought it would be possible to make a simple switch for midi / serial selection without any changes to the software and reprogramming the pics, but now I am not sure. If it does require re-programming, would the following be ok to add to the main.asm of sid application so I can have my switch function?
USER_Init   Â
    movlw 0x00
    call MIOS_SRIO_TS_SensitivitySet
   Â
    movlw 0x00 ; common midi
    btfss PORTC, 4 ; rd4 is 1 is common midi
    movlw 0x01 ; to host
    call MIOS_MIDI_InterfaceSet
   Â
    ...  Â
I would use a 4052 and a switch to switch either the max232 or the 6n138 the rx/tx lines to pic, like so:
         +5
         |
         [ ]10K
         |
      +--SW-+---- To J14 all cores
      |   |
      Gnd  |
         | 4052
         ---------
        | S0   |
        |     |
   Midi RX---|1y1   |
   Midi TX---|2y1   |
        |     |
   COM RX----|1y0   |
   COM TX----|2y0  1z|--- Pic RX
        |    2z|--- Pix TX
        | E S1  |
         ---------
         | |
         +--+
           |
           GND
SW is a simple switch like an on/off switch.
So the idea here is that the interface selection is controlled by a simple switch at power on for all cores. Will this be ok, or is there an easier way? ;D Am I missing something? Thanks