element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum CPLD P-Mosfet Output Circuit - Will it Work?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 17 replies
  • Answers 2 answers
  • Subscribers 474 subscribers
  • Views 1751 views
  • Users 0 members are here
  • mosfet
  • cpld
  • altera
  • max_v_cpld
Related

CPLD P-Mosfet Output Circuit - Will it Work?

oldmanraskers
oldmanraskers over 10 years ago

Could someone please offer their opinion on whether my circuit would work well for turning on an output via a CPLD. The output voltage at PIN0 will be 3.3V. I want logic 1 to turn on my Q1.

Regards, oldmanraskers.

Attachments:
image
  • Sign in to reply
  • Cancel

Top Replies

  • jw0752
    jw0752 over 10 years ago +2
    Hi, I set up your circuit on LTSPICE and there are a couple problems. First of all I am assuming that you are putting a load between Vdd and the drain of your MOSFET. Second your choice of IRF9530 will…
  • jw0752
    jw0752 over 10 years ago in reply to oldmanraskers +2 suggested
    Hi oldmanraskers, Here is the SPICE file for the simulation that I ran. If you don't have the LTSpcie program yet just go to the Linear Technologies web site and down load it as it is free. It seems that…
  • jw0752
    jw0752 over 10 years ago +1
    Hi , A little follow-up. Here is a web site that explains how to bias the P Ch MOSFET IRF9530 in case you need to use it. http://www.electronics-tutorials.ws/transistor/tran_6.html Here is an excerpt on…
Parents
  • oldmanraskers
    0 oldmanraskers over 10 years ago

    I have looked at my circuit again and come up with this one. The FET is not the exact one that I'm going to use but I think it would do the job regardless. I considered replacing R4 with a Zener but I'm not sure that is really warranted - what do you think? I'm still sticking with MOSFETs just because I obviously don't know enough about them and want to investigate them further. I do have a question regarding R3 though - I have noticed that the larger R3 is made the slower the gate takes to reach the correct voltage - I assume this is capacitance related to the gate, but I don't understand how to decide what values of R3 would cause me problems - any pointers?

     

    Let me know what you think and thanks for your input thus far.

    Regards, oldmanraskers.

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 10 years ago in reply to oldmanraskers

    This is  a fairly bad circuit - you would do much better with an N channel MOSFET (cheaper for same spec) and ground referred drive means it's much less likely to do odd things when you switch. The problem is that you won't easily find a 40V or more rated MOSFET with guaranteed on resistance at 3V gate drive. So I'm with John B on this - you want to drive a solenoid so use a solenoid driver !

     

    It's cheap, needs no additional parts, you get 7 drivers for the price of one, it can drive 300mA with 3V from your CPLD, it comes in a nice DIL package which can go in a socket or not ....... what's not to like !

     

    STMICROELECTRONICS  ULN2003A  DARLINGTON ARRAY 7NPN, 2003, DIP16

     

     

     

     

    DARLINGTON ARRAY 7NPN, 2003, DIP16

    TEXAS INSTRUMENTS

    ULN2003ANE4

    Price for: Each 1

       1+  £0.42 

     

      image

    Click to zoom

    Image is for illustrative purposes only. Please refer to product description.

     

     

    STMICROELECTRONICS

     

    • Manufacturer: STMICROELECTRONICS
    • Order Code: 1094421
    • Manufacturer Part No ULN2003A
    • Technical Data Sheet (925.20KB) EN

     

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • oldmanraskers
    0 oldmanraskers over 10 years ago in reply to michaelkellett

    I've been looking at the drivers and they might be the way to go, especially since the lite version of Eagle CAD limits the board size I can use. @Michael Kellett I am confused by something you said regarding 3V gate drive - since I'm using the BJT to switch the MOSFET, doesn't that mean the gate drive can be much higher?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • oldmanraskers
    0 oldmanraskers over 10 years ago in reply to michaelkellett

    I've been looking at the drivers and they might be the way to go, especially since the lite version of Eagle CAD limits the board size I can use. @Michael Kellett I am confused by something you said regarding 3V gate drive - since I'm using the BJT to switch the MOSFET, doesn't that mean the gate drive can be much higher?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • michaelkellett
    0 michaelkellett over 10 years ago in reply to oldmanraskers

    Using a transistor as well as several resistors to drive the MOSFET just seems like a waste of soldering (not to mention parts) but you are right in that you can have as many volts of gate drive as you like.

     

    If you use an N channel MOSFET you can drive it directly from the CPLD (a series resistor is a good idea but still a lot less parts)  but there are very few MOSFETs around that guarantee operation with 3V gate drive (and I couldn't find one in  a package that you would want to use).

     

    So if you have  a choice between 4 resistors, one diode, one MOSFET and one transistor (16 pins, 6 parts) and one 16 pin DIL package (with 6 spare channels) it seems like a no-brainer to me.

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • oldmanraskers
    0 oldmanraskers over 10 years ago in reply to michaelkellett

    You're right of course. And I actually do need to drive four solenoids.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 10 years ago in reply to oldmanraskers

    I'll be interested to see your final circuit.

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube