PMOS in parallel with NMOS
- From: Tomás Ó hÉilidhe <toe@xxxxxxxxxxx>
- Date: Tue, 6 May 2008 20:52:59 -0700 (PDT)
Let's say I have a microcontroller pin that will have one of three
states: 5 V, 0 V or high impedence.
Let's say I have a PMOS and an NMOS, and I connect their gates
together. I connect the microcontoller pin to the gates.
Now, when my pin is high, the NMOS will turn on. When the pin is low,
the PMOS will turn on.
What will happen though when I set the pin to high impedence? I'm
hoping that neither transistor will be on, but I'm concerned that
maybe there might be some sort of voltage on the microcontroller pin
(it might be behind a large resistance, but it's still a voltage) that
will switch one of them on.
In my current design, I'm using bi-polar transistors, and it works
great. I'm thinking of switching to MOSFET's though because they let
current flow in both directions.
The MOSFET's will be used to turn on LED's.