Re: Spartan3 driving mosfets
- From: "PeteS" <PeterSmith1954@xxxxxxxxxxxxxx>
- Date: 15 Sep 2006 04:15:51 -0700
John Larkin wrote:
On Fri, 15 Sep 2006 12:40:54 +1200, Jim Granville
<no.spam@xxxxxxxxxxxxxxxxxxxxxx> wrote:
John Larkin wrote:
I've got some DACs that I'd like to switch gain ranges on, and it
turns out I can do it nicely using a single 2N7002 (sot23 n-channel
mosfet) to switch a resistor to ground in each reference circuit. So
I'd like to turn each 7002 on and off from a pin on an XC3S400. But
3.3 volts is a marginal high for this fet... 4 volts looks safe.
So, how about running Vccio a bit high, 3.5 maybe, and adding an
external pullup resistor to +5. If I tristate the pin, I should
forward-bias the upper esd diode and get 4.2 roughly, right? I'm
thinking maybe a half milliampere or so pullup current. Doing this 8
times only dumps 4 mA into the Vccio rail, no hazard there.
I could use a lower-threshold fet, I guess, but the 7002's are in
stock and cost 3 cents each.
You can also switch with NPN transistor + resistor, and a reverse
connected one has lower saturation voltage ( and lower beta too ).
Once I start adding parts, I may as well go with an octal level
shifter and get all the way to 5 volts. The pcb would route nicer if I
could use just the pullups.
What resistance do you expect of the on devices ?
The 2N7002's go to about 2 ohms with 4 volts or so on the gates, and
that 2 ohms will have a roughly +6000 PPM/K tc, net 12 mohm/K, which
is good enough here... that will cause just a few PPM/K dac gain
error.
John
-jg
You could always use something like a 74AC05 open drain buffer - the
device has about 4 ohms of resistance to ground (at 12mA sink). If a
couple more ohms isn't an issue, you can dispense with the FETs
entirely, but it would add more error than the typical 2 ohms of a 7002
in full drive.
Of course, the output FET in a logic gate isn't usually characterised
'thoroughly' :)
Cheers
PeteS
.
- References:
- Spartan3 driving mosfets
- From: John Larkin
- Re: Spartan3 driving mosfets
- From: Jim Granville
- Re: Spartan3 driving mosfets
- From: John Larkin
- Spartan3 driving mosfets
- Prev by Date: Re: Spartan3: Multiplier Madness
- Next by Date: Xilinx Connect custom peripheral to PPC
- Previous by thread: Re: Spartan3 driving mosfets
- Next by thread: Re: Spartan3 driving mosfets
- Index(es):
Relevant Pages
|