Electronics repairs made for people on craigslist, as well as myself and friends and family.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

811 lines
66 KiB

<html>
<head>
<link rel="canonical" href="https://www.EmbeddedRelated.com/showarticle/98.php"/>
<link rel="shortcut icon" href="https://www.embeddedrelated.com/new2/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Which MOSFET topology? - Jason Sachs</title>
<meta name="description" content="A recent electronics.StackExchange question brings up a good topic for discussion. Let's say you have a power supply and a 2-wire load you want to be able to switch on and off from the power supply using a MOSFET. How do you choose which circuit...">
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@EmbeddedRelated" />
<meta name="twitter:creator" content="@jms_embedded" />
<link href='https://fonts.googleapis.com/css?family=Roboto:400,300italic,700,400italic,500,500italic,700italic,900' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,700,300,600,800,400' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700' rel='stylesheet' type='text/css'>
<!--<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">-->
<link rel="StyleSheet" type="text/css" href="/new2/css/style.php5">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="https://www.embeddedrelated.com/new2/js/jquery.placeholder.min.js"></script>
<script src="https://use.fontawesome.com/b6039e963b.js"></script>
<!-- http://mycodde.blogspot.ca/2014/12/multiple-recaptcha-demo-same-page.html -->
<script src="https://www.google.com/recaptcha/api.js?onload=myCallBack&render=explicit" async defer></script>
<script>
var recaptcha1;
var recaptcha2;
// do your stuff
var myCallBack = function() {
//Render the recaptcha1 on the element with ID "recaptcha1"
if ($('#recaptcha1').length) {
recaptcha1 = grecaptcha.render('recaptcha1', {
'sitekey' : '6LcoKR4TAAAAABOTOWiDACvcvs270jKtYqjcMcdr', //Replace this with your Site key
'theme' : 'light'
});
}
//Render the recaptcha2 on the element with ID "recaptcha2"
if ($('#recaptcha2').length) {
recaptcha2 = grecaptcha.render('recaptcha2', {
'sitekey' : '6LcoKR4TAAAAABOTOWiDACvcvs270jKtYqjcMcdr', //Replace this with your Site key
'theme' : 'light'
});
}
};
</script><link rel="StyleSheet" type="text/css" href="https://www.embeddedrelated.com/new2/css/modal_login.css">
<script type="text/javascript" src="https://www.embeddedrelated.com/new2/js/jquery.leanModal.min.js"></script>
<link rel="stylesheet" href="https://www.embeddedrelated.com/new2/css/highlight/github.css">
<script src="https://www.embeddedrelated.com/new2/js/highlight_9_4.pack.js"></script>
<script>
$(document).ready(function() {
$('pre').each(function(i, block) {
hljs.highlightBlock(block);
});
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true
},
});
</script>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>-->
<script type="text/javascript" src="/new2/Commax/assets/js/commax_engine.js"></script>
<link rel="stylesheet" type="text/css" href="https://www.embeddedrelated.com/new2/Commax/assets/css/skin1.css" />
<script src="https://www.embeddedrelated.com/new2/js/deleteblog.js" type="text/javascript"></script>
<script src="https://www.embeddedrelated.com/new2/js/rewards.js"></script>
<script src="https://www.embeddedrelated.com/new2/js/sweetalert.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://www.embeddedrelated.com/new2/css/sweetalert.css">
<link rel="StyleSheet" type="text/css" href="https://www.embeddedrelated.com/new2/css/modal_login.css">
<script type="text/javascript" src="https://www.embeddedrelated.com/new2/js/jquery.leanModal.min.js"></script>
<script src="https://www.embeddedrelated.com/new2/js/comments.js"></script>
<script src="https://www.embeddedrelated.com/new2/js/jquery.easytabs.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready( function() {
$('#tab-container').easytabs();
});
</script>
<link rel="stylesheet" href="https://www.embeddedrelated.com/new2/js/redactor/redactor.css">
<script src="https://www.embeddedrelated.com/new2/js/redactor/table.js"></script>
<script src="https://www.embeddedrelated.com/new2/js/redactor/redactor.js"></script>
<!--<script language="JavaScript" type="text/JavaScript">
document.write('<iframe src="/new2/loghits_blogs.php?section=blogs&id=278&ip=212.24.106.241&bloggerid=88624" style="visibility:hidden" width="1" height="1" frameborder="0"></iframe>');
</script>-->
</head>
<body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-1774944-2', 'auto');
ga('send', 'pageview');
</script>
<div id="menutabs" class="container">
<a href="//www.embeddedrelated.com"><img class="bigtab" src="https://d23s79tivgl8me.cloudfront.net/new2/images/EmbeddedRelated_bigtab.png" border="0" alt=""></a>
<a href="//www.fpgarelated.com"><img class="smalltab" src="https://d23s79tivgl8me.cloudfront.net/new2/images/FPGARelated_smalltab.png" border="0" alt=""></a>
<a href="//www.dsprelated.com"><img class="smalltab" src="https://d23s79tivgl8me.cloudfront.net/new2/images/DSPRelated_smalltab.png" border="0" alt=""></a>
<a href="//www.electronics-related.com"><img class="smalltab" src="https://d23s79tivgl8me.cloudfront.net/new2/images/Electronics-Related_smalltab.png" border="0" alt=""></a><!--<img src="//www.embeddedrelated.com/new2/images/forengineers.png" alt="" style="margin-left: 40px;">-->
</div>
<div id="horizontalmenu2"><div class="container">
<ul>
<li ><a href="/" title="EmbeddedRelated.com | Embedded Systems" >Home</a></li><li class="active"><a href="/blogs.php" title="Embedded Systems Blogs" class="active">Blogs</a><ul>
<li><a href="/blogs.php#tabs1-site">From the Editor</a></li>
<li><a href="/blogs.php">Recent Posts</a></li>
<li><a href="/blogs.php#tabs1-popular">Popular (this month)</a></li>
<li><a href="/blogs.php#tabs1-popularat">Popular (all time)</a></li>
</ul></li><li ><a href="/tweets.php" title="Embedded Systems Tweets" ><i class="fa fa-twitter fa-lg"></i> Tweets</a><ul>
<li><a href="/tweets.php">All Popular Tweets</a></li>
<li><a href="/tweets.php#tabs1-vendors">Vendors Only</a></li>
<li><a href="/tweets.php#tabs1-iot">#IoT</a></li>
</ul></li><li ><a href="/forums" title="Embedded Systems Forums and Discussions" >Forums</a></li><li ><a href="/jobs" title="Embedded Systems Jobs" >Jobs</a></li><li ><a href="/Internet-of-Things.php" title="Internet of Things" >#IoT</a></li><li ><a href="/tutorials.php" title="Embedded Systems Tutorials" >Tutorials</a></li><li ><a href="/books.php" title="Embedded Systems Books" >Books</a></li><li ><a href="/documents.php" title="Embedded Systems Free PDFs" >Free PDFs</a></li><li ><a href="/vendors" title="Embedded Systems Vendors" >Vendors</a></li><li ><a href="/code.php" title="Embedded Systems Code Snippets" >Code Snippets</a></li></ul>
<div class="socialbox floatright"><a href="https://www.linkedin.com/groups/Embedded-Related-8572356/about"><i class="fa fa-linkedin fa-2x" style="line-height: 34px;"></i></a></div>
<div class="socialbox floatright"><a href="https://www.facebook.com/embeddedrelated"><i class="fa fa-facebook fa-2x" style="line-height: 34px;"></i></a></div>
<div class="socialbox floatright"><a href="https://twitter.com/embeddedrelated"><i class="fa fa-twitter fa-2x" style="line-height: 34px;"></i></a></div>
<div class="socialbox floatright"><a href="https://www.youtube.com/channel/UCeQLo2DnGk59lYps-8qzy2g"><i class="fa fa-youtube fa-2x" style="line-height: 34px;"></i></a></div>
<div class="socialbox floatright"><a href="/blogs_rss.php"><i class="fa fa-rss fa-2x" style="line-height: 34px;"></i></a></div>
</div>
</div><div class="container" data-sticky_parent>
<div id="mainleft" data-sticky_column>
<!--<img src="/new2/images/728x90.JPG" style="margin-bottom: 10px;">-->
<div id="cookieconsent" style="position: relative; display: none; width: 680px; height: 160px; padding: 20px; border-style: solid; border-width: 1px;"><div id="hide" style="cursor: pointer; position:absolute; bottom: 0; right: 0; background-color: #cccccc; padding-left: 4px; padding-right: 4px; font-size: 0.8rem;">hide</div><h3 style="margin-top:0px; margin-bottom:0px;"><a href="" rel="nofollow" target="_blank">This website uses cookies</a></h3>
<p style="margin-top:5px; margin-bottom:5px;">This site uses cookies to deliver our services and to show you relevant ads and job listings. By using our site, you acknowledge that you have read and understand our <a href="/cookies">Cookie Policy</a>, <a href="/privacy">Privacy Policy</a>, and our <a href="/terms">Terms of Service</a>. Your use of the Related Sites, including DSPRelated.com, FPGARelated.com, EmbeddedRelated.com and Electronics-Related.com, is subject to these policies and terms.</p><button id="consentbutton" class="pure-button button-more-small" style="float: right; margin: 10px 20px 10px 0;">I Understand! </button></div><div style="clear:both;"></div><script>
function setCookie(name,value,days) {
var expires = "";
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + (value || "") + expires + "; path=/";
}
$( document ).ready(function() {
$( "#cookieconsent" ).delay(500).slideDown( "slow", function() {
// Animation complete.
});
});
$("#hide").click(function(){
$( "#cookieconsent" ).slideUp( "slow", function() {
// Animation complete.
});
});
$("#consentbutton").unbind("click").click(function(){
setCookie("cookies_enabled", 1, 365);
$( "#cookieconsent" ).slideUp( "slow", function() {
// Animation complete.
});
$.ajax({
type: "POST",
dataType: "json",
url: "/new2/ajax_cookieconsent.php",
})
.done(function( msg ) {
/*alert ( "Thank you for consenting to cookies!" );*/
});
});
</script> <div class="breadcrumbs bigbold"><a href="/"><i class="fa fa-home"></i></a>&nbsp; <i class="fa fa-angle-right fa-lg"></i> &nbsp;<a href="/blogs.php">Blogs</a> &nbsp;<i class="fa fa-angle-right fa-lg"></i>&nbsp; <a href="/blogs-1/nf/Jason_Sachs.php">Jason Sachs</a> &nbsp;<i class="fa fa-angle-right fa-lg"></i></div><h1 class="blogheader" style="margin-bottom: 5px;">Which MOSFET topology?</h1><div class="bloginfo"><a href="/blogs-1/nf/Jason_Sachs.php" class="author">Jason Sachs</a><span class="bullet">&#x25CF;</span><span class="blue">September 1, 2011</span><span class="bullet">&#x25CF;</span><a href="/showarticle/98.php#comments" class="commentscount">9 comments</a><span style="float:right"><a href="https://twitter.com/share" class="twitter-share-button" data-via="EmbeddedRelated" data-size="large">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script><button class="pure-button button-more-small beerbutton" data-messageid="278" data-username="jms_nh" data-section="blogs" style="float: left; font-size: 0.9rem; padding: 5 8 4 8; margin: 0px 10px 10px 0;"><i class="fa fa-beer"></i> <span class="beerscount278">1</span></button></span></div><div id="navkw"><ul><li><a href="/blogs-1/nf/all/Tutorials.php" class="name">Tutorials</a></li><li><a href="/blogs-1/nf/all/Circuit_Design.php" class="name">Circuit Design</a></li><li><a href="/blogs-1/nf/all/Power_Electronics.php" class="name">Power Electronics</a></li></ul></div><div style="clear:both"></div><div id="blogarticle"><p>A recent <a href="http://electronics.stackexchange.com/questions/18884/switching-dc-with-mosfet-p-channel-or-n-channel-low-side-load-or-high-side-load">electronics.StackExchange question</a> brings up a good topic for discussion. Let's say you have a power supply and a 2-wire load you want to be able to switch on and off from the power supply using a MOSFET. How do you choose which circuit topology to choose? You basically have four options, shown below:</p>
<p><img src="//farm7.static.flickr.com/6185/6104306751_63213247ae.jpg" alt="" width="500" height="264" /></p>
<p>From left to right, these are:</p>
<ol>
<li>High-side switch, N-channel MOSFET</li>
<li>High-side switch, P-channel MOSFET</li>
<li>Low-side switch, N-channel MOSFET</li>
<li>Low-side switch, P-channel MOSFET</li>
</ol>
<p>Basically you can use an N-channel MOSFET or a P-channel MOSFET, and put the switch above the load or vice-versa.</p>
<p>A quick reminder about using MOSFETs: A MOSFET has 3 terminals, gate, drain, and source. I've illustrated drain and source with D and S, respectively; the other terminal is the gate. The MOSFET is controlled by the relative voltage Vgs between its gate terminal and its source terminal.</p>
<p>If Vgs = 0, the MOSFET is off and conducts essentially no current between its drain and source terminals (although there is parasitic leakage, usually specified as a maximum of 1-100uA). For an N-channel MOSFET, the current that flows between drain and source increases rapidly as Vgs increases above its gate-to-source threshold voltage Vgs(th); at some point the current that conducts is determined by the load resistance rather than the MOSFET, in which case the MOSFET behaves like a resistor between drain and source. The resistance depends on Vgs as well, and is specified in the data sheet for particular Vgs levels. Most MOSFETs are specified at either Vgs = 10V (for "regular" MOSFETS) or Vgs = 4.5V (for "logic-level" MOSFETS, so-called because they can be driven by a 5V logic power supply), although nowadays there are an increasing number of low-voltage MOSFETS that have resistance specified at 3.3, 2.5, or even 1.8Vgs.</p>
<p>The voltage between drain and source on an N-channel MOSFET must be positive, otherwise a parasitic body diode between drain and source conducts to keep the drain from being more than a voltage drop below the source.</p>
<p>There are other important parameters of MOSFETs that you need to be know about (parasitic gate-drain and gate-source capacitance), but let's forget those for now.</p>
<p>(A quick recap: Vgs determines the current that can potentially flow from drain to source. If that current can't flow because the load resistance is too high, then the MOSFET acts like a resistor rather than a current sink. There's a body diode that conducts if the drain is pulled below the source terminal)</p>
<p>For P-channel MOSFETs, the polarity is reversed. The source terminal is normally more positive than the drain, and the MOSFET is turned on by negative Vgs.</p>
<p>So back to our four topologies. The most common configurations are probably in this order:</p>
<p>&nbsp; 3. Low-side switch, N-channel MOSFET (easiest/cheapest)<br />&nbsp; 2. High-side switch, P-channel MOSFET<br />&nbsp; 1. High-side switch, N-channel MOSFET<br />&nbsp; 4. Low-side switch, P-channel MOSFET (you essentially never see this)</p>
<p>Why?</p>
<p>Well, let's think about it. MOSFETs are controlled by their gate voltage relative to the source terminal. Of the four topologies, the only one that is relative to circuit ground is the low-side N-channel switch. Driving this circuit is a piece of cake. You generate a voltage source of 0 volts to turn the MOSFET off, and 5 or 10V above ground to turn the MOSFET on. (See my earlier blog post, <a href="http://embeddedrelated.com/showarticle/77.php">Byte and Switch</a>, for some minor gotchas.)</p>
<p>To understand why you would use either topology #2 (high-side P-channel) or #1 (high-side N-channel), there are two very important things to consider:</p>
<h3>Circuit ground</h3>
<p>The word "ground" is often misused in electronics. What it's supposed to mean is a low-resistance connection to a reference voltage. If you have appliances at home with a metal chassis and a 3-prong plug, the chassis is connected to the 3rd prong, and when you plug it into the AC mains, it's connected to a metal post in your home that is sunk into the earth. (In a car, there's not a good conductive path to the earth, but the metal frame of the car is "ground"; in this and other applications that do not have a protective earth connection, the word "ground" is misleading and "return" is a better term.) This is done for two reasons: safety and electromagnetic interference (EMI).</p>
<p>The safety aspect is that the earth's ground potential is generally -- except in weird lightning storms -- a safe voltage, so you can touch a grounded metal chassis with your hand and stand on a floor and not worry about being electrocuted. Whereas if you stand on a floor and you touch an exposed piece of metal that is significantly different from earth ground, you are likely to get hurt. Different standards apply but the generally accepted threshold is in the 50-60V range.</p>
<p>The EMI aspect is that ground is a stable voltage potential, and if an appliance is packaged in a conductive chassis, the chassis acts as a shield to block both outgoing and incoming electromagnetic radiation. If you attach the chassis to another potential that wiggles up and down relative to ground, it acts as an antenna, and can both emit and receive unwanted electromagnetic radiation.</p>
<p>For both these reasons, there are many types of two-terminal electrical loads (pumps, fans, motors, heaters, etc.) where it works very well to connect one of the two terminals to circuit ground. If this is the case, we are forced to use a high-side switch, which rules out topologies #3 and #4.</p>
<p>Otherwise, there is almost no reason not to use the low-side N-channel MOSFET.</p>
<h3>N-channel and P-channel MOSFETs are not created equal</h3>
<p>The general rule of thumb is that for the same price or for a given die area (and price is proportional to the amount of silicon used, so these are well-correlated), you will get worse performance in a P-channel MOSFET than in an N-channel MOSFET. (The charge mobility in N-channel devices is better than P-channel devices; if you want to know more, you should ask someone else who knows more than I do about device physics.) On-resistance is a lot higher in P-channel MOSFETS. Furthermore, manufacturers generally offer more choices in N-channel devices, especially at voltages above 100V.</p>
<p>So, all other things being equal, you should use an N-channel MOSFET, because you have more device choices and higher performance for a given device cost.</p>
<p>So to recap: some applications require high-side switches because one terminal of the load needs to be tied to ground for safety/EMI reasons. And N-channel MOSFETs are cheaper than P-channel MOSFETs for the same performance specs. Got it?</p>
<p>If you need to use a high-side switch, you have a tradeoff to make: do you want the cheaper switch, or do you want the cheaper gate drive?</p>
<p>If you pick topology #1 (high-side N-channel MOSFET), the gate drive circuitry is a little tricky. You need to control Vgs, but the source voltage will get yanked up and down as the switch turns on and off, and when it's on, the gate voltage has to be 5-10V above the supply voltage Vcc. You either need an isolated power supply, or what's called a bootstrap power supply where the switch turning on/off runs a charge pump to transfer charge to a capacitor that rides up and down with the MOSFET source terminal. There are many integrated circuit high-side MOSFET drivers available, and if you're switching on and off rapidly (pulse-width modulation), this can work quite well.</p>
<p>If you pick topology #2 (high-side P-channel MOSFET), the gate drive circuitry is a little easier. To turn the MOSFET off, tie the gate to the supply voltage Vcc. To turn the MOSFET on, pull the gate 5-10V below the supply voltage Vcc. This is still harder to control than the low-side N-channel MOSFET, but it can be done. If the supply voltage is in the 5-15V range, then you can generally find a P-channel MOSFET so that you can just connect the gate voltage to either Vcc (MOSFET off) or circuit ground (MOSFET on).</p>
<p>The last topology, #4 (low-side P-channel MOSFET), uses the lower performance P-channel device and requires a tricky gate drive to be relative to the MOSFET source which varies as the switch turns on and off. You will essentially never see this used in practice -- there's no reason you shouldn't be able to use a low-side N-channel MOSFET instead to get the cost and complexity down.</p>
<p>So if the load doesn't need to be grounded, topology #3 (low-side N-channel) is the clear winner.</p>
<p>Finally, a reminder that we've skipped over an important detail that is missing from all 4 topologies shown. All loads, even a short length of wire, have some amount of inductance. A so-called "resistive" load like a heating element with a few feet of cable can still have a few microhenries of inductance. If you turn off the MOSFET, and you do not provide a path for the inductive current to flow, it will find its own path, by generating enough voltage to bring the MOSFET into breakdown conduction, and dissipate this energy in the MOSFET. Unless the inductance is small, you should use a freewheeling diode in parallel with the load to handle this current:</p>
<p><img src="//farm7.static.flickr.com/6061/6104996200_6c08c8aef4_m.jpg" alt="" width="121" height="240" /></p>
<p>Happy switching!</p><hr><b>Previous post by Jason Sachs:</b><BR>&nbsp;&nbsp;<a href="/showarticle/91.php"><i class="fa fa-hand-o-left"></i> Thermistor signal conditioning: Dos and Don'ts, Tips and Tricks</a><br /><b>Next post by Jason Sachs:</b><BR>&nbsp;&nbsp;<a href="/showarticle/100.php"><i class="fa fa-hand-o-right"></i> Complexity in Consumer Electronics Considered Harmful</a><br /></div><hr>
<div class="breadcrumbs biggerbold">You might also like... (promoted content)</div>
<div style="width:720px; margin: 10px auto;">
<div class="insight_container">
<div class="insight_img"><a href="/showinsight/88/IoT_Invisible_Keys"><img src="https://d23s79tivgl8me.cloudfront.net/new2/images/insights/88_200.jpg" width="200" alt=""></a></div>
<div class="insight_text"><a href="/showinsight/88/IoT_Invisible_Keys">Protecting the IoT with Invisible Keys</a></div>
</div>
<div class="insight_container">
<div class="insight_img"><a href="/showinsight/92/MSP430_Launchpad"><img src="https://d23s79tivgl8me.cloudfront.net/new2/images/insights/92_200.jpg" width="200" alt=""></a></div>
<div class="insight_text"><a href="/showinsight/92/MSP430_Launchpad">Meet the latest MSP430 LaunchPad development kit</a></div>
</div>
</div>
<div style="clear:both;"></div><hr><!--<img src="/new2/images/728x90.JPG" style="margin-bottom: 10px;">-->
<div id="cookieconsent" style="position: relative; display: none; width: 680px; height: 160px; padding: 20px; border-style: solid; border-width: 1px;"><div id="hide" style="cursor: pointer; position:absolute; bottom: 0; right: 0; background-color: #cccccc; padding-left: 4px; padding-right: 4px; font-size: 0.8rem;">hide</div><h3 style="margin-top:0px; margin-bottom:0px;"><a href="" rel="nofollow" target="_blank">This website uses cookies</a></h3>
<p style="margin-top:5px; margin-bottom:5px;">This site uses cookies to deliver our services and to show you relevant ads and job listings. By using our site, you acknowledge that you have read and understand our <a href="/cookies">Cookie Policy</a>, <a href="/privacy">Privacy Policy</a>, and our <a href="/terms">Terms of Service</a>. Your use of the Related Sites, including DSPRelated.com, FPGARelated.com, EmbeddedRelated.com and Electronics-Related.com, is subject to these policies and terms.</p><button id="consentbutton" class="pure-button button-more-small" style="float: right; margin: 10px 20px 10px 0;">I Understand! </button></div><div style="clear:both;"></div><script>
function setCookie(name,value,days) {
var expires = "";
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + (value || "") + expires + "; path=/";
}
$( document ).ready(function() {
$( "#cookieconsent" ).delay(500).slideDown( "slow", function() {
// Animation complete.
});
});
$("#hide").click(function(){
$( "#cookieconsent" ).slideUp( "slow", function() {
// Animation complete.
});
});
$("#consentbutton").unbind("click").click(function(){
setCookie("cookies_enabled", 1, 365);
$( "#cookieconsent" ).slideUp( "slow", function() {
// Animation complete.
});
$.ajax({
type: "POST",
dataType: "json",
url: "/new2/ajax_cookieconsent.php",
})
.done(function( msg ) {
/*alert ( "Thank you for consenting to cookies!" );*/
});
});
</script><h2>Comments:</h2><span class="txtCommentBlogTitle"><a name="comments"></a>
<div id="tab-container" class="tab-container">
<ul class="etabs">
<li class="tab"><a href="#tabs1-comments">Comments</a></li><li class="tab"><a href="#tabs1-newcomment"><i class="fa fa-pencil-square-o"></i> Write a Comment</a></li> <span class="tabhelp"><i class="fa fa-arrow-left"></i> Select to add a comment</span>
</ul>
<div class="panel-container-topborder">
<div id="tabs1-comments"><div id="posts"><div style="float: left; line-height: 40px; font-size: 1.5rem; margin-left:0; cursor: pointer;" class="toggle toggle1277 " data-toggle="1277">[ - ]</div><div class="replyheader bigbold" style="margin-left: 45px;">Comment by <span class="author">Cross</span><span class="whitebullet">&#x25CF;</span>July 11, 2013</div>
<div id="post1277" class="parent1277 "><div style="margin-left: 0px; float: left;"><div><img src="https://www.embeddedrelated.com/new/images/defaultavatar.jpg" class="user" alt=""></div><div><button class="pure-button button-more-small thumbsupbutton" data-thumbsup="1277" style="width: 59px; margin-top: 5px; padding-left: 8px; padding-right: 8px; font-size: 1rem;"><i class="fa fa-thumbs-up"></i> <span class="thumbsup1277">0</span></button></div><div></div></div>
<div class="forumpost forumpost1277" style="margin-left: 65px; ">
<div class="bodyhtml1277" style="display:inline-block; width:100%;">You have answered all my questions/concerns in a well written article. Thank you so much !
</div>
<div style="clear:both;"></div>
<span class="buttons1277"><a class="modal_trigger" href="#modal"><button class="pure-button button-more-small" style="float: right; margin: 10px 40px 10px 0;">Reply <i class="fa fa-reply"></i></button></a></span>
<div style="clear:both;"></div>
</div>
</div>
<div style="clear:both;"></div><div id="replyform1277" style="margin-left: 65px; "></div><div style="clear:both;"></div><div style="float: left; line-height: 40px; font-size: 1.5rem; margin-left:0; cursor: pointer;" class="toggle toggle1278 " data-toggle="1278">[ - ]</div><div class="replyheader bigbold" style="margin-left: 45px;">Comment by <span class="author">vinodkaruvat</span><span class="whitebullet">&#x25CF;</span>March 4, 2014</div>
<div id="post1278" class="parent1278 "><div style="margin-left: 0px; float: left;"><div><img src="https://www.embeddedrelated.com/new/images/defaultavatar.jpg" class="user" alt=""></div><div><button class="pure-button button-more-small thumbsupbutton" data-thumbsup="1278" style="width: 59px; margin-top: 5px; padding-left: 8px; padding-right: 8px; font-size: 1rem;"><i class="fa fa-thumbs-up"></i> <span class="thumbsup1278">0</span></button></div><div></div></div>
<div class="forumpost forumpost1278" style="margin-left: 65px; ">
<div class="bodyhtml1278" style="display:inline-block; width:100%;">hello sir,<br />I am using the IRF9321 P channel MOSFET for controlling my BLDC motor. The MOSFET is driven via a transistor which in turn is run by a freescale controller(<a rel="nofollow" target="blank" href="http://3.3V">3.3V</a> pin). Now, when turning it on, it works fine. But, when turning it off its a disaster with the MOSFET taking almost 5ms to come to '0' Volts. I have been through the datasheet and it says turn off delay time is 180nSecs (approx .1uSecs).<br /><br />Am I missing something? Also Sir, i have got no load.Its just to observe if the voltage comes out fine or not&gt; I intend to connect a BLDC Motor to it. Will a load connected make it work better.<br /><br />vinod
</div>
<div style="clear:both;"></div>
<span class="buttons1278"><a class="modal_trigger" href="#modal"><button class="pure-button button-more-small" style="float: right; margin: 10px 40px 10px 0;">Reply <i class="fa fa-reply"></i></button></a></span>
<div style="clear:both;"></div>
</div>
</div>
<div style="clear:both;"></div><div id="replyform1278" style="margin-left: 65px; "></div><div style="clear:both;"></div><div style="float: left; line-height: 40px; font-size: 1.5rem; margin-left:0; cursor: pointer;" class="toggle toggle1279 " data-toggle="1279">[ - ]</div><div class="replyheader bigbold" style="margin-left: 45px;">Comment by <span class="author">Daniel90</span><span class="whitebullet">&#x25CF;</span>June 9, 2014</div>
<div id="post1279" class="parent1279 "><div style="margin-left: 0px; float: left;"><div><img src="https://www.embeddedrelated.com/new/images/defaultavatar.jpg" class="user" alt=""></div><div><button class="pure-button button-more-small thumbsupbutton" data-thumbsup="1279" style="width: 59px; margin-top: 5px; padding-left: 8px; padding-right: 8px; font-size: 1rem;"><i class="fa fa-thumbs-up"></i> <span class="thumbsup1279">0</span></button></div><div></div></div>
<div class="forumpost forumpost1279" style="margin-left: 65px; ">
<div class="bodyhtml1279" style="display:inline-block; width:100%;">Hi Jason,<br /><br />I am a student. Can you explain what " more than a voltage drop " means in this paragraph : "The voltage between drain and source on an N-channel MOSFET must be positive, otherwise a parasitic body diode between drain and source conducts to keep the drain from being more than a voltage drop below the source."<br /><br />With other words, how would you say that? <br /><br />Sorry for my english.
</div>
<div style="clear:both;"></div>
<span class="buttons1279"><a class="modal_trigger" href="#modal"><button class="pure-button button-more-small" style="float: right; margin: 10px 40px 10px 0;">Reply <i class="fa fa-reply"></i></button></a></span>
<div style="clear:both;"></div>
</div>
</div>
<div style="clear:both;"></div><div id="replyform1279" style="margin-left: 65px; "></div><div style="clear:both;"></div><div style="float: left; line-height: 40px; font-size: 1.5rem; margin-left:20; cursor: pointer;" class="toggle toggle1280 toggle1279 " data-toggle="1280">[ - ]</div><div class="replyheader bigbold" style="margin-left: 65px;">Comment by <span class="author">jms_nh</span><span class="whitebullet">&#x25CF;</span>June 9, 2014</div>
<div id="post1280" class="parent1280 parent1279 "><div style="margin-left: 20px; float: left;"><div><img src="https://d23s79tivgl8me.cloudfront.net/user/profilepictures/88624.jpg" class="user" alt=""></div><div><button class="pure-button button-more-small thumbsupbutton" data-thumbsup="1280" style="width: 59px; margin-top: 5px; padding-left: 8px; padding-right: 8px; font-size: 1rem;"><i class="fa fa-thumbs-up"></i> <span class="thumbsup1280">0</span></button></div><div></div></div>
<div class="forumpost forumpost1280" style="margin-left: 85px; ">
<div class="bodyhtml1280" style="display:inline-block; width:100%;">Ah -- you found a typo. That should be "more than a diode drop". In other words if the drain is more than about <a rel="nofollow" target="blank" href="http://0.7-0.8V">0.7-0.8V</a> below the source, the diode will conduct and keep it from going any more negative.
</div>
<div style="clear:both;"></div>
<span class="buttons1280"><a class="modal_trigger" href="#modal"><button class="pure-button button-more-small" style="float: right; margin: 10px 40px 10px 0;">Reply <i class="fa fa-reply"></i></button></a></span>
<div style="clear:both;"></div>
</div>
</div>
<div style="clear:both;"></div><div id="replyform1280" style="margin-left: 85px; "></div><div style="clear:both;"></div><div style="float: left; line-height: 40px; font-size: 1.5rem; margin-left:0; cursor: pointer;" class="toggle toggle1281 " data-toggle="1281">[ - ]</div><div class="replyheader bigbold" style="margin-left: 45px;">Comment by <span class="author">ccp</span><span class="whitebullet">&#x25CF;</span>January 28, 2016</div>
<div id="post1281" class="parent1281 "><div style="margin-left: 0px; float: left;"><div><img src="https://www.embeddedrelated.com/new/images/defaultavatar.jpg" class="user" alt=""></div><div><button class="pure-button button-more-small thumbsupbutton" data-thumbsup="1281" style="width: 59px; margin-top: 5px; padding-left: 8px; padding-right: 8px; font-size: 1rem;"><i class="fa fa-thumbs-up"></i> <span class="thumbsup1281">0</span></button></div><div></div></div>
<div class="forumpost forumpost1281" style="margin-left: 65px; ">
<div class="bodyhtml1281" style="display:inline-block; width:100%;">Thank you for a very well written article, I learnt a lot. The only question I have now is:<br />For the topology #1 (high-side N-channel MOSFET), I understand that the Source must be connected to the power supply, and the Drain to the load, so in that case the Source has a higher voltage than the Drain. If the body diode has a forward voltage threshold of 2 volts and you have a power supply of 20 volts, how do you switch off the MOSFET? Doesn't the current continue flowing through the diode?
</div>
<div style="clear:both;"></div>
<span class="buttons1281"><a class="modal_trigger" href="#modal"><button class="pure-button button-more-small" style="float: right; margin: 10px 40px 10px 0;">Reply <i class="fa fa-reply"></i></button></a></span>
<div style="clear:both;"></div>
</div>
</div>
<div style="clear:both;"></div><div id="replyform1281" style="margin-left: 65px; "></div><div style="clear:both;"></div><div style="float: left; line-height: 40px; font-size: 1.5rem; margin-left:20; cursor: pointer;" class="toggle toggle1282 toggle1281 " data-toggle="1282">[ - ]</div><div class="replyheader bigbold" style="margin-left: 65px;">Comment by <span class="author">visitor79</span><span class="whitebullet">&#x25CF;</span>March 2, 2016</div>
<div id="post1282" class="parent1282 parent1281 "><div style="margin-left: 20px; float: left;"><div><img src="https://www.embeddedrelated.com/new/images/defaultavatar.jpg" class="user" alt=""></div><div><button class="pure-button button-more-small thumbsupbutton" data-thumbsup="1282" style="width: 59px; margin-top: 5px; padding-left: 8px; padding-right: 8px; font-size: 1rem;"><i class="fa fa-thumbs-up"></i> <span class="thumbsup1282">0</span></button></div><div></div></div>
<div class="forumpost forumpost1282" style="margin-left: 85px; ">
<div class="bodyhtml1282" style="display:inline-block; width:100%;">Actually, you’ve got it backwards. In topology #1 the drain is connected to the power supply and the source is connected to the load.
</div>
<div style="clear:both;"></div>
<span class="buttons1282"><a class="modal_trigger" href="#modal"><button class="pure-button button-more-small" style="float: right; margin: 10px 40px 10px 0;">Reply <i class="fa fa-reply"></i></button></a></span>
<div style="clear:both;"></div>
</div>
</div>
<div style="clear:both;"></div><div id="replyform1282" style="margin-left: 85px; "></div><div style="clear:both;"></div><div style="float: left; line-height: 40px; font-size: 1.5rem; margin-left:0; cursor: pointer;" class="toggle toggle1283 " data-toggle="1283">[ - ]</div><div class="replyheader bigbold" style="margin-left: 45px;">Comment by <span class="author">benk85</span><span class="whitebullet">&#x25CF;</span>April 30, 2016</div>
<div id="post1283" class="parent1283 "><div style="margin-left: 0px; float: left;"><div><img src="https://www.embeddedrelated.com/new/images/defaultavatar.jpg" class="user" alt=""></div><div><button class="pure-button button-more-small thumbsupbutton" data-thumbsup="1283" style="width: 59px; margin-top: 5px; padding-left: 8px; padding-right: 8px; font-size: 1rem;"><i class="fa fa-thumbs-up"></i> <span class="thumbsup1283">0</span></button></div><div></div></div>
<div class="forumpost forumpost1283" style="margin-left: 65px; ">
<div class="bodyhtml1283" style="display:inline-block; width:100%;">Low-side N-channel is usually the winner for some loads ( as per the article). However, if ground WAS important, then it seems that P-ch high side would be the better option, yes? I wish to use a MOSFET to turn on/off ( provide power) to an ADC and amplifier. The FET would be controlled by a GPIO of a microcontroller -- everything running from a <a rel="nofollow" target="blank" href="http://3.3VDC">3.3VDC</a> source.<br /><br />I am assuming that a P-ch high side configuration would be the better bet, yes?<br /><br />Thanks for any insight.<br />
</div>
<div style="clear:both;"></div>
<span class="buttons1283"><a class="modal_trigger" href="#modal"><button class="pure-button button-more-small" style="float: right; margin: 10px 40px 10px 0;">Reply <i class="fa fa-reply"></i></button></a></span>
<div style="clear:both;"></div>
</div>
</div>
<div style="clear:both;"></div><div id="replyform1283" style="margin-left: 65px; "></div><div style="clear:both;"></div><div style="float: left; line-height: 40px; font-size: 1.5rem; margin-left:20; cursor: pointer;" class="toggle toggle1284 toggle1283 " data-toggle="1284">[ - ]</div><div class="replyheader bigbold" style="margin-left: 65px;">Comment by <span class="author">jms_nh</span><span class="whitebullet">&#x25CF;</span>April 30, 2016</div>
<div id="post1284" class="parent1284 parent1283 "><div style="margin-left: 20px; float: left;"><div><img src="https://d23s79tivgl8me.cloudfront.net/user/profilepictures/88624.jpg" class="user" alt=""></div><div><button class="pure-button button-more-small thumbsupbutton" data-thumbsup="1284" style="width: 59px; margin-top: 5px; padding-left: 8px; padding-right: 8px; font-size: 1rem;"><i class="fa fa-thumbs-up"></i> <span class="thumbsup1284">0</span></button></div><div></div></div>
<div class="forumpost forumpost1284" style="margin-left: 85px; ">
<div class="bodyhtml1284" style="display:inline-block; width:100%;">You need a high-side MOSFET if it has to be grounded. P-channel high-side is simpler, and for low power stuff you're probably fine with a P-channel. (for high-power loads, where you need more silicon to carry the current, N-channel is cheaper, but you need a high-side gate driver)
</div>
<div style="clear:both;"></div>
<span class="buttons1284"><a class="modal_trigger" href="#modal"><button class="pure-button button-more-small" style="float: right; margin: 10px 40px 10px 0;">Reply <i class="fa fa-reply"></i></button></a></span>
<div style="clear:both;"></div>
</div>
</div>
<div style="clear:both;"></div><div id="replyform1284" style="margin-left: 85px; "></div><div style="clear:both;"></div><div style="float: left; line-height: 40px; font-size: 1.5rem; margin-left:20; cursor: pointer;" class="toggle toggle1285 toggle1283 " data-toggle="1285">[ - ]</div><div class="replyheader bigbold" style="margin-left: 65px;">Comment by <span class="author">jms_nh</span><span class="whitebullet">&#x25CF;</span>April 30, 2016</div>
<div id="post1285" class="parent1285 parent1283 "><div style="margin-left: 20px; float: left;"><div><img src="https://d23s79tivgl8me.cloudfront.net/user/profilepictures/88624.jpg" class="user" alt=""></div><div><button class="pure-button button-more-small thumbsupbutton" data-thumbsup="1285" style="width: 59px; margin-top: 5px; padding-left: 8px; padding-right: 8px; font-size: 1rem;"><i class="fa fa-thumbs-up"></i> <span class="thumbsup1285">0</span></button></div><div></div></div>
<div class="forumpost forumpost1285" style="margin-left: 85px; ">
<div class="bodyhtml1285" style="display:inline-block; width:100%;">FDV302P and FDV304P are good cheap P-channel MOSFETs for low-power loads. Both are spec'd at <a rel="nofollow" target="blank" href="http://2.7V">2.7V</a> Vgs.
</div>
<div style="clear:both;"></div>
<span class="buttons1285"><a class="modal_trigger" href="#modal"><button class="pure-button button-more-small" style="float: right; margin: 10px 40px 10px 0;">Reply <i class="fa fa-reply"></i></button></a></span>
<div style="clear:both;"></div>
</div>
</div>
<div style="clear:both;"></div><div id="replyform1285" style="margin-left: 85px; "></div><div style="clear:both;"></div></div><p>To post reply to a comment, click on the 'reply' button attached to each comment. To post a new comment (not a reply to a comment) check out the 'Write a Comment' tab at the top of the comments.</p></div>
<div id="tabs1-newcomment"><script type="text/javascript">
$(function() {
// Get the form.
// var form = $('#registerform');
// var form = $('.ajaxform2');
// Get the messages div.
var formMessages = $('.form-messages');
// Set up an event listener for the form.
// $(form).submit(function(e) {
$(document).delegate('#signup_signin form', 'submit', function(e) {
// Stop the browser from submitting the form.
e.preventDefault();
//alert($(this).parent().attr('id'));
var parent = $(this).parent().attr('id');
// alert (parent);
var form = $(this);
// Serialize the form data.
var formData = $(form).serialize();
// Submit the form using AJAX.
$.ajax({
type: 'POST',
url: $(form).attr('action'),
data: formData
})
.done(function(response) {
// Make sure that the formMessages div has the 'success' class.
//$(formMessages).removeClass('error');
//$(formMessages).addClass('success');
// Set the message text.
//$(formMessages).text(response);
//$('#'+parent+' .form-messages').html(response);
//$(registerform).html(response);
//$('#'+parent).html(response);
location.reload();
//window.location = window.location.pathname + window.location.hash;
/* $('#signup_signin').hide();
$('#signup_signin').html(response);
// Clear the form.
$('#name').val('');
$('#email').val('');
$('#message').val('');
// $('#loginbox').hide();
$('#loginbox').load("/new2/ajax_updateloginbox.php");
$('#signup_signin').fadeIn(1600);
// $('#loginbox').fadeIn(1600);
//if (document.getElementById('postform'))
if ($('#postform'))
{
$('#postform').load("/new2/ajax_showpostform.php?group=");
}
if ($('#you_form'))
{
$('#you_form').load("/new2/ajax_showyouform.php");
}*/
})
.fail(function(data) {
// Make sure that the formMessages div has the 'error' class.
//$(formMessages).removeClass('success');
//$(formMessages).addClass('error');
// Set the message text.
if (data.responseText !== '') {
// $(formMessages).html(data.responseText);
$('#'+parent+' .form-messages').html(data.responseText);
} else {
$('#'+parent+' .form-messages').text('Oops! An error occured and your message could not be sent.');
}
});
});
});
</script>
<div id="signup_signin">
<P>Registering will allow you to participate to the forums on ALL the related sites and give you access to all pdf downloads.</P><div id="registerleft" class="floatleft" style="width: 350px; padding-right: 20px; border-right: 1px solid #ccc;"> <form id="registerform" class="pure-form pure-form-stacked pure-form-stacked-custom" style="display: inline-block;" action="/new2/ajax_process_registration.php" method="post">
<fieldset>
<legend>Sign up</legend>
<div class="form-messages" style="display: inline-block; vertical-align: top; margin-bottom: 10px; color: red; width: 300px;"></div>
<!--<label for="email">Email:</label>-->
<!-- <i>Please note that there is currently an issue with <b>hotmail/outlook/msn/live</b> email adresses. If you enter an email address from one of these providers, you won't be able to confirm your email address and use the features of this website.</i>-->
<input id="email" type="email" name=email size=30 maxlength=100 required value="" placeholder="your email">
<!--<label for="username">Preferred Username:</label>-->
<input id="username" type="text" name=username size=30 maxlength=50 required value="" placeholder="choose a username">
<!--<label for="password">Password:</label>-->
<input id="password" name=passwd maxlength=16 type="password" required pattern=".{4,}" title="4 characters minimum" placeholder="password">
<!--<label for="password">Confirm Password:</label>-->
<input id="password" name=passwd2 maxlength=16 type="password" required pattern=".{4,}" title="4 characters minimum" placeholder="confirm password">
<BR><input type="checkbox" name="terms"> I agree with the <a href="/terms" target="_blank" style="text-decoration: underline;">terms of use</a> and <a href="/privacy" target="_blank" style="text-decoration: underline;">privacy policy</a>.<BR><br>
<input type="checkbox" name="newsletter"> Subscribe to occasional newsletter. VERY easy to unsubscribe.<br>
<!--<label for="useranswer">How much is 4+1 ?</label>-->
<!--<input id="useranswer" type="text" name=useranswer size=10 required value="" placeholder="4+1 = ?">-->
<!-- <label for="agree_pp">
<input id="agree_pp" type="checkbox"> I agree with the <a href="/privacy">Privacy Policy</a>
</label>-->
<div id="recaptcha1" style="margin-top: 10px; margin-bottom: 10px; transform:scale(0.88);-webkit-transform:scale(0.88);transform-origin:0 0;-webkit-transform-origin:0 0;" ></div>
<!-- <label for="remember" style="display: block;">
<input id="remember" type="checkbox" name="remember" value="checked" checked style="padding: 10px;"> Remember me
</label>-->
<button type="submit" value="Submit" class="pure-button button-more">Join EmbeddedRelated.com</button>
</fieldset>
</form>
</div><div id="loginright" class="floatright" style="width: 300px; padding-right: 30px;"> <form id="loginform" class="pure-form pure-form-stacked pure-form-stacked-custom" style="display: inline-block;" action="/new2/ajax_process_login.php" method="post">
<fieldset>
<legend>or Sign in</legend>
<div class="form-messages" style="display: inline-block; vertical-align: top; margin-bottom: 10px; color: red; width: 300px;"></div>
<!--<label for="username">Preferred Username:</label>-->
<input id="username" type="text" name=username size=30 maxlength=100 required value="" placeholder="Username or Email">
<!--<label for="password">Password:</label>-->
<input id="password" name=password maxlength=16 type="password" required placeholder="Password">
<label for="remember" style="display: block;">
<input id="remember" type="checkbox" name="remember" value="checked" checked style="padding: 10px;"> Remember me
</label>
<button type="submit" value="Submit" class="pure-button button-more">Login</button>
</fieldset>
</form>
</div></div>
<div style="clear:both;"></div>
</div>
</div>
</div> </div>
<div id="sidebar" data-sticky_column>
<div id="loginbox">
<h2>Sign in</h2>
<div class="sidebar_box">
<form name="login" class="pure-form" action="/showarticle/98.php" method="post">
<fieldset>
<input name="usernameposted" type="text" class="pure-input-login" placeholder="Username" required>
<input name="passwordposted" type="password" class="pure-input-login" placeholder="Password" required>
<button type="submit" class="pure-button pure-button-green">Sign in</button>
<label for="remember" style="display: block;">
<input id="remember" type="checkbox" name="remember" value="checked" checked style="padding: 10px;"> Remember me
</label>
</fieldset>
<span class="condensed"><a href="/forgot.php" class="green smallbold">Forgot username or password?</a> &nbsp;|&nbsp; <a href="/register.php" class="green smallbold">Create account</a></span>
</form>
</div></div><h2>You might also like...</h2><div class="sidebar_box"><a href="/showinsight/92/MSP430_Launchpad" target="_top" rel="nofollow"><img src="https://d23s79tivgl8me.cloudfront.net/new2/images/insights/92_300.jpg" class="insight_img_sidebar"><center><b><span class="bigfont">Meet the latest MSP430 LaunchPad development kit</span></b></center></a></div> <h2>Subscribe to this Blog</h2><div class="sidebar_box"><p>Receive a notification when <b>Jason Sachs</b> publishes a new article:</p><form name="subscribe" class="pure-form" action="/showarticle/98.php" method="post">
<fieldset>
<input name="youremail" type="text" class="pure-input-subscribe" placeholder="Your Email">
<button type="submit" class="pure-button pure-button-green">Subscribe</button>
</fieldset>
<input type="hidden" name="articleid" value="98">
</form></div> <h2>About Jason Sachs</h2>
<div class="sidebar_box">
<img src="https://d23s79tivgl8me.cloudfront.net/user/profilepictures/88624.jpg" width="59" height="54" align="left" class="imageleft user" />
<p>Jason has 21 years of experience in signal conditioning (both analog + digital) in motion control + medical applications. He likes making things spin.<BR><a href="https://twitter.com/jms_embedded"><i class="fa fa-twitter-square fa-2x"></i></a> <a href="/contact.php?contactid=88624"><i class="fa fa-envelope-square fa-2x"></i></a> <a href="https://www.embeddedrelated.com/blogs_rss.php?bloggerid=88624"><i class="fa fa-rss-square fa-2x"></i></a></p>
</div>
<div style="clear:both;"></div> <h2 >Popular Posts by Jason Sachs</h2><div class="sidebar_box iconnav"><ul>
<li><a href="/showarticle/532.php">Understanding and Preventing Overflow (I Had Too Much to Add Last Night)</a></li>
<li><a href="/showarticle/809.php">How to Read a Power MOSFET Datasheet</a></li>
<li><a href="/showarticle/197.php">Adventures in Signal Processing with Python</a></li>
<li><a href="/showarticle/779.php">Ten Little Algorithms, Part 2: The Single-Pole Low-Pass Filter</a></li>
<li><a href="/showarticle/1200.php">The Least Interesting Circuit in the World</a></li></ul>
</div> <h2>Blogs - Hall of Fame</h2>
<div class="sidebar_box">
<div class="halloffame">
<a href="https://www.embeddedrelated.com/showarticle/1187.php"><img src="https://d23s79tivgl8me.cloudfront.net/new2/images/blogs/1187.jpg" width="100" height="70" align="left" class="imageleft document" />
<p><span class="highlight">Sensors Expo 2018</span> Trip Report</a><BR><span class="author">Stephane Boucher</span></p>
<div style="clear:both;"></div>
</div>
<div class="halloffame">
<a href="https://www.embeddedrelated.com/showarticle/453.php"><img src="https://d23s79tivgl8me.cloudfront.net/new2/images/blogs/453.png" width="100" height="92" align="left" class="imageleft document" />
<p>Introduction to <span class="highlight">Microcontrollers</span></a><BR><span class="author">Mike Silva</span></p>
<div style="clear:both;"></div>
</div>
<div class="halloffame">
<a href="https://www.embeddedrelated.com/showarticle/629.php"><img src="https://d23s79tivgl8me.cloudfront.net/new2/images/blogs/629.png" width="100" height="78" align="left" class="imageleft document" />
<p>Important <span class="highlight">Programming</span> Concepts (Even on Embedded Systems)</a><BR><span class="author">Jason Sachs</span></p>
<div style="clear:both;"></div>
</div>
<div class="halloffame">
<a href="https://www.embeddedrelated.com/showarticle/195.php"><img src="https://d23s79tivgl8me.cloudfront.net/new2/images/blogs/357.png" width="100" height="88" align="left" class="imageleft document" />
<p>How <span class="highlight">FPGAs</span> Work and Why You'll Buy One</a><BR><span class="author">Yossi Krenin</span></p>
<div style="clear:both;"></div>
</div>
<div class="halloffame">
<a href="https://www.embeddedrelated.com/showarticle/179.php"><img src="https://d23s79tivgl8me.cloudfront.net/new2/images/blogs/179.png" width="100" height="121" align="left" class="imageleft document" />
<p><span class="highlight">MSP430</span> Launchpad Tutorial</a><BR><span class="author">Enrico Garante</span></p>
<div style="clear:both;"></div>
</div>
<div class="halloffame">
<a href="https://www.embeddedrelated.com/showarticle/498.php"><img src="https://d23s79tivgl8me.cloudfront.net/new2/images/blogs/498.png" width="100" height="97" align="left" class="imageleft document" />
<p><span class="highlight">Arduino</span> Robotics</a><BR><span class="author">Lonnie Honeycutt</span></p>
<div style="clear:both;"></div>
</div>
</div> <h2>Free PDF Downloads</h2>
<div class="sidebar_box">
<div class="imageleft" style="position: relative; width: 70px; float: left; margin: 0 10px 10px 0;">
<a href="/showabstract/221.php"><img src="/new2/Documents_Covers/221.70.jpg" width="70" align="left" style="position: relative;" class="imageleft document" /></a>
</div>
<span class="smallbold"><a href="/showabstract/221.php"><i class="fa fa-cloud-download"></i> Open Source in Embedded System Development</a></span>
<div style="clear:both"></div><div class="imageleft" style="position: relative; width: 70px; float: left; margin: 0 10px 10px 0;">
<a href="/showabstract/180.php"><img src="/new2/Documents_Covers/180.70.jpg" width="70" align="left" style="position: relative;" class="imageleft document" /></a>
</div>
<span class="smallbold"><a href="/showabstract/180.php"><i class="fa fa-cloud-download"></i> C++ Tutorial</a></span>
<div style="clear:both"></div><div class="imageleft" style="position: relative; width: 70px; float: left; margin: 0 10px 10px 0;">
<a href="/showabstract/210.php"><img src="/new2/Documents_Covers/210.70.jpg" width="70" align="left" style="position: relative;" class="imageleft document" /></a>
</div>
<span class="smallbold"><a href="/showabstract/210.php"><i class="fa fa-cloud-download"></i> Getting Started with C Programming for the ATMEL AVR Microcontrollers</a></span>
<div style="clear:both"></div><a href="/documents.php"><button class="pure-button button-more-small" style="float: right; margin: 10px 0px 10px 0;">All FREE PDF Downloads <i class="fa fa-arrow-circle-o-down fa-lg"></i> </button></a> <div style="clear:both"></div>
</div>
</div>
<div style="clear: both;"></div>
</div>
<div id="footer">
<div class="container">
<div class="footerbox">
<h2 class="smallfont">Quick Links</h2>
<ul>
<li><a href="/">Home</a></li><li><a href="/blogs.php">Blogs</a></li><li><a href="/tweets.php"><i class="fa fa-twitter fa-lg"></i> Tweets</a></li><li><a href="/forums">Forums</a></li><li><a href="/jobs">Jobs</a></li><li><a href="/Internet-of-Things.php">#IoT</a></li><li><a href="/tutorials.php">Tutorials</a></li><li><a href="/books.php">Books</a></li><li><a href="/documents.php">Free PDFs</a></li><li><a href="/vendors">Vendors</a></li><li><a href="/code.php">Code Snippets</a></li><li><a href="https://www.embeddedrelated.com/groups/comp.arch.embedded/1.php">comp.arch.embedded</a></li> </ul>
</div>
<div class="footerbox">
<h2>About EmbeddedRelated.com</h2>
<ul><li><a href="/showarticle/770/advertising-on-the-related-sites">Advertise</a></li><li><a href="/contact.php">Contact</a></li><li><a href="/privacy">Privacy Policy</a></li><li><a href="/terms">Terms of Service</a></li><li><a href="/cookies">Cookies Policy</a></li></ul>
</div>
<div class="footerbox">
<h2>Social Networks</h2>
<div class="socialbox floatleft"><a href="https://www.facebook.com/embeddedrelated"><i class="fa fa-facebook fa-2x darkblue" style="line-height: 30px;"></i></a></div>
<div class="socialbox floatleft"><a href="https://twitter.com/embeddedrelated"><i class="fa fa-twitter fa-2x darkblue" style="line-height: 30px;"></i></a></div>
<div class="socialbox floatleft"><a href="https://plus.google.com/+Embeddedrelated/posts"><i class="fa fa-google-plus fa-2x darkblue" style="line-height: 30px;"></i></a></div>
</div>
<div class="footerbox">
<a href="//www.embeddedrelated.com"><img src="https://d23s79tivgl8me.cloudfront.net/new2/images/EmbeddedRelated_logo.svg" width="260px" style="margin: 0; padding: 0; vertical-align: top;"></a>
<a href="//www.dsprelated.com"><img src="https://d23s79tivgl8me.cloudfront.net/new2/images/DSPRelated_logo.svg" width="260px" style="margin: 0; padding: 0; vertical-align: top;"></a>
<a href="//www.electronics-related.com"><img src="https://d23s79tivgl8me.cloudfront.net/new2/images/Electronics-Related_logo.svg" width="260px" style="margin: 0; padding: 0; vertical-align: top;"></a>
<a href="//www.fpgarelated.com"><img src="https://d23s79tivgl8me.cloudfront.net/new2/images/FPGARelated_logo.svg" width="260px" style="margin: 0; padding: 0; vertical-align: top;"></a>
</div>
</div>
</div>
<script type="text/javascript">
$(".modal_trigger").leanModal({top : 50, overlay : 0.6, closeButton: ".modal_close" });
$(function () {
// Calling Login Form
$("#login_form").click(function () {
$(".social_login").hide();
$(".user_login").show();
return false;
});
// Calling Register Form
$(".register_form").click(function () {
$(".user_login").hide();
$(".social_login").hide();
$(".user_register").show();
$(".header_title").text('Register');
return false;
});
// Going back to Social Forms
$(".back_btn").click(function () {
$(".user_login").show();
$(".user_register").hide();
$(".header_title").text('Login');
return false;
});
})
</script>
<script type="text/javascript">
$(function() {
// Get the form.
// var form = $('#registerform');
// var form = $('.ajaxform2');
// Get the messages div.
var formMessages = $('.form-messages');
// Set up an event listener for the form.
// $(form).submit(function(e) {
$(document).delegate('#registerform', 'submit', function(e) {
// Stop the browser from submitting the form.
e.preventDefault();
//alert($(this).parent().attr('id'));
var parent = $(this).parent().attr('id');
// alert (parent);
var form = $(this);
// Serialize the form data.
var formData = $(form).serialize();
// Submit the form using AJAX.
$.ajax({
type: 'POST',
url: $(form).attr('action'),
data: formData
})
.done(function(response) {
// Make sure that the formMessages div has the 'success' class.
//$(formMessages).removeClass('error');
//$(formMessages).addClass('success');
// Set the message text.
//$(formMessages).text(response);
//$('#'+parent+' .form-messages').html(response);
//$(registerform).html(response);
//$('#'+parent).html(response);
$('.user_register').hide();
$('.user_register').html(response);
$('#loginbox').load("/new2/ajax_updateloginbox.php");
$('.user_register').append('<input type="button" value="Close" class="btn btn_green" onClick="window.location.reload()">');
$('.modal_close').hide();
// location.reload();
// alert('test');
$('.user_register').fadeIn(1600);
})
.fail(function(data) {
// Make sure that the formMessages div has the 'error' class.
//$(formMessages).removeClass('success');
//$(formMessages).addClass('error');
// Set the message text.
if (data.responseText !== '') {
// $(formMessages).html(data.responseText);
$('.form-messages').html(data.responseText);
} else {
$('.form-messages').text('Oops! An error occured and your message could not be sent.');
}
});
});
});
</script>
<div id="modal" class="popupContainer" style="display:none;">
<header class="popupHeader">
<span class="header_title">Login</span>
<span class="modal_close"><i class="fa fa-times"></i></span>
</header>
<section class="popupBody">
<! -- Here Goes all the Login and signup Forms -->
<div class="user_login">
<p style="margin-top: 0px; padding-top: 0px;"></p>
<form name="login" action="/showarticle/98.php" method="post">
<label>Email / Username</label> <input type="text" name="usernameposted"><br>
<label>Password</label> <input type="password" name="passwordposted"><br>
<div class="action_btns">
<div class="one_half first">
<button type="submit" class="btn btn_green">Login</button>
</div>
</div>
</form>
<div class="forgot_password">
<a href="#" class="register_form" name="register_form">Create free account</a> | <a href="/new2/forgot.php">Forgot password?</a>
</div>
</div>
<div class="user_register">
<div class="form-messages" style="display: inline-block; vertical-align: top; margin-bottom: 10px; color: red;"> <!--<p><i>Please note that there is currently an issue with <b>hotmail/outlook/msn</b> email adresses. If you enter an email address from one of these providers, you won't be able to confirm your email address and use the features of this website.</i></p>--> </div>
<form id="registerform" action="/new2/ajax_process_registration.php" method="post">
<label>Email Address</label> <input type="email" name="email"><br>
<label>Username</label> <input type="text" name="username" maxlength="16"><br>
<label>Password</label> <input type="password" name="passwd"><br>
<label>Confirm Password</label> <input type="password" name="passwd2"><br>
<input type="checkbox" name="terms"> I agree with the <a href="/terms" target="_blank">terms of use</a> and <a href="/privacy" target="_blank">privacy policy</a>.<BR><br>
<input type="checkbox" name="newsletter"> Yes, I want to subscribe to your world famous newsletter and see for myself how great it is. I also understand that I can unsubscribe VERY easily!<br>
<div id="recaptcha1" style="margin-top: 10px; margin-bottom: 10px; transform:scale(0.88);-webkit-transform:scale(0.88);transform-origin:0 0;-webkit-transform-origin:0 0;"></div>
<!-- <div class="checkbox">
<input id="send_updates" type="checkbox" name="newsletter" checked> <label for=
"send_updates">Send me occasional email updates</label>
</div>-->
<div class="action_btns">
<div class="one_half">
<a class="btn back_btn" href="#">Back</a>
</div>
<div class="one_half last">
<button type="submit" class="btn btn_green">Register</button>
</div>
</div>
</form>
</div>
</section>
</div>
<!--<script src="https://www.embeddedrelated.com/new2/js/jquery.sticky-kit.js"></script>
<script src="https://www.embeddedrelated.com/new2/js/sticky_test.js"></script>-->
</body>
</html>