Author Topic: Driving MOSFETS with open drain output of Comparators.  (Read 952 times)

0 Members and 1 Guest are viewing this topic.

Offline Arsh ahmadTopic starter

  • Contributor
  • Posts: 24
  • Country: in
Driving MOSFETS with open drain output of Comparators.
« on: June 29, 2022, 09:24:32 am »
Is it possible to drive a MOSFET using a comparator having an Open-drain output?
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • 0999
Re: Driving MOSFETS with open drain output of Comparators.
« Reply #1 on: June 29, 2022, 09:41:52 am »
Yes, very slowly. Add a pull-up resistor. Again note, it'll be slow so no good for PWM.
 

Offline Arsh ahmadTopic starter

  • Contributor
  • Posts: 24
  • Country: in
Re: Driving MOSFETS with open drain output of Comparators.
« Reply #2 on: June 29, 2022, 09:57:24 am »
I don't want to use it for PWN I only want to turn it on or off with an input signal.
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 8172
  • Country: fi
Re: Driving MOSFETS with open drain output of Comparators.
« Reply #3 on: June 29, 2022, 09:59:45 am »
With a small MOSFET (small Qg) and no concern about power dissipation and hence suitably low value pullup, such as 1kOhm, it isn't even that slow.
 

Offline Arsh ahmadTopic starter

  • Contributor
  • Posts: 24
  • Country: in
Re: Driving MOSFETS with open drain output of Comparators.
« Reply #4 on: June 29, 2022, 10:02:27 am »
Yes, I think this might work.
 

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2004
  • Country: us
Re: Driving MOSFETS with open drain output of Comparators.
« Reply #5 on: June 29, 2022, 03:34:44 pm »
Yes you can.  I've used the INT/SQW alarm output of a DS3231 RTC, which is open drain, to turn on a P-channel mosfet.  But you do need the pullup resistor so the gate never floats.  I used 100K, but this was just a low-current power switch, so there were no real thermal considerations.  I guess in theory it could also work with an N-channel mosfet.  I feel less comfortable about that, but haven't really thought it through.

They do make comparators with push/pull outputs, which would eliminate the need for the resistor, but I don't think they are common.
 

Offline Arsh ahmadTopic starter

  • Contributor
  • Posts: 24
  • Country: in
Re: Driving MOSFETS with open drain output of Comparators.
« Reply #6 on: June 30, 2022, 05:18:35 am »
Thanks for the replies, I made a hardware prototype and it is able to drive both n channel as well as p channel MOSFETs.
 

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2004
  • Country: us
Re: Driving MOSFETS with open drain output of Comparators.
« Reply #7 on: June 30, 2022, 02:30:46 pm »
With an N-channel mosfet, the mosfet will be turned on by the pullup resistor when the comparator output is off, so the mosfet is on by default.  That also means the mosfet will be turned on when the comparator is powered down, which might not be what you want.  With a P-channel mosfet, the mosfet is off by default, and only turns on when the comparator output is low.  That would be considered the safer option in most cases.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • 0999
Re: Driving MOSFETS with open drain output of Comparators.
« Reply #8 on: June 30, 2022, 03:15:40 pm »
With an N-channel mosfet, the mosfet will be turned on by the pullup resistor when the comparator output is off, so the mosfet is on by default.  That also means the mosfet will be turned on when the comparator is powered down, which might not be what you want.  With a P-channel mosfet, the mosfet is off by default, and only turns on when the comparator output is low.  That would be considered the safer option in most cases.
That depends on whether the pull-up is connected to the same power supply as the comparator or not. The comparator might also behave in an unpredictable manner, during power cycles, especially if the ramp up/down is slow.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf