Author Topic: MCU controlling voltage output rails  (Read 3059 times)

0 Members and 1 Guest are viewing this topic.

Offline SarcareanTopic starter

  • Contributor
  • Posts: 31
  • Country: us
MCU controlling voltage output rails
« on: December 31, 2015, 11:09:15 pm »
Hey everyone!

So I wanted to ask you all for your opinion on a design change I am working on. I have 4 lines of various voltage (5v, 3.3v, 2.5v, 1.8v) each at 200-500ma. And I want to use a microcontroller (Atmel in this case) to control / switch a line out that then connects to a level shifter IC. My current board, this is done with just a SPDT switch.

So this is what I came up with:



So I have 4 lines from MCU, going through a resistor array (220 ohm), and then each to a LED and then to the enable pin on a ADP197 (High-side power switch) and the output of all 4 of those tied together that then goes to the voltage-ref of the level shifter / translator (FXMA108).

So my question, is there anything I am missing? I was thinking that there could be a problem with the boot-up, as vcc might try to enable all 4 of the power switches at once, but the level shifter is controlled via its own OUTPUT ENABLE pin, which I have a pull-up resistor (10K) so that it should remain in 3-state until the MCU is ready and can pull down the OE pin.
 

Offline Robartes_m

  • Contributor
  • Posts: 21
  • Country: be
Re: MCU controlling voltage output rails
« Reply #1 on: December 31, 2015, 11:43:06 pm »
Hey everyone!

So I wanted to ask you all for your opinion on a design change I am working on. I have 4 lines of various voltage (5v, 3.3v, 2.5v, 1.8v) each at 200-500ma. And I want to use a microcontroller (Atmel in this case) to control / switch a line out that then connects to a level shifter IC. My current board, this is done with just a SPDT switch.

So this is what I came up with:



So I have 4 lines from MCU, going through a resistor array (220 ohm), and then each to a LED and then to the enable pin on a ADP197 (High-side power switch) and the output of all 4 of those tied together that then goes to the voltage-ref of the level shifter / translator (FXMA108).

So my question, is there anything I am missing? I was thinking that there could be a problem with the boot-up, as vcc might try to enable all 4 of the power switches at once, but the level shifter is controlled via its own OUTPUT ENABLE pin, which I have a pull-up resistor (10K) so that it should remain in 3-state until the MCU is ready and can pull down the OE pin.

I don't think that will work - when you set the I/O pin for one of the analog switches (eg PC16) high, the LED will probably light up, but the EN pin will not go high. In fact, you might damage the ADP197, as you're sinking a current through the pull down resistor on the EN pin which it will definitely not be designed to do.

Connect the MCU I/O pin directly to the EN pin to get this to work.
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9930
  • Country: nz
Re: MCU controlling voltage output rails
« Reply #2 on: January 01, 2016, 01:16:16 am »
Wouldn't it be simpler to have a precision reference on the ADC Vref then use a PWM DAC and an dual opamp to 2-order low pass filter&buffer.
It's more flexible since you can have any voltage you want.
You can use a high frequency for the pwm and heavily filter it because the shifter voltage level isn't something you need to change often or quickly.
It's also not something that has to be super accurate.
« Last Edit: January 01, 2016, 01:19:15 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline SarcareanTopic starter

  • Contributor
  • Posts: 31
  • Country: us
Re: MCU controlling voltage output rails
« Reply #3 on: January 01, 2016, 08:12:19 am »
Thanks for the response  :D



@Robartes_m: Would something like this work instead?

@Psi: I read somewhere else of something similar to this, do you know of a link to a schematic I can look at?
 

Offline Robartes_m

  • Contributor
  • Posts: 21
  • Country: be
Re: MCU controlling voltage output rails
« Reply #4 on: January 01, 2016, 06:03:38 pm »


@Robartes_m: Would something like this work instead?

That would work better in that it would pull up the EN pin of the analog switch, but you are still driving the LED directly from the MCU pin. This might or might not be a problem, depending on what current the MCU can supply. To avoid this, I would simply put the LED on the Vout of the analog switch.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf