Jump to content

Open drain mode for STM32 gates


latigid on
 Share

Recommended Posts

I wouldn't do this, because the danger is too high that you destroy the core IO pins if you connect the gate to the wrong plug on your synth (e.g. higher voltage output)

 

Instead, please use a 74HC541 between the J5 based gate outputs and your synth. It will also act as a level shifter, see http://www.ucapps.de/midibox_seq_manual_hw.html

(search for "CV Outputs")

 

Best Regards, Thorsten.

Link to comment
Share on other sites

Yes, this makes sense. Apologies, I did see this note but wanted to avoid the 74HC541 because I am already buffering the gates with my break out board:

 

 

I wonder what is the best way to proceed while still using the board that I have. Do you think the buffers here would offer sufficient protection to simply use pull up resistors like I thought? Or would it be better to make use of a trimmer pot to have more control over the gain?

 
Link to comment
Share on other sites

RESET!

 

Why do you want to shift the voltage level to 5V, if your buffers already allow to change the gain factor?

I see no need for a level-shifter (and it won't add more protection).

 

Best Regards, Thorsten.

Link to comment
Share on other sites

Just because I have things soldered already :smile:

 

I was hoping for switchable gain between +5 V and something arbitrary like +12 V, but like you say I can just fiddle with the feedback resistors to tailor the gain level.

 

Many thanks and greetings,

Andy 

 
Edit: the gates should be enabled, but not in open drain mode, correct?
 
J5_ENABLED 1

 

 

 
Edited by latigid on
Link to comment
Share on other sites

My plan, unless anybody tells me otherwise (please do if this sounds stupid) is to solder 220 ohm resistor arrays to the core32 pcb in order to achieve the +5 V signals.

 

Will this work with all outputs, including the 8 gates, MIDI I/O 3 and DIN sync start/clock? Or do these pins also require setting to open drain mode?

 

Thanks,

 

EDIT: or is 1k or 10k more appropriate? There is a +5 V rail running very close to J5A/B/C

Edited by latigid on
Link to comment
Share on other sites

It depends on the load that the output is driving.

1k to 10k sounds more reasonable for high impedance inputs than 220R.

 

I am about to use the triggers (4) to drive the footpedal inputs of an RC-50 Loop Station.

To do this I'll have the outputs in pushpull (LPC17 Core) drive the LED of opto-isolators via 220R in series.

The opto's will provide isolation to remove ground loops between SEQ and Looper. 

Link to comment
Share on other sites

It enables open drain mode as expected...

 

But I didn't remember anymore, that IO pins of a STM32 device with optional analog function are not 5V tolerant.

I'm sorry for the wrong and confusing advice!

 

So: the only solution is to change the hardware as proposed in my first reply.

 

Best Regards, Thorsten.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...