<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Embedded Components and Tools Blog Center &#187; Electronic Components</title>
	<atom:link href="http://www.embeddedcomponents.com/blogs/category/component-technology/electronic-components/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.embeddedcomponents.com/blogs</link>
	<description>The Home For Smart Reusable Code &#38; Circuits</description>
	<lastBuildDate>Tue, 23 Mar 2010 21:40:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Introducing 74HC193 Simulation to LTspice</title>
		<link>http://www.embeddedcomponents.com/blogs/2008/04/74hc193-for-ltspice-switchercadiii/</link>
		<comments>http://www.embeddedcomponents.com/blogs/2008/04/74hc193-for-ltspice-switchercadiii/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 20:52:45 +0000</pubDate>
		<dc:creator>Ron Fredericks</dc:creator>
				<category><![CDATA[Component Projects]]></category>
		<category><![CDATA[Component Technology]]></category>
		<category><![CDATA[Electronic Components]]></category>
		<category><![CDATA[LTspice/SwitcherCAD III]]></category>
		<category><![CDATA[circuit]]></category>
		<category><![CDATA[ltspice]]></category>
		<category><![CDATA[schematic]]></category>
		<category><![CDATA[simulation]]></category>

		<guid isPermaLink="false">http://www.embeddedcomponents.com/blogs/2008/04/74hc193-for-ltspice-switchercadiii/</guid>
		<description><![CDATA[Ron Fredericks writes: I have completed the design and test of a new component for LTspice/SwitcherCAD III circuit simulation and schematic capture. In a previous post I discussed my interest in the 74193 presettable synchronous 4-bit binary up/down counter IC for a digital volume control circuit I am building. The circuit simulation described below focuses [...]]]></description>
			<content:encoded><![CDATA[<p>Ron Fredericks writes: I have completed the design and test of a new component for LTspice/SwitcherCAD III circuit simulation and schematic capture.  In a <a href="http://www.embeddedcomponents.com/blogs/2008/04/new-gate-design-using-ltspiceswitchercad-iii/" title="Simulating the 555 IC with LTspice">previous post</a> I discussed my interest in the 74193 presettable synchronous 4-bit binary up/down counter IC for a digital volume control circuit I am building.  The circuit simulation described below focuses on how to simulate the 74HC193 IC, but timing and voltage parameters built into this design allow a designer to easily simulate other variants of this IC from high speed Si-gate CMOS HC and HCT devices to low power Schottky TTL devices. </p>
<p>All circuits related to this 74HC193 simulation are available <a href="http://www.embeddedcomponents.com/blogs/2008/04/74hc193-for-ltspice-switchercadiii/#download">here&gt;</a></p>
<h3>The 74HC193 Component</h3>
<p>See figure 1 below for a screen shot of the completed design. The circuit was built from the digital gates in the component library supplied with the original Linear Technology&#8216;s free LTspice tool.  </p>
<table width="200" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><img id="image167" height="360" alt="74HC193 Circuit and Related Components" border="2" src="http://www.embeddedcomponents.com/blogs/wp-content/uploads/2008/04/74hc193.png" /></td>
</tr>
<tr>
<td><span style="color:#999999">Figure 1 &#8211; 74HC193 Circuit and Related Components</span></td>
</tr>
<tr>
<td>View <a href="http://www.embeddedcomponents.com/blogs/wp-content/uploads/2008/04/74hc193circuit.htm">larger image&gt;</a></td>
</tr>
</table>
<p>
To keep the design looking like the original data sheet logic diagram, as published by companies that include NXP Semiconductors and Texas Instruments, a custom &#8220;T notS-R FlipFlop&#8221; subcomponent and corresponding assembly file was first created. This subcomponent was reused 4 times in the main IC logic diagram. An assembly file called 74hc193.asy was also created. It includes all pins used on the commercial IC except ground and Vcc. The ICâ€™s internal power supply is not simulated by the Linear Technologies&#8217; gates, and so they are not used or required in this design either.  </p>
<p>
Each gate within the design has a few variables assigned to them so that the IC remains flexible and easy to reuse in new projects:</p>
<ul>
<li><strong>tdgate</strong> <img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_17fb99174b442102b6a6847dc6665fb4.png" style="vertical-align:-5.5px; display: inline-block ;" alt="right" title="right"/> td (propagation time delay assigned to each gate)</li>
<li><strong>tdgate2</strong> <img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_17fb99174b442102b6a6847dc6665fb4.png" style="vertical-align:-5.5px; display: inline-block ;" alt="right" title="right"/> td (propagation time delay assigned to the D FlipFlop)</li>
<li><strong>tripdtgate</strong> <img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_17fb99174b442102b6a6847dc6665fb4.png" style="vertical-align:-5.5px; display: inline-block ;" alt="right" title="right"/> tripdt (td&#8217;s accuracy band assigned to each gate including the D FlipFlop)</li>
<li><strong>vhighgate</strong> <img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_17fb99174b442102b6a6847dc6665fb4.png" style="vertical-align:-5.5px; display: inline-block ;" alt="right" title="right"/> logical high value for each gate and D FlipFlop</li>
<li><strong>vlowgate</strong> <img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_17fb99174b442102b6a6847dc6665fb4.png" style="vertical-align:-5.5px; display: inline-block ;" alt="right" title="right"/> logical low value for each gate and D FlipFlop</li>
</ul>
<p>These variables can be assigned their corresponding time and voltage values using a .param statement placed in the main circuit. These values are then within scope for automatic reuse by the 74HC193 component and flipflop subcomponent simulations. Below is an example of how parameter assignment can be made (as used in the test circuit described next):</p>
<p><strong>.param tdgate=10n tdgate2=3*tdgate tripdtgate=1n vhighgate=5v vlowgate=0v</strong></p>
<p><span id="more-166"></span></p>
<h3>The Test Circuit</h3>
<p>See figure 2 below for a screen shot of the completed simulation test circuit. </p>
<table width="200" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><img id="image170" height="360" alt="74HC193 Simulation Test Circuit and Truth Table Waveform Analysis" border="2" src="http://www.embeddedcomponents.com/blogs/wp-content/uploads/2008/04/74hc193_test.png" /></td>
</tr>
<tr>
<td><span style="color:#999999">Figure 2 &#8211; 74HC193 Test Circuit and Truth Table Waveforms</span></td>
</tr>
<tr>
<td>View <a title="74HC193 Simulation Test Circuit and Annotated Waveform Analysis (larger view)" href="http://www.embeddedcomponents.com/blogs/wp-content/uploads/2008/04/74hc193test.htm">larger image&gt;</a></td>
</tr>
</table>
<p>The test circuit demonstrates the use of the 74HC193 component assembly.  </p>
<p>Individual pulse voltages are applied to the component&#8217;s input pins to validate the new device:</p>
<ul>
<li><img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_995.5_6d82183393711c9b1ab6b0e3102185b9.png" style="vertical-align:-4.5px; display: inline-block ;" alt="MR" title="MR"/> (asynchronous master reset) <img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_995.5_f91752b3b400fe4c1d1c2bdc0dceb0e1.png" style="vertical-align:-4.5px; display: inline-block ;" alt="right" title="right"/> pulsed high at the beginning and end of simulation. Unlike the waveform often shown in the 74xx193 IC&#8217;s datasheet <a href="http://www.nxp.com/acrobat_download/datasheets/74HC_HCT193_3.pdf">sequence diagram</a> (see page 7 of 29 in this version published by NXP), the second reset pulse was added to insure that Q0 to Q3 output values really do reset. </li>
<li><img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_995.5_45326aefb78d2502a16491dc449562a7.png" style="vertical-align:-4.5px; display: inline-block ;" alt="overline{PL}" title="overline{PL}"/> (asynchronous parallel load) <img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_995.5_f91752b3b400fe4c1d1c2bdc0dceb0e1.png" style="vertical-align:-4.5px; display: inline-block ;" alt="right" title="right"/> pulsed low near beginning of simulation to set flip-flop outputs (Q0 to Q3) to the data input values (D0 to D3).</li>
<li><img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_995_d9e52d1c6acb120f13bdf78a0b5d6ac3.png" style="vertical-align:-5px; display: inline-block ;" alt="CPU" title="CPU"/> (rising edge triggered count up clock) <img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_995.5_f91752b3b400fe4c1d1c2bdc0dceb0e1.png" style="vertical-align:-4.5px; display: inline-block ;" alt="right" title="right"/> pulsed low several times to demonstrate both the count up behavior of the flip-flop outputs and the terminal count up, or carry, (<img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_995_af0e9973b5aa0259b7b56820755e15c2.png" style="vertical-align:-5px; display: inline-block ;" alt="overline{TCU}" title="overline{TCU}"/>) output.</li>
<li><img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_995_7499df48f6355f9e9c3882c5a1944355.png" style="vertical-align:-5px; display: inline-block ;" alt="CPD" title="CPD"/> (rising edge triggered count down clock) <img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_995.5_f91752b3b400fe4c1d1c2bdc0dceb0e1.png" style="vertical-align:-4.5px; display: inline-block ;" alt="right" title="right"/> pulsed low several times to demonstrate both the count down behavior of the flip-flop outputs and the terminal count down, or borrow, (<img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_995_5475adbefa3d9f7708302e8b715ef6f4.png" style="vertical-align:-5px; display: inline-block ;" alt="overline{TCD}" title="overline{TCD}"/>) output.</li>
<li><img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_995.5_0f9d76428568fcad70cb130b20f4638e.png" style="vertical-align:-4.5px; display: inline-block ;" alt="D0" title="D0"/> to <img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_995.5_17df00d6eeb8028d6540e0edf03d02c4.png" style="vertical-align:-4.5px; display: inline-block ;" alt="D3" title="D3"/> (data input pins) <img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_995.5_f91752b3b400fe4c1d1c2bdc0dceb0e1.png" style="vertical-align:-4.5px; display: inline-block ;" alt="right" title="right"/> tied to either logic-high or logic-low for this simulation. The logic-low is constructed from a zero voltage component instead of simply being tied to the LTspice global circuit common node (ground). This is because of the LTspice gate component&#8217;s special behavior in removing the simulation of individual gate pins tied to the common node ground.</li>
</ul>
<p>All voltage sources are referenced using the same high and low voltages described in the previous section: <strong>vhighgate</strong> and <strong>vlowgate</strong>. These values can be reassigned to all gates, all at once, using the .param statement discussed above. </p>
<p><a name="download"> </a></p>
<h3>Download the Circuits</h3>
<p>The 74HC193 component, subcomponent, assemblies, test circuits, and plot control files can all be downloaded without restriction in their use. The datasheet supplied does have some licensed use restrictions, as defined in its last page. The reference to the 74HC193 data sheet from NXP Semiconductors is in no way an endorsement of the company or its products, but it is the most recent and best documented behavior for this device that I have found.</p>
<ol>
<li>74hc193.74hct193.pdf 74HC193 data sheet published by NXP Semiconductors in Adobe Acrobat PDF format</li>
<li>74HC193_test.asc test circuit as shown in figure above</li>
<li>74HC193_test.plt plot control file used by the test circuit above</li>
<li>74HC103_test2.asc debug circuit used to debug errors in original design</li>
<li>74HC103_test2.plt plot control file used by the test2 circuit above</li>
<li>74HC193.asc circuit component</li>
<li>74HC193.asy circuit component assembly used in the test circuit above</li>
<li>TnotSRFlipFlopFromD.asc circuit subcomponent used by 74HC193.asc file above</li>
<li>TnotSRFlipFlopFromD.asy circuit subcomponent used by 74HC193.asc file above</li>
<li>The screenshots saved as png files &#8211; as shown in this blog post</li>
<li>readme.txt text file granting a license to use the 74HC193 simulation files listed above without restriction and without warranty</li>
</ol>
<p>Download the files listed above for your LTspice designs <a id=p173 href="http://www.embeddedcomponents.com/blogs/wp-content/uploads/2008/04/74hc193_5v.zip">all in one zipped directory.</a></p>
<p>Technorati Tags: <a href="http://technorati.com/tag/Ron+Fredericks" rel="tag">Ron Fredericks</a>, <a href="http://technorati.com/tag/component" rel="tag">component</a>, <a href="http://technorati.com/tag/LTspice" rel="tag">LTspice</a>, <a href="http://technorati.com/tag/SwitcherCAD+III" rel="tag">SwitcherCAD III</a>, <a href="http://technorati.com/tag/circuit+simulation" rel="tag">circuit simulation</a>, <a href="http://technorati.com/tag/schematic+capture" rel="tag">schematic capture</a>, <a href="http://technorati.com/tag/74193" rel="tag">74193</a>, <a href="http://technorati.com/tag/IC" rel="tag">IC</a>, <a href="http://technorati.com/tag/circuit" rel="tag">circuit</a>, <a href="http://technorati.com/tag/simulation" rel="tag">simulation</a>, <a href="http://technorati.com/tag/timing" rel="tag">timing</a>, <a href="http://technorati.com/tag/voltage" rel="tag">voltage</a>, <a href="http://technorati.com/tag/CMOS" rel="tag">CMOS</a>, <a href="http://technorati.com/tag/Schottky" rel="tag">Schottky</a>, <a href="http://technorati.com/tag/TTL" rel="tag">TTL</a>, <a href="http://technorati.com/tag/Linear+Technology" rel="tag">Linear Technology</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.embeddedcomponents.com/blogs/2008/04/74hc193-for-ltspice-switchercadiii/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New Gate Design Using LTspice/SwitcherCAD III</title>
		<link>http://www.embeddedcomponents.com/blogs/2008/04/new-gate-design-using-ltspiceswitchercad-iii/</link>
		<comments>http://www.embeddedcomponents.com/blogs/2008/04/new-gate-design-using-ltspiceswitchercad-iii/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 08:24:05 +0000</pubDate>
		<dc:creator>Ron Fredericks</dc:creator>
				<category><![CDATA[Component Projects]]></category>
		<category><![CDATA[Component Technology]]></category>
		<category><![CDATA[Electronic Components]]></category>
		<category><![CDATA[LTspice/SwitcherCAD III]]></category>

		<guid isPermaLink="false">http://www.embeddedcomponents.com/blogs/2008/04/new-gate-design-using-ltspiceswitchercad-iii/</guid>
		<description><![CDATA[Ron Fredericks writes: recently I discovered that I was going to have to create my own IC component and symbol for my on-going digital volume control circuit simulation. My first step was to check in with the LTspice forum on yahoo groups. On the forum I requested any previous design for the IC I needed. [...]]]></description>
			<content:encoded><![CDATA[<p>Ron Fredericks writes: recently I discovered that I was going to have to create my own IC component and symbol for my on-going digital volume control circuit simulation.  My first step was to check in with the LTspice <a href="http://tech.groups.yahoo.com/group/LTspice/">forum on yahoo groups</a>. On the forum I requested any previous design for the IC I needed. I also asked the group&#8217;s readership if they thought it was correct to build a new IC from existing low level digital gates &#8211; gates that are already supplied with the LTspice distribution by Linear Technologies.</p>
<p>Well, I did not find a previous inventor for my IC simulation, but I did get confirmation that the gate build-up was a common strategy. And, this same forum engineer supplied me with a copy of an IC simulation of his own &#8211; one very similar to my IC requirement &#8211; he supplied a symbol and sample test bed to accelerate my learning curve.  Here is a <a href="http://tech.groups.yahoo.com/group/LTspice/message/21510">link</a> to my support dialog.</p>
<blockquote><p>I would like to thank Helmut Sennewald for his time and excellent service to the LTspice yahoo forum. It is his effort and many others who make this forum such a valuable community resource. This forum in turn, has made the LTspice/SwitcherCAD III circuit capture and spice tool a viable design tool for many embedded component users and EE designers.</p></blockquote>
<h3>Introducing the T S-R Flip-Flop</h3>
<p>To build my new IC, I had to build a new digital logic block. This component is a Toggle Flip-Flop with Set and Reset functions added. In this blog post I introduce my readers to this new component and share the simulation circuit for others to use and learn from.  </p>
<p>See the figure below for an initial design of the T S-R Flip-Flop, including a truth table in the form of a waveform diagram, the circuit, a pulse detector sub-circuit and their related assemblies.  This circuit is just an initial design because it uses an S-R Flip-Flop and a simple pulse detector sub-circuit for its clock.</p>
<p><img id="image154" height="360" alt="T S-R Flip-Flop and releated sub-circuits and assemblies" src="http://www.embeddedcomponents.com/blogs/wp-content/uploads/2008/04/tsrflipflop_test.png" /></p>
<p>View <a href="http://www.embeddedcomponents.com/blogs/wp-content/uploads/2008/04/t-s-r_circuit.htm">larger image></a></p>
<h3>Final Design for the T S-R Flip-Flop</h3>
<p>This section of my post is an update, thanks to a review by Helmut Sennewald. See figure below for my final design of the Toggle S-R Flip-Flop. This design overcomes two problems in my initial design, both resolved by starting with the D Flip-Flop with its built-in clock. The reuse of this more full-featured LT supplied component in my design eliminated the home-brew pulse maker sub-circuit. And in so doing, the slower S-R Flip-Flop. Slower because I had to set the SpiceLine time delay to a minimum of 20 nanoseconds (or td >= 2x the gate time delay) to support the simulation of my simple pulse maker sub-circuit. The D Flip-Flop has an internal clock so I could eliminate the pulse maker sub-circuit. End result: one less sub-circuit and faster Flip-Flop simulation using a time delay set to a minimum of 10 nanoseconds (or td >= 1x the gate time delay). </p>
<p><img id="image163" height="360" alt="T S-R Flip-Flop (final design)" src="http://www.embeddedcomponents.com/blogs/wp-content/uploads/2008/04/tsrflipflopfromd_test.png" /></p>
<p>View <a href="http://www.embeddedcomponents.com/blogs/wp-content/uploads/2008/04/t-s-r_circuitfromd.htm">larger image></a></p>
<h3>Download</h3>
<p>To test my knowledge of digital design using the LTspice tool, I created a number of similar flip-flop components which are included in the download:</p>
<ol>
<li>S-R Flip-Flop test circuit</li>
<li>S-R Flip-Flop with Enable gate and test circuit</li>
<li>S-R Flip-Flop with rising edge clock and test circuit</li>
<li>J-K Flip-Flop with rising edge clock and test circuit</li>
<li>D Flip-Flop with Enable gate and test circuit</li>
<li>T S-R Flip-Flop from S-R Flip-Flop and test circuit (initial design)</li>
<li>Rising Edge Pulse Detector (not high performance design)</li>
<li>T S-R Flip-Flop from D Flip-Flop and test circuit (final design)</li>
</ol>
<p>Download the components listed above for your LTspice designs all in <a id="p155" title="LTspice circuits and assemblies" href="http://www.embeddedcomponents.com/blogs/wp-content/uploads/2008/04/tflipflop.zip">one zipped directory.</a></p>
<p>Technorati Tags: <a href="http://technorati.com/tag/Ron+Fredericks" rel="tag">Ron Fredericks</a>, <a href="http://technorati.com/tag/component" rel="tag">component</a>, <a href="http://technorati.com/tag/circuit" rel="tag">circuit</a>, <a href="http://technorati.com/tag/simulation" rel="tag">simulation</a>, <a href="http://technorati.com/tag/LTspice" rel="tag">LTspice</a>, <a href="http://technorati.com/tag/Linear+Technologies" rel="tag">Linear Technologies</a>, <a href="http://technorati.com/tag/Helmut+Sennewald" rel="tag">Helmut Sennewald</a>, <a href="http://technorati.com/tag/embedded" rel="tag">embedded</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.embeddedcomponents.com/blogs/2008/04/new-gate-design-using-ltspiceswitchercad-iii/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Simulating the 555 IC with LTspice</title>
		<link>http://www.embeddedcomponents.com/blogs/2008/03/simulating-the-555-ic-with-ltspice/</link>
		<comments>http://www.embeddedcomponents.com/blogs/2008/03/simulating-the-555-ic-with-ltspice/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 06:53:30 +0000</pubDate>
		<dc:creator>Ron Fredericks</dc:creator>
				<category><![CDATA[Component Projects]]></category>
		<category><![CDATA[Component Technology]]></category>
		<category><![CDATA[Electronic Components]]></category>
		<category><![CDATA[LTspice/SwitcherCAD III]]></category>

		<guid isPermaLink="false">http://www.embeddedcomponents.com/blogs/2008/03/simulating-the-555-ic-with-ltspice/</guid>
		<description><![CDATA[Ron Fredericks writes: I was designing a simple CMOS timer circuit around a 555 chip this evening. It might be the heart beat for a new digital volume control I have been thinking about. Normally I look for my breadboard and parts box but this time I thought I would try out Linear Technologies LTspice/SwitcherCAD [...]]]></description>
			<content:encoded><![CDATA[<p>Ron Fredericks writes: I was designing a simple CMOS timer circuit around a 555 chip this evening. It might be the heart beat for a new digital volume control I have been thinking about. Normally I look for my breadboard and parts box but this time I thought I would try out Linear Technologies <a href="http://www.linear.com/designtools/software/index.jsp#Spice">LTspice/SwitcherCAD III </a>workbench instead.</p>
<h3>SwCAD III First Time Use</h3>
<p>The tool is free and comes with a lot of <a href="http://tech.groups.yahoo.com/group/LTspice/">support</a>. I downloaded the software and installed it very easily on my Windows XP PC. It includes a graphical schematic design tool with lots of ready made simulated components, including an NE555 for my initial project.  Designing the circuit with the built-in CAD tool works very intuitively.  While the LTspice simulation took a bit of head scratching before it worked for me.  </p>
<p>I was able to configure and run the simulation using the drop down tools menu and the little &#8220;running person&#8221; icon on the tool bar. But all I could get out of the simulation was a black screen with voltage and timing ticks along the left and bottom edges. So my first problem was in realizing that the visual display would remain black and traceless until I put the mouse cursor over a wire then click. When the little instrument probe showed up as my mouse icon, I realized what was going on here. With the mouse click, waveform tracings would appear in the black panel. </p>
<p>My second problem was that the circuit would not oscillate. Not good for an oscillator design.  First, I forgot to connect the 555&#8242;s threshold + trigger pins to the R2-C2 node using the wire tool. But still no oscillation, just flat line traces were observed. Now I already know that getting circuits to oscillate follows Murphy&#8217;s Laws: <em>Oscillators remain stable, Amplifies and Buffers oscillate, whenever possible</em>.  I found a note on the <a href="http://www.oldschoolhacker.com/" title="Simulating Oscillators">Old School Hacker</a> blog with a fine solution. You must simulate the circuit with a power supply starting from 0 volts rather than just have an instant on  Vcc power supply.  </p>
<blockquote><p>In hind sight dah, its the initial transient response from the circuit&#8217;s components that kicks the oscillator into oscillating.</p></blockquote>
<p>After a little practice I improved the schematic diagram with the use of named nodes and seperation of the temporary load resistors R3 and R load from the more permanent circuit components. The load resistors are just place holders for a real load to be added to the circuit schematic next.  Look for my next blog post on this subject.</p>
<p>Finally, I used the cursor measurement facility built into the LTspice window (trace window). With this feature, I was able to make &#8220;real&#8221; measurements on the waveform for frequency and duty cycle.</p>
<h3>Circuit</h3>
<p>Here is what I was able to generate using the LTspice/SwitcherCAD III tool:</p>
<p><img id="image144" height="360" border="2" alt="LTspice/SwitcherCAD III circuit diagram and waveforms" src="http://www.embeddedcomponents.com/blogs/wp-content/uploads/2008/04/ltspice_555_astable-flipflo.png" /></p>
<p>View <a id="p147" href="http://www.embeddedcomponents.com/blogs/wp-content/uploads/2008/03/555_circuit.htm">larger image></a><br />
<a id="p148" href="http://www.embeddedcomponents.com/blogs/wp-content/uploads/2008/04/555astableflipflop.zip" title="Download file for reuse in your LTspice/switcherCAD III workbench">Download 555 Astable Flip-Flop Schematic Circuit Diagram></a></p>
<p>Referring to the figure above:<br />
&nbsp;&nbsp;&nbsp;<span style="color:green">Green Trace</span> -> Output (IC 555 pin 3)<br />
&nbsp;&nbsp;&nbsp;<span style="color:blue">Blue Trace</span> -> Trigger / Threshold (IC 555 pins 2 &#038; 6)<br />
&nbsp;&nbsp;&nbsp;<span style="color:red">Red Trace</span> -> Discharge (IC 555 pin 7)</p>
<h3>The Astable Multivibrator</h3>
<p>The circuit shown above will trigger itself and free run as a multivibrator. The capacitor C<sub>2</sub> charges through resistors R<sub>1</sub> and R<sub>2</sub> yet discharges through R<sub>2</sub> only. Thus, the duty cycle (D) may be precisely set by the ratio of these two resistors. The capacitor charges and discharges between 1/3 Vcc and 2/3 Vcc. But the initial pulse charges C<sub>2</sub> starting from 0 Vcc and so this first pulse duty cycle is unique. Since the charge rate and the threshold levels are directly proportional to the supply voltage Vcc, the frequency of oscillation (f) is independent of the supply voltage.</p>
<table width="450" border="0" cellspacing="7" cellpadding="1">
<tr>
<th scope="col">Frequency Calculation</th>
<th scope="col">Duty Cycle Calculation</th>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_937_0a4fc1759fafb7a7634b3fc77ceeb31b.png" style="vertical-align:-63px; display: inline-block ;" alt="f = 1.38/{(R_1 + 2R_2)C_2}" title="f = 1.38/{(R_1 + 2R_2)C_2}"/></td>
<td><img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_975_ed669965d82f3bbcb24fbc9463a9a5ae.png" style="vertical-align:-25px; display: inline-block ;" alt="D = {tau}/T = {R_1 + R_2}/{R_1 + 2R_2}" title="D = {tau}/T = {R_1 + R_2}/{R_1 + 2R_2}"/></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_968_44b46a0eca31826e1f16b281718e56c1.png" style="vertical-align:-32px; display: inline-block ;" alt="1.7 hertz=1.38*10^3/{(150 + 2*332) ohm farads}" title="1.7 hertz=1.38*10^3/{(150 + 2*332) ohm farads}"/></td>
<td><img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_8b408382389e657bb36d9d66ca8d11d1.png" style="vertical-align:-14px; display: inline-block ;" alt="0.59~={150 + 332}/{150 + 2*332}" title="0.59~={150 + 332}/{150 + 2*332}"/></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Measured = 1.8 hertz</td>
<td>Measured = 0.60</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Where:<br />
&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_8039b4e0e6fe78bee7d3e5cfbfa343f0.png" style="vertical-align:-5.5px; display: inline-block ;" alt="f" title="f"/> is frequency in hertz<br />
&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_e7ad657626a39bcafcc8ce7c53d3901b.png" style="vertical-align:-5.5px; display: inline-block ;" alt="C" title="C"/> is capacitance in farads<br />
&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_1688316d15ac9218146e0f4ba5fc8d4f.png" style="vertical-align:-5.5px; display: inline-block ;" alt="R" title="R"/> is resistance in ohms</td>
<td>Where:<br />
&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_75b573a2a80f7d1f54f711b89d1a80fa.png" style="vertical-align:-5.5px; display: inline-block ;" alt="D" title="D"/> is duty cycle<br />
&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_fd5d70b980ec9c9c74f509da54de7e95.png" style="vertical-align:-5.5px; display: inline-block ;" alt="tau" title="tau"/> is non-zero output duration<br />
&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_72963b0e4d3e9a1c0e511dfb1ec25aab.png" style="vertical-align:-5.5px; display: inline-block ;" alt="T" title="T"/> is the period of the output<br />
&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_1688316d15ac9218146e0f4ba5fc8d4f.png" style="vertical-align:-5.5px; display: inline-block ;" alt="R" title="R"/> is resistance</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<h3>Reference</h3>
<ul>
<li>555 Datasheet <a href="http://www.standardics.nxp.com/products/analog/datasheet/icm7555.pdf" title="General purpose CMOS timer">icm7555.pdf</a></li>
<li>Linear Technology&#8217;s SwitcherCADâ„¢ III <a href="http://www.linear.com/designtools/software/index.jsp#Spice" title="a free Spice III simulator, schematic capture and waveform viewer">Landing Page</a></li>
</ul>
<p>Technorati Tags: <a href="http://technorati.com/tag/Ron+Fredericks" rel="tag">Ron Fredericks</a>, <a href="http://technorati.com/tag/schematic" rel="tag">schematic</a>, <a href="http://technorati.com/tag/LTspice" rel="tag">LTspice</a>, <a href="http://technorati.com/tag/SwitcherCAD+III" rel="tag">SwitcherCAD III</a>, <a href="http://technorati.com/tag/simulator" rel="tag">simulator</a>, <a href="http://technorati.com/tag/Spice" rel="tag"> Spice</a>, <a href="http://technorati.com/tag/CAD" rel="tag"> CAD</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.embeddedcomponents.com/blogs/2008/03/simulating-the-555-ic-with-ltspice/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
