Hi
I have a 5 volt supply and a 3.3 volt supply and i need a switch which can choose between those 2 supplies and give an output which is either 5v or 3.3 v.i want to have a mosfet switch.can anyone tell me which mosfet to use and is my circuit correct?
5V
o------------------(mosfet)-----------
3V
o-------(diode (|>|))------------------
There is a connection between the two ends and an external control is there attached to mosfet
you have to use a pmos otherwise after switch you will have either 5-vth or 3-vth . now whenever you connect the gate to 5 volt (in order to turn the pmos off) the pmos will not turn off, it will be diode connected(gate and source are connected to 5volt while drain is at 3volts) therefore a static current and static power consumption would be present in your circuit. also note that your voltage source won't be an ideal voltage source since the resistance of the swith or diode is always on your circuit's path. the speed of your circuit may degrade too. then you should use wider transistor and diode which means more static power.
I was wondering that why my pmos switch wont turn off if i apply 5 volts to the gate.I am planning to have 5v at (source + gate) side and 3.3 v on drain side.now whenever i ll give 5v to gate the switch ll remain off and the output ll be 3.3 volts.do u think it ll work?
- - - Updated - - -
Hi speedEC
Do i need to have my second input(3.3v) on drain side and my first input(5v) on source side?
Correct. You can do test and confirm yourself. If +5v available, this will drive the P-CH MOSFET GATE (high) and cut-off the 3.3v supply and +5v ( - diode voltage drop) to system load. If +5v not available (this is by default - switch (p ch mosfet) closed because of grounded gate through 100K resistor), 3.3v supplies to system load.
sorry I've made a mistake the pmos will turn off. but as I said the resistance of your voltage source is no longer negligible. this can sometimes be problematic.
If +5v available, this will drive the P-CH MOSFET GATE (high) and cut-off the 3.3v supply and +5v ( - diode voltage drop) to system load. If +5v not available (this is by default - switch (p ch mosfet) closed because of grounded gate through 100K resistor), 3.3v supplies to system load.
Here is a schematic using Falstad's animated simulator. (I substituted a transistor for a P-mosfet because the mosfet model does not always turn on sufficiently.)
When the transistor is turned on, the load gets 5V (nearly).
At other times, it is 2.59V ( 3.3 minus the diode drop).