MIDI 5v and 3.3 volt

I see. will do, thanks.

Should there be a diode input clamp on the transmit line, to protect the uart pin on the microntroller.