<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.7" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>The CircuitCalculator.com Blog</title>
	<link>http://circuitcalculator.com/wordpress</link>
	<description>a blog with live web calculators...</description>
	<pubDate>Thu, 17 Jul 2008 23:01:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.7</generator>
	<language>en</language>
			<item>
		<title>PCB Antennas</title>
		<link>http://circuitcalculator.com/wordpress/2008/04/25/pcb-antennas/</link>
		<comments>http://circuitcalculator.com/wordpress/2008/04/25/pcb-antennas/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 17:42:58 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
		
		<category>Electrical Engineering</category>

		<category>PCB</category>

		<guid isPermaLink="false">http://circuitcalculator.com/wordpress/2008/04/25/pcb-antennas/</guid>
		<description><![CDATA[ From time to time, I get questions about antennas (particularly PCB antennas), so I figured I would at least make a small &#8220;stub&#8221; of a post to serve as a place to discuss the topic.
For example, Sia writes &#8220;How can we find the impedance?&#8221;
For antenna impedance (and other antenna properties), there is no one [...]]]></description>
			<content:encoded><![CDATA[<p> From time to time, I get questions about antennas (particularly PCB antennas), so I figured I would at least make a small &#8220;stub&#8221; of a post to serve as a place to discuss the topic.</p>
<p>For example, Sia writes &#8220;How can we find the impedance?&#8221;</p>
<p>For antenna impedance (and other antenna properties), there is no one simple answer. The impedance of an antenna varies with the geometry of the antenna, frequency used, and proximity to ground planes and other nearby conductive objects. That is what makes them fun to learn about for some people and evil black magic to others. </p>
<p>The best thing I can recommend is to do a Google search on &#8220;antenna impedance&#8221; and become familiar with the various standard geometry antennas that you will find (e.g. quarter wave, half wave dipole, folded dipole, yagi, loop, etc.). Each type has specific impedance, gain, directionality, and other properties, so you can make some design trade-offs. Since you asked about impedance, you may also want to Google &#8220;RF impedance matching&#8221;.</p>
<p>The actual math behind antennas is pretty esoteric (3-D partial differential equations) and is usually taught in the 3rd or 4th year of electrical engineering programs, and even then, only if RF is selected as the area of concentration. It is worth noting that specialized software is often used to solve these kinds of problems.</p>
<p>Since this is a stub article, at this point I will open the floor to reader comments!
</p>
]]></content:encoded>
			<wfw:commentRss>http://circuitcalculator.com/wordpress/2008/04/25/pcb-antennas/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Save Your Back by Using a High Desk</title>
		<link>http://circuitcalculator.com/wordpress/2008/03/14/save-your-back-by-using-a-high-desk/</link>
		<comments>http://circuitcalculator.com/wordpress/2008/03/14/save-your-back-by-using-a-high-desk/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 19:14:17 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
		
		<category>Uncategorized</category>

		<category>Health</category>

		<guid isPermaLink="false">http://circuitcalculator.com/wordpress/2008/03/14/save-your-back-by-using-a-high-desk/</guid>
		<description><![CDATA[ Sitting actually puts a lot strain on your lower back. Over the years, working at a desk job can really injure your back so that you won&#8217;t be able to sit comfortably for extended periods of time anymore. After suffering such an injury myself, I found that the only way I could get back [...]]]></description>
			<content:encoded><![CDATA[<p> Sitting actually puts a lot strain on your lower back. Over the years, working at a desk job can really injure your back so that you won&#8217;t be able to sit comfortably for extended periods of time anymore. After suffering such an injury myself, I found that the only way I could get back to work was to use a desk high enough to stand at while working. I also have a chair that is high enough so I can alternate sitting and standing. Even if you end up sitting most of the time as I do these days, it is still well worth it. </p>
<p>Most modular office furniture can be <a id="more-81"></a>set to any height, so you can easily adjust your cubicle to have one part of the desk at stand-up height. Some ergonomic furniture companies sell desks for this purpose, or you can also find small high tables sold for use in bars or patios, use a drafting table, or construct your own setup. Whatever you get, make sure it is at the right height or can be modified.</p>
<p>To find the perfect table top height for you, stand with your arms at your sides and your shoulders relaxed. Gently raise your hands in front of you by bending at the elbows until your forearms are level with the ground. Have someone measure the height from the ground to your elbow. Set your table top to this height so you can rest your level forearm on the table with your shoulder completely relaxed.</p>
<p>Next, you need a tall chair. Many office supply stores sell adjustable chairs in this height range or you may find a good bar stool or drafting stool. The ideal chair height is so that you will be somewhere between standing height to six inches lower.</p>
<p>Finally, you will need a footrest. Your tall chair may also have its own footrest, but it will generally be too far under you, so is better to have one that is more in front of you. You should be able to have your hips and knees at 90 degree angles and your feet on a firm surface. I was able to find a cheap plastic patio furniture end table and cut the legs as needed. It is also quite easy to make one out of wood. Even a sturdy cardboard box will do in a pinch.</p>
<p>Well, there you have it. Use good posture, alternate standing and sitting, take occasional walks and stretch breaks, and your back will thank you!
</p>
]]></content:encoded>
			<wfw:commentRss>http://circuitcalculator.com/wordpress/2008/03/14/save-your-back-by-using-a-high-desk/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Schematic and PCB Design Process</title>
		<link>http://circuitcalculator.com/wordpress/2008/03/07/schematic-and-pcb-design-process/</link>
		<comments>http://circuitcalculator.com/wordpress/2008/03/07/schematic-and-pcb-design-process/#comments</comments>
		<pubDate>Sat, 08 Mar 2008 00:05:39 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
		
		<category>Uncategorized</category>

		<guid isPermaLink="false">http://circuitcalculator.com/wordpress/2008/03/07/schematic-and-pcb-design-process/</guid>
		<description><![CDATA[ Question:
I would like to know how a circuit designer in OrCAD plans the schematic and layout for the digital, analog, power, low speed high speed portion of the PCBs? 
Answer:
Wow, this is a big but good question! For anyone considering undertaking a schematic capture and PCB layout for the first time, it can seem [...]]]></description>
			<content:encoded><![CDATA[<p> <strong>Question:</strong><br />
I would like to know how a circuit designer in OrCAD plans the schematic and layout for the digital, analog, power, low speed high speed portion of the PCBs? </p>
<p><strong>Answer:</strong><br />
Wow, this is a big but good question! For anyone considering undertaking a schematic capture and PCB layout for the first time, it can seem like a daunting task. A modern PCB serves not just as a means to interconnect components, but also as a mechanical structure, heat conductor, noise shield, and even as a circuit element, and must go through a complex automated manufacturing process to boot.</p>
<p>Perhaps it is best to start with <a id="more-80"></a>a simple project to get your feet wet! Aside from that, it also helps to have some background knowledge about how electronic stuff works. Typically, at least a two year degree in electronics is recommended for anyone serious about PCB layout as a career. I can&#8217;t describe the whole process - that would take a book. What I can do is briefly touch on some of the basics to help you get started or even decide if PCB layout is something you really want to do.</p>
<p>Assuming you have a circuit design already and you just need to capture the schematic in OrCAD (or a similar tool) and do a PCB layout, I can propose some basic guidelines for how to approach it. As you mentioned, the design is partitioned into logical blocks like digital, analog, power, high speed, etc. It is good to keep the schematic and PCB layout also partitioned in this way. This will allow you to focus on the specific critical aspects of each type of circuitry throughout the process and avoid getting everything all tangled up.</p>
<p>If you are working on a medium to large scale project, there is generally a project team, so it couldn&#8217;t hurt to ask the Electrical and Mechanical Engineers who designed the thing and the Manufacturing Engineer who will build the thing and the Test Engineer who will test the thing what their design requirements are. The best way to do this is to have a PCB design kick-off meeting. Other team members may include the Customer, Quality, Reliability, Purchasing, Planning, and Safety representatives. As you go along, have the team sign-off at critical points.</p>
<p>Before drawing anything, start by reading the data sheets and application notes of any critical components to see what the recommendations are for PCB layout. A little bit of research up front can save a lot of time down the road!</p>
<p>Next, it is great to start by drawing a block diagram to use as a guide along the way. Ideally, the block diagram should be part of a hierarchical schematic that drives the design, but it can also be a separate sketch. It should have a logical flow e.g. from left-to-right and top-to-bottom. It should be the type of thing that can be used to show people how the thing works and updated as the project moves along.</p>
<p><strong>Now you are ready to fire up OrCAD or whatever design tools you are going to use.</strong></p>
<p><strong>Draw any new schematic symbols needed</strong><br />
ï¿½	To save time, first check for built in libraries or ones from part vendors or user groups<br />
ï¿½	Rather than start from scratch, modify an existing library part when possible<br />
ï¿½	Use a left-to-right and top-to-bottom flow of signals on the symbols<br />
ï¿½	Typically you place power pins on top and GND on bottom<br />
ï¿½	Double check all the symbols for correct pins! A mistake here can make a lot of mistakes in the PCB times the number of PCBs - You don&#8217;t want to go there.</p>
<p><strong>Capture each section of the circuit into the schematic</strong><br />
ï¿½	Again, use a left-to-right and top-to-bottom flow of signals on the schematic<br />
ï¿½	Each block can be on a page<br />
ï¿½	Draw critical circuitry like you want it to be laid out on the PCB (i.e. short lines where you want short traces etc.)<br />
ï¿½	Note any special design rules like length limits, required widths, or controlled impedances<br />
ï¿½	Name signals in a way that makes it easy to understand the schematic<br />
ï¿½	Add test points to critical signals (and lots of GND test points)<br />
ï¿½	Double check schematic against design source with a highlighter etc.<br />
ï¿½	Get approval from team</p>
<p><strong>Draw any required new PCB footprints and pad stacks</strong><br />
ï¿½	To save time, first check for built in libraries or ones from part vendors or user groups<br />
ï¿½	Follow vendor guidelines if available, else use industry standards<br />
ï¿½	Consult with the manufacturing engineer about process specific requirements</p>
<p><strong>Proceeding to PCB Layout</strong><br />
ï¿½	Draw board outline with critical cut-outs, mounting holes, and keep outs<br />
ï¿½	Sketch &#8220;rooms&#8221; corresponding to each block onto the board outline<br />
ï¿½	Decide on number of layers, copper thickness, and board stack-up arrangement. This is a function of board density, the sheer number of signals and power planes needed, the controlled impedance scheme, heat conduction requirements, etc.<br />
ï¿½	Consider routing adjacent signal layers with horizontal / vertical routes to obtain perpendicular overlap. This reduces cross talk and eases routing.<br />
ï¿½	Place critical components and get approval on the initial placement from the team<br />
ï¿½	Route critical traces and planes, and then route the rest<br />
ï¿½	Do a clean up pass to fix any odd things, improve silk screen, etc.</p>
<p><strong>Here are some bullets to keep in mind when doing PCB layout for each type of circuit:</strong></p>
<p><strong>Low Speed Digital</strong><br />
ï¿½	Not very susceptible to noise<br />
ï¿½	Generates a medium amount of noise, so keep it away from the most noise sensitive circuits<br />
ï¿½	The most active signals are the most noisy<br />
ï¿½	Other than that, layout is not too critical and this can be placed around the board as kind of a &#8220;filler&#8221; in places where nothing else will want to go and can be easily auto-routed.</p>
<p><strong>High Speed Digital</strong><br />
ï¿½	Same as low speed digital, plus the following:<br />
ï¿½	There can be a very high number of interconnecting traces<br />
ï¿½	Generally uses controlled impedance traces<br />
ï¿½	Requires controlled, minimized, or matched signal delay times and proper location of termination devices<br />
ï¿½	Can generate some serious heat - added copper planes to conduct heat away and heat sinks will need to be designed in</p>
<p><strong>Analog</strong><br />
ï¿½	Usually very sensitive to noise pickup<br />
ï¿½	Keep away from noise generators<br />
ï¿½	High impedance nodes and nodes followed by a lot of gain are generally most sensitive to noise<br />
ï¿½	Look for recommended grounding and shielding in application notes<br />
ï¿½	May also be sensitive to surface leakage currents, temperature, etc<br />
ï¿½	Power amplifiers may generate significant heat - added copper planes to conduct heat away and heat sinks will need to be designed in</p>
<p><strong>Power</strong><br />
ï¿½	Can generate a lot of noise (esp. switching power supplies, class D amplifiers, etc)<br />
ï¿½	At the same time, some nets are very sensitive to noise (i.e. sense and feedback nets)<br />
ï¿½	Can generate a lot of heat - added copper planes to conduct heat away and heat sinks will need to be designed in<br />
ï¿½	Switching nodes are sensitive to layout parasitic inductance and capacitance<br />
ï¿½	Keep high AC currents confined to small loop areas to reduce noise<br />
ï¿½	May involve high voltage and safety issues, special spacing and insulation requirements</p>
<p><strong>RF</strong><br />
ï¿½	Uses controlled impedance traces<br />
ï¿½	May require traces to be designed as antennas (requires RF design background)<br />
ï¿½	Receivers are very sensitive to noise<br />
ï¿½	Transmitters generate noise and dissipate heat proportional to the power involved<br />
ï¿½	Again, added copper planes to conduct heat away and heat sinks will need to be designed in<br />
ï¿½	Requires special attention to shielding and grounding
</p>
]]></content:encoded>
			<wfw:commentRss>http://circuitcalculator.com/wordpress/2008/03/07/schematic-and-pcb-design-process/feed/</wfw:commentRss>
		</item>
		<item>
		<title>3-Phase Calculations</title>
		<link>http://circuitcalculator.com/wordpress/2008/01/05/3-phase-calculations/</link>
		<comments>http://circuitcalculator.com/wordpress/2008/01/05/3-phase-calculations/#comments</comments>
		<pubDate>Sun, 06 Jan 2008 01:05:32 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
		
		<category>Calculators</category>

		<category>Electrical Engineering</category>

		<guid isPermaLink="false">http://circuitcalculator.com/wordpress/2008/01/05/3-phase-calculations/</guid>
		<description><![CDATA[Here is a Zoho Sheet to do various 3-Phase calculations. It can convert between line-to-line and line-to-neutral voltages, find current based on apparent power (KVA), and choose the required wire cross sectional area to meet the target voltage drop. When designing such a system, you must also meet all applicable laws and safety codes.
It is [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a <a href="http://sheet.zoho.com/publish.do?docurl=gz64rMdqLY6DoC2Am6XqrQ%3D%3D&#038;name=bfnmx%2BID02I%3D" target=_blank>Zoho Sheet</a> to do various 3-Phase calculations. It can convert between line-to-line and line-to-neutral voltages, find current based on apparent power (KVA), and choose the required wire cross sectional area to meet the target voltage drop. When designing such a system, you must also meet all applicable laws and safety codes.</p>
<p>It is embedded below <a id="more-79"></a>and can also be <a href="http://sheet.zoho.com/publish.do?docurl=gz64rMdqLY6DoC2Am6XqrQ%3D%3D&#038;name=bfnmx%2BID02I%3D" target=_blank>opened in its own window</a>.</p>
<p><iframe width="460" height="680" frameborder="0" scrolling="no" src="http://sheet.zoho.com/publish.do?docurl=gz64rMdqLY6DoC2Am6XqrQ%3D%3D&#038;name=bfnmx%2BID02I%3D"> </iframe>
</p>
]]></content:encoded>
			<wfw:commentRss>http://circuitcalculator.com/wordpress/2008/01/05/3-phase-calculations/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wire Parameter Calculator</title>
		<link>http://circuitcalculator.com/wordpress/2007/09/20/wire-parameter-calculator/</link>
		<comments>http://circuitcalculator.com/wordpress/2007/09/20/wire-parameter-calculator/#comments</comments>
		<pubDate>Thu, 20 Sep 2007 22:32:28 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
		
		<category>Calculators</category>

		<category>Electrical Engineering</category>

		<guid isPermaLink="false">http://circuitcalculator.com/wordpress/2007/09/20/wire-parameter-calculator/</guid>
		<description><![CDATA[ 
This Javascript web calculator will calculate the resistance and ampacity for copper wire based on the gauge. Both metric (mm) and American Wire Gauge (AWG) are supported. Note: Ampacity is based on a curve fit to MIL-STD-975. To see the wire table that this calculator is based on as well as important information about [...]]]></description>
			<content:encoded><![CDATA[ <P>
This Javascript web calculator will calculate the resistance and ampacity for copper wire based on the gauge. Both metric (mm) and American Wire Gauge (AWG) are supported. Note: Ampacity is based on a curve fit to MIL-STD-975. To see the wire table that this calculator is based on as well as important information about wire insulation temperature ratings, click <a target=_blank href="http://circuitcalculator.com/wordpress/wp-content/uploads/2007/12/mil_std_975_wire.htm">here</a>. 
</P>
<P><STRONG>Features:</STRONG></P>
<ul>
	<li>
		Results update as you type</li>
	<li>
		Several choices of units</li>
	<li>
		Units and other settings are saved between sessions</li>
	<li>
		Blog format allows user comments</li>
</ul>
<P>Note: To go below 0 AWG, for example 00 AWG, enter -1 and so on. 
</P>
<P><STRONG>Inputs:<BR>
	</STRONG>
	<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="300" bgColor="#ffffcc" border="1">
		<TR>
			<TD>Wire Size</TD>
			<TD><INPUT id="awgText1" onkeyup="awg_calc()" type="text" size="8" value="20" name="awgText1"></TD>
			<TD><SELECT id="awgSelect1" onchange="awg_calc()" name="awgSelect1">
					<OPTION value="AWG" selected>AWG</OPTION>
					<OPTION value="mm">mm</OPTION>
				</SELECT></TD>
		</TR>
	</TABLE>
</P>
<P><STRONG>Optional Inputs:<BR>
	</STRONG>
	<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="300" bgColor="#ffffcc" border="1">
		<TR>
			<TD>Wire Temperature</TD>
			<TD><INPUT id="awgText2" onkeyup="awg_calc()" type="text" size="8" value="25" name="awgText2"></TD>
			<TD>
				Deg.&nbsp;<SELECT id="awgSelect2" onchange="awg_calc()" name="awgSelect2">
					<OPTION value="C" selected>C</OPTION>
					<OPTION value="F">F</OPTION>
				</SELECT></TD>
		</TR>
		<TR>
			<TD>Wire Length</TD>
			<TD><INPUT id="awgText3" onkeyup="awg_calc()" type="text" size="8" value="1" name="awgText3"></TD>
			<TD>
				<SELECT id="awgSelect3" onchange="awg_calc()" name="awgSelect3">
					<OPTION value="3.28084">m</OPTION>
					<OPTION value="0.0328084">cm</OPTION>
					<OPTION value="1.0" selected>ft</OPTION>
					<OPTION value="0.0833333">inches</OPTION>
				</SELECT></TD>
		</TR>
		<TR>
			<TD>Number of Wires in Bundle</TD>
			<TD><INPUT id="awgText4" onkeyup="awg_calc()" type="text" size="8" value="15" name="awgText4"></TD>
			<TD></TD>
		</TR>
	</TABLE>
</P>
<P><STRONG>Results (per each wire):<BR>
	</STRONG>
	<TABLE id="Table3" cellSpacing="1" cellPadding="1" width="300" bgColor="#ccffcc" border="1">
		<TR>
			<TD>Resistance</TD>
			<TD><INPUT id="awgText5" onkeyup="awg_calc()" type="text" size="8" name="awgText5"></TD>
			<TD>Ohms</TD>
		</TR>
		<TR>
			<TD>Single Wire Ampacity</TD>
			<TD><INPUT id="awgText6" onkeyup="awg_calc()" type="text" size="8" name="awgText6"></TD>
			<TD>Amps</TD>
		</TR>
		<TR>
			<TD>Wire Bundle Ampacity (per wire)</TD>
			<TD><INPUT id="awgText7" onkeyup="awg_calc()" type="text" size="8" name="awgText7"></TD>
			<TD>Amps</TD>
		</TR>
		<TR>
			<TD>Copper Diameter</TD>
			<TD><INPUT id="awgText8" onkeyup="awg_calc()" type="text" size="8" name="awgText8"></TD>
			<TD>
				<SELECT id="awgSelect4" onchange="awg_calc()" name="awgSelect4">
					<OPTION value="mils" selected>mils</OPTION>
					<OPTION value="mm">mm</OPTION>
					<OPTION value="AWG">AWG</OPTION>
				</SELECT></TD>
		</TR>
		<TR>
			<TD>Copper Area</TD>
			<TD><INPUT id="awgText9" onkeyup="awg_calc()" type="text" size="8" name="awgText9"></TD>
			<TD><SELECT id="awgSelect5" onchange="awg_calc()" name="awgSelect5">
					<OPTION value="1.0" selected>mils^2</OPTION>
					<OPTION value="0.000645">mm^2</OPTION>
				</SELECT></TD>
		</TR>
		<TR>
			<TD>Copper Weight</TD>
			<TD><INPUT id="awgText10" onkeyup="awg_calc()" type="text" size="8" name="awgText10"></TD>
			<TD><SELECT id="awgSelect6" onchange="awg_calc()" name="awgSelect6">
					<OPTION value="1.0" selected>kg</OPTION>
					<OPTION value="1000.0">g</OPTION>
					<OPTION value="2.20462262">lbs</OPTION>
					<OPTION value="35.2739619">oz</OPTION>
				</SELECT></TD>
		</TR>
	</TABLE>
</P>
<script language="javascript" src="http://circuitcalculator.com/js/pcpcookielib/pcpcookielib.js">
</script>
<script language="javascript">
	//copyright circuitcalculator.com
	//please do not copy without permission
	function DiameterMils(AWG) {
		var d1 = 5
		var d2 = 460
		var g1 = 36
		var g2 = -3
		return Math.pow( d1 , (AWG - g2) / (g1 - g2) ) * Math.pow( d2 , (g1 - AWG) / (g1 - g2) )
	}
	function AWG(d) {
		//d is in mils
		var d1 = 5
		var d2 = 460
		var g1 = 36
		var g2 = -3
		return (g1*Math.log(d/d2) + g2*Math.log(d1/d))/(Math.log(d1/d2))
	}
	function awg_calc() {
	var ws=document.getElementById("awgText1").value;// -> mils
	var wt=document.getElementById("awgText2").value;// -> deg C
	var wl=document.getElementById("awgText3").value;// -> feet
	var nw=document.getElementById("awgText4").value;
	var ws_unit=document.getElementById("awgSelect1").value;
	var wt_unit=document.getElementById("awgSelect2").value;
	var wl_unit=document.getElementById("awgSelect3").value;
	var cd_unit=document.getElementById("awgSelect4").value;
	var ca_unit=document.getElementById("awgSelect5").value;
	var cw_unit=document.getElementById("awgSelect6").value;
	//convert ws to mils
	switch (ws_unit){
		case (ws_unit="AWG"):
			ws=DiameterMils(ws);
		break
		case (ws_unit="mm"):
			ws=ws*100/2.54;
		break
	}
	//convert wt to deg C
	if (wt_unit=="F"){
		wt=(wt-32)*5/9;
	}
	//convert wl to feet
	wl=wl*wl_unit;
	
	//main calcs
	var area_cm=ws*ws;//circular mils
	var wr = wl * (10.371 / area_cm) * (1 + 0.00393 * (wt - 20));
	//single wire ampacity
	var swa = 167.3296 * Math.pow(0.847754,AWG(ws));
	//wire bundle ampacity
	var wba = swa * (29 - Math.max(Math.min(15,nw),1)) / 28;
	//copper diameter
	var cd;
	switch (cd_unit){
		case (cd_unit="AWG"):
			cd=AWG(ws);
		break
		case (cd_unit="mm"):
			cd=ws*2.54/100;
		break
		case (cd_unit="mils"):
			cd=ws;
		break
	}
	//copper area
	var ca=Math.PI*ws*ws/4; //mils^2
	ca=ca*ca_unit;
	
	//copper weight
	//copper density = 8.96 g/cm^3
	var cw=ws*ws*wl*cw_unit/722636.2

	//output
	document.getElementById("awgText5").value=wr.toPrecision(3)
	document.getElementById("awgText6").value=swa.toPrecision(3)
	document.getElementById("awgText7").value=wba.toPrecision(3)
	document.getElementById("awgText8").value=cd.toPrecision(3)
	document.getElementById("awgText9").value=ca.toPrecision(3)
	document.getElementById("awgText10").value=cw.toPrecision(3)
	}
	function awg_save(){
		userCookie.put("awg_text1", document.getElementById("awgText1").value)
		userCookie.put("awg_text2", document.getElementById("awgText2").value)
		userCookie.put("awg_text3", document.getElementById("awgText3").value)
		userCookie.put("awg_text4", document.getElementById("awgText4").value)
		userCookie.put("awg_sel1", document.getElementById("awgSelect1").value)
		userCookie.put("awg_sel2", document.getElementById("awgSelect2").value)
		userCookie.put("awg_sel3", document.getElementById("awgSelect3").value)
		userCookie.put("awg_sel4", document.getElementById("awgSelect4").value)
		userCookie.put("awg_sel5", document.getElementById("awgSelect5").value)
		userCookie.write()
	}
	
	userCookie  = new cookieObject("awg_form", 365, "/", "awg_text1", "awg_text2", "awg_text3", "awg_text4", "awg_sel1", "awg_sel2", "awg_sel3", "awg_sel4", "awg_sel5")
	if (userCookie.found) {
		document.getElementById("awgText1").value=userCookie.get("awg_text1")
		document.getElementById("awgText2").value=userCookie.get("awg_text2")
		document.getElementById("awgText3").value=userCookie.get("awg_text3")
		document.getElementById("awgText4").value=userCookie.get("awg_text4")
		document.getElementById("awgSelect1").value=userCookie.get("awg_sel1")
		document.getElementById("awgSelect2").value=userCookie.get("awg_sel2")
		document.getElementById("awgSelect3").value=userCookie.get("awg_sel3")
		document.getElementById("awgSelect4").value=userCookie.get("awg_sel4")
		document.getElementById("awgSelect5").value=userCookie.get("awg_sel5")
	}
	else {
		window.status=window.status+" cookie not found"
	}
	
	awg_calc()
	window.onunload=function() { awg_save() }
</script> ]]></content:encoded>
			<wfw:commentRss>http://circuitcalculator.com/wordpress/2007/09/20/wire-parameter-calculator/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hex, Decimal, and Binary Converter</title>
		<link>http://circuitcalculator.com/wordpress/2007/06/29/hex-decimal-and-binary-converter/</link>
		<comments>http://circuitcalculator.com/wordpress/2007/06/29/hex-decimal-and-binary-converter/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 20:40:35 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
		
		<category>Calculators</category>

		<category>Electrical Engineering</category>

		<guid isPermaLink="false">http://circuitcalculator.com/wordpress/2007/06/29/hex-decimal-and-binary-converter/</guid>
		<description><![CDATA[ 
This web calculator converts numbers between the hexadecimal (hex), decimal, and binary formats. The calculator was designed to allow easy conversion between any of these three formats. This task is very common for those working with digital hardware and software including microcontrollers, DSP's, FPGA, etc. 


Tips:

Type a number into any cell below and it [...]]]></description>
			<content:encoded><![CDATA[ <P>
This web calculator converts numbers between the <a target=_blank href="http://en.wikipedia.org/wiki/Hexadecimal">hexadecimal</a> (hex), <a target=_blank href="http://en.wikipedia.org/wiki/Decimal">decimal</a>, and <a target=_blank href="http://en.wikipedia.org/wiki/Binary_numeral_system">binary</a> formats. The calculator was designed to allow easy conversion between any of these three formats. This task is very common for those working with digital hardware and software including microcontrollers, DSP's, FPGA, etc. <a id="more-73"></a>
</P>
<P>
<STRONG>Tips:</STRONG>
<UL>
<LI>Type a number into any cell below and it will be converted into the other two formats.<BR>
<LI>Updates occur automatically as you type.
</UL>
</P>
<P><STRONG>User Inputs and Results:</STRONG><BR>
	<TABLE id="h2dTable1" cellSpacing="1" cellPadding="1" width="300" bgColor="#ffffcc" border="1">
		<TR>
			<TD>Hex:</TD>
			<TD><INPUT id="h2dText1" onkeyup="h2d_calc()" type="text" size="8" value="FF" name="h2dText1"></TD>
		</TR>
		<TR>
			<TD>Decimal:</TD>
			<TD><INPUT id="h2dText2" onkeyup="d2h_calc()" type="text" size="8" value="" name="h2dText2"></TD>
		</TR>
		<TR>
			<TD>Binary:</TD>
			<TD><INPUT id="h2dText3" onkeyup="b2d_calc()" type="text" size="18" value="" name="h2dText3"></TD>
		</TR>
	</TABLE>
</P>
<P><STRONG>Option Scale Factors:</STRONG><BR>
	<TABLE id="h2dTable2" cellSpacing="1" cellPadding="1" width="300" bgColor="#ccffcc" border="1">
		<TR>
			<TD>A:</TD>
			<TD><INPUT id="h2dText4" onkeyup="scale_calc()" type="text" size="8" value="2" name="h2dText4"></TD>
		</TR>
		<TR>
			<TD>B:</TD>
			<TD><INPUT id="h2dText5" onkeyup="scale_calc()" type="text" size="8" value="255" name="h2dText5"></TD>
		</TR>
		<TR>
			<TD>C:</TD>
			<TD><INPUT id="h2dText6" onkeyup="scale_calc()" type="text" size="8" value="0" name="h2dText6"></TD>
		</TR>
	</TABLE>
<P><STRONG>Scaled Result = Decimal_Value*A/B + C</STRONG><BR>
	<TABLE id="h2dTable3" cellSpacing="1" cellPadding="1" width="300" bgColor="#ccffff" border="1">
		<TR>
			<TD>Scaled Result:</TD>
			<TD><INPUT id="h2dText7" onkeyup="scale_calc()" type="text" size="8" value="" name="h2dText7"></TD>
		</TR>
	</TABLE>
</P>
<P>
As an example, the Scale factors can be used for an 8-bit A/D converter. With a 2V full scale, A=2, B=255, and C=0. The scale factors may be changed as desired.
</P>
<BR>
<script language="javascript">
//copyright circuitcalculator.com
//please do not copy without permission
function d2h(d) {return d.toString(16).toUpperCase();}
function d2b(d) {return d.toString(2);}
function h2d(h) {return parseInt(h,16);}
function b2d(h) {return parseInt(h,2);}
function h2d_calc() {
document.getElementById("h2dText2").value=h2d(document.getElementById("h2dText1").value);
document.getElementById("h2dText3").value=d2b(1*document.getElementById("h2dText2").value);
scale_calc()
}
function d2h_calc() {
document.getElementById("h2dText1").value=d2h(1*document.getElementById("h2dText2").value);
document.getElementById("h2dText3").value=d2b(1*document.getElementById("h2dText2").value);
scale_calc()
}
function b2d_calc() {
document.getElementById("h2dText2").value=b2d(document.getElementById("h2dText3").value);
document.getElementById("h2dText1").value=d2h(1*document.getElementById("h2dText2").value);
scale_calc()
}
function scale_calc() {
document.getElementById("h2dText7").value=1*document.getElementById("h2dText2").value*document.getElementById("h2dText4").value/document.getElementById("h2dText5").value+1*document.getElementById("h2dText6").value;
}
h2d_calc()

/*
to do
*/
</script> ]]></content:encoded>
			<wfw:commentRss>http://circuitcalculator.com/wordpress/2007/06/29/hex-decimal-and-binary-converter/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Skin Effect Calculator</title>
		<link>http://circuitcalculator.com/wordpress/2007/06/18/skin-effect-calculator/</link>
		<comments>http://circuitcalculator.com/wordpress/2007/06/18/skin-effect-calculator/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 23:25:48 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
		
		<category>Electrical Engineering</category>

		<category>PCB</category>

		<guid isPermaLink="false">http://circuitcalculator.com/wordpress/2007/06/18/skin-effect-calculator/</guid>
		<description><![CDATA[ 
Electrical current always flows in the path that results in the lowest expenditure of energy. At lower frequencies, current flows in a path that reduces I^2*R losses. This is the path of shortest distance and is fairly intuitive to think about.


At higher frequencies, things get a little strange. Current takes the path of lowest [...]]]></description>
			<content:encoded><![CDATA[ <P>
Electrical current always flows in the path that results in the lowest expenditure of energy. At lower frequencies, current flows in a path that reduces I^2*R losses. This is the path of shortest distance and is fairly intuitive to think about.
</P>
<P>
At higher frequencies, things get a little strange. <a id="more-69"></a>Current takes the path of lowest inductance which is also the path of smallest loop area. This results in lower energy being stored in the magnetic field. So current will be concentrated along surfaces so it can be closer to the currents in the return path. In a related phenomenon called the proximity effect, at high frequencies, a PCB trace's return current in the ground plane will hug along the trace no matter how crooked that trace may be. Although this is not the shortest distance, it results in the smallest loop area.
</P>
<P>
So, at high frequencies, current does not flow evenly throughout the entire cross-section of the conductor but is more concentrated at the surface. The higher the frequency, the more the current is concentrated on the surface. This results in higher I^2*R losses at higher frequencies. 
</P>
<P>
The current density varies exponentially as a function of depth from the surface of the wire. However, it is helpful to think in terms of a skin depth. The skin depth is defined as the depth at which a hollow conductor carrying DC would have the same loss as a given solid conductor carrying AC. In other words, the conductor is behaving as if it has been hollowed out. Making a conductor thicker than the skin depth does not have much effect on lowering losses. One may design a very thick conductor only to find that most of the copper is not being used.
</P>
<P>
Although the skin effect is generally associated with RF and microwave circuitry, it often plays a significant role in switching power electronics, transformers, motors, and high power AC transmission lines. Whenever designing conductors for anything other than DC, it is advisable to be aware of the skin depth (a.k.a. depth of penetration).
</P>
<P>
For copper at 100 deg. C, the skin depth is given by:
</P>
<P>
Skin_Depth = 7.6/SQRT(Frequency) [cm]<br />
where, Frequency is in [Hz]
</P>
<P>
References:<br />
[1] <a target=_blank href="http://www-s.ti.com/sc/techlit/slup125.pdf">http://www-s.ti.com/sc/techlit/slup125.pdf</a><br />
[2] <a target=_blank href="http://en.wikipedia.org/wiki/Skin_effect">http://en.wikipedia.org/wiki/Skin_effect</a><br />
[3] <a target=_blank href="http://en.wikipedia.org/wiki/Skin_depth">http://en.wikipedia.org/wiki/Skin_depth</a>
</P>
<P><STRONG>User Inputs:</STRONG><BR>
	<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="300" bgColor="#ffffcc" border="1">
		<TR>
			<TD>Frequency</TD>
			<TD><INPUT id="sknfText1" onkeyup="sknf_calc()" type="text" size="8" value="0.1" name="sknfText1"></TD>
			<TD><SELECT id="sknfSelect1" onchange="sknf_calc()" name="sknfSelect1">
					<OPTION value="1">Hz</OPTION>
					<OPTION value="1E3">KHz</OPTION>
					<OPTION value="1E6" selected>MHz</OPTION>
					<OPTION value="1E9">GHz</OPTION>
				</SELECT></TD>
		</TR>
	</TABLE>
</P>
<P><STRONG>Results:</STRONG><BR>
	<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="300" bgColor="#ccffff" border="1">
		<TR>
			<TD>Skin Depth</TD>
			<TD><INPUT id="sknfText2" onkeyup="sknf_calc()" type="text" size="8" name="sknfText2"></TD>
			<TD><SELECT id="sknfSelect2" onchange="sknf_calc()" name="sknfSelect2">
					<OPTION value="1">cm</OPTION>
					<OPTION value="10">mm</OPTION>
					<OPTION value="10000" selected>um</OPTION>
					<OPTION value="0.393701">inches</OPTION>
					<OPTION value="393.7008">mils</OPTION>
					<OPTION value="285.7045">oz/ft^2</OPTION>
				</SELECT></TD>
		</TR>
	</TABLE>
</P>
<script language="javascript" src="http://circuitcalculator.com/js/pcpcookielib/pcpcookielib.js">
</script>
<script language="javascript">
//copyright circuitcalculator.com
//please do not copy without permission
function sknf_calc() {
f_base=document.getElementById("sknfText1").value
f_mult=document.getElementById("sknfSelect1").value
d_mult=document.getElementById("sknfSelect2").value

//calcs
freq=f_base*f_mult //Hz
dpen=7.6/Math.sqrt(freq)*d_mult

//output
document.getElementById("sknfText2").value=dpen.toPrecision(3)
}

function sknf_save(){
	userCookie.put("sknfText1", document.getElementById("sknfText1").value)
	
	userCookie.put("sknfSelect1", document.getElementById("sknfSelect1").value)
	userCookie.put("sknfSelect2", document.getElementById("sknfSelect2").value)
	userCookie.write()
}

userCookie  = new cookieObject("sknf_form", 365, "/", "sknfText1", "sknfSelect1", "sknfSelect2")
if (userCookie.found) {
	document.getElementById("sknfText1").value=userCookie.get("sknfText1")
	document.getElementById("sknfSelect1").value=userCookie.get("sknfSelect1")
	document.getElementById("sknfSelect2").value=userCookie.get("sknfSelect2")
}
else {
	window.status=window.status+" cookie not found"
}

sknf_calc()
window.onunload=function() { sknf_save() }
/*
to do
*/
</script> ]]></content:encoded>
			<wfw:commentRss>http://circuitcalculator.com/wordpress/2007/06/18/skin-effect-calculator/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Four-Layer High-Speed PCB Design</title>
		<link>http://circuitcalculator.com/wordpress/2007/05/29/four-layer-high-speed-pcb-design/</link>
		<comments>http://circuitcalculator.com/wordpress/2007/05/29/four-layer-high-speed-pcb-design/#comments</comments>
		<pubDate>Tue, 29 May 2007 18:23:21 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
		
		<category>PCB</category>

		<guid isPermaLink="false">http://circuitcalculator.com/wordpress/2007/05/29/four-layer-high-speed-pcb-design/</guid>
		<description><![CDATA[ When minimum cost and high-speed are required, a four-layer board may be the answer. High-Speed PCB design generally requires controlled impedance traces and good power and ground planes in order to meet signal integrity and power integrity requirements. Four-Layer PCBs are essentially made of 2 two-layer hardboards &#8220;glued&#8221; together with a pre-preg spacer in [...]]]></description>
			<content:encoded><![CDATA[<p> When minimum cost and high-speed are required, a four-layer board may be the answer. High-Speed PCB design generally requires controlled impedance traces and good power and ground planes in order to meet signal integrity and power integrity requirements. Four-Layer PCBs are essentially made of 2 two-layer hardboards &#8220;glued&#8221; together with a pre-preg spacer in between them. The thickness of the pre-preg is not as well controlled as that of the hardboards. So, for good controlled impedance traces, it is recommended to use the layers separated by hardboard as signal and ground. The layers separated by pre-preg can be used as power and ground.</p>
<p>Thus, a recommended stack up for a high-speed four-layer board is; <a id="more-64"></a>the first layer is a signal layer, the second layer is power, the third layer is ground and the fourth is a signal layer. This results in placing most of the routing on the fourth layer closest to the ground layer, and allowing a higher component density on the first layer.</p>
<p>Next, the spacing between signal and ground layers and trace widths can be planned using [1]. To provide the lowest possible power distribution impedance, the spacing between power and ground planes should be as close as practical. </p>
<p>Routing Guidelines:</p>
<ol>
<li>Route high-speed signals on the bottom (adjacent to ground) whenever possible</li>
<li>Route high-speed signals using a minimum of vias and corners</li>
<li>Maintain the proper trace width at the corners by rounding or beveling</li>
<li>Avoid stubs on traces whenever possible</li>
<li>Route all traces over continuous planes (VCC or GND), with no interruptions</li>
<li>Decouple power and ground planes with good ceramic capacitors</li>
<li>Minimize the trace length and loop area seen by decoupling capacitor currents</li>
</ol>
<p>[1] <a href="http://circuitcalculator.com/wordpress/2007/05/12/pcb-stack-up-design-and-impedance-calculator/">PCB Stack-Up Design And Impedance Calculator</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://circuitcalculator.com/wordpress/2007/05/29/four-layer-high-speed-pcb-design/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PCB Stack-Up Design And Impedance Calculator</title>
		<link>http://circuitcalculator.com/wordpress/2007/05/12/pcb-stack-up-design-and-impedance-calculator/</link>
		<comments>http://circuitcalculator.com/wordpress/2007/05/12/pcb-stack-up-design-and-impedance-calculator/#comments</comments>
		<pubDate>Sat, 12 May 2007 19:48:28 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
		
		<category>Calculators</category>

		<category>Electrical Engineering</category>

		<category>Excel</category>

		<category>Reviews</category>

		<guid isPermaLink="false">http://circuitcalculator.com/wordpress/2007/05/12/pcb-stack-up-design-and-impedance-calculator/</guid>
		<description><![CDATA[ Review: A new PCB stack-up design and impedance calculator is available for download from Istvan Nagy (see link below). It is a full-featured Excel-based tool that helps plan the PCB stack-up so that controlled impedance traces can be effectively implemented. It covers both single-ended and differential traces and is based on the equation s [...]]]></description>
			<content:encoded><![CDATA[<p> Review: A new PCB stack-up design and impedance calculator is available for download from Istvan Nagy (see link below). It is a full-featured Excel-based tool that helps plan the PCB stack-up so that controlled impedance traces can be effectively implemented. It covers both single-ended and differential traces and is based on the equation s from IPC-D-317A. It allows one to see the range of impedances that are possible for a given layer stack-up. It also has pre-distortion calculations to support high-speed compensation, a unit changer, and a materials library.</p>
<p>Right-Click, Download and Save the Excel tool here:<br />
<a id="p74" href="http://circuitcalculator.com/wordpress/wp-content/uploads/2007/08/layerstack_planningoriginalipc.xls">layerstack_planningoriginalipc.xls</a></p>
<p>Istvan Nagy’s home page:<br />
[Sorry, link had to be removed due to content issues.]</p>
<p>Do you have a favorite stack-up and impedance calculation tool? Let us know about it in the comments below.
</p>
]]></content:encoded>
			<wfw:commentRss>http://circuitcalculator.com/wordpress/2007/05/12/pcb-stack-up-design-and-impedance-calculator/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Effects Of Corners In PCB Traces</title>
		<link>http://circuitcalculator.com/wordpress/2007/04/06/effects-of-corners-in-pcb-traces/</link>
		<comments>http://circuitcalculator.com/wordpress/2007/04/06/effects-of-corners-in-pcb-traces/#comments</comments>
		<pubDate>Fri, 06 Apr 2007 15:02:30 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
		
		<category>Simulation &#038; Modeling</category>

		<category>SPICE</category>

		<category>PCB</category>

		<guid isPermaLink="false">http://circuitcalculator.com/wordpress/2007/04/06/effects-of-corners-in-pcb-traces/</guid>
		<description><![CDATA[ A novel SPICE simulation technique was developed to investigate the effects of corners in PCB traces. The PCB traces were modeled by breaking them down into tiny squares or finite elements. A SPICE sub-circuit was made for the finite element and a small square symbol with one pin on each face was also created [...]]]></description>
			<content:encoded><![CDATA[<p> A novel SPICE simulation technique was developed to investigate the effects of corners in PCB traces. The PCB traces were modeled by breaking them down into tiny squares or finite elements. A SPICE sub-circuit was made for the finite element and a small square symbol with one pin on each face was also created for it. Many such symbols were then placed in a schematic (like tiles) to graphically and electrically represent a PCB trace. A comparison was then done between a straight trace, one with a 90 degree square corner, and another with a 90 degree corner beveled at 45 degrees. (<a href="http://circuitcalculator.com/wordpress/wp-content/uploads/2007/04/effects-of-corners-in-pcb-traces.pdf">more&#8230;</a>)
</p>
]]></content:encoded>
			<wfw:commentRss>http://circuitcalculator.com/wordpress/2007/04/06/effects-of-corners-in-pcb-traces/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
