Why don’t you have a look at the schematic of the Core32 (STM32 based)? Midi Out looks the same to me.
Hi Shuriken,
that’s the original website
It should work, but when I send whatever midi message*, piano/synth becomes mute (as if volume goes down to zero, or disabled internal tone generator). After midi cable disconnect, volume becomes normal.
My doubt was about the current loop, because midi high level (5V) doesn’t generate current flow, while STM32 high gpio level (3V3) is able to produce a current flow (5V-3V3=1V7). Maybe midi pin 4 should be connected to 3V3 (and not to 5V)?
thanks again
jerry
* program change (after bank select), or identity message, or others…
no, the schematic isn’t wrong: I’ve configured the Tx pin in Open Drain Mode
Accordingly a logic-1 will set the pin into high-impedance state, and the voltage level will be pulled to 5V.
This is the preferred solution for MIDI.
Yes: if you configure the pin in Push-Pull mode, you’ve to connect the 220 Ohm resistor to 3.3V, but I strongly recommend to change the pin configuration instead.