<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.nebarnix.com/w/index.php?action=history&amp;feed=atom&amp;title=FunctionGen</id>
	<title>FunctionGen - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.nebarnix.com/w/index.php?action=history&amp;feed=atom&amp;title=FunctionGen"/>
	<link rel="alternate" type="text/html" href="http://wiki.nebarnix.com/w/index.php?title=FunctionGen&amp;action=history"/>
	<updated>2026-04-12T15:38:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>http://wiki.nebarnix.com/w/index.php?title=FunctionGen&amp;diff=323&amp;oldid=prev</id>
		<title>NebarnixWikiSysop at 02:28, 4 September 2015</title>
		<link rel="alternate" type="text/html" href="http://wiki.nebarnix.com/w/index.php?title=FunctionGen&amp;diff=323&amp;oldid=prev"/>
		<updated>2015-09-04T02:28:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:28, 4 September 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l33&quot; &gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Results ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Results ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Meh. Definitely need a 'set' button. With the log scaling function, noise is amplified and can result in quite a bit of &amp;quot;wandering&amp;quot; of the frequency and duty cycle. A set button could cycle between &amp;quot;Course&amp;quot;, &amp;quot;Fine&amp;quot;, and &amp;quot;Locked-In&amp;quot; modes. Seems kinda ghetto and doesn't even work for flybacks, which seem to reboot the MSP430. Better solution is to move towards a [[TL494Flyback|TL494 based solution]].  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;2011: added an LCD and a set button. This won't work for HV supplies, but works well for reasonable prototyping. &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;&lt;/ins&gt;Meh. Definitely need a 'set' button. With the log scaling function, noise is amplified and can result in quite a bit of &amp;quot;wandering&amp;quot; of the frequency and duty cycle. A set button could cycle between &amp;quot;Course&amp;quot;, &amp;quot;Fine&amp;quot;, and &amp;quot;Locked-In&amp;quot; modes. Seems kinda ghetto and doesn't even work for flybacks, which seem to reboot the MSP430. Better solution is to move towards a [[TL494Flyback|TL494 based solution]]. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2010 Jasper Nance KE7PHI&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2010 Jasper Nance KE7PHI&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>NebarnixWikiSysop</name></author>
	</entry>
	<entry>
		<id>http://wiki.nebarnix.com/w/index.php?title=FunctionGen&amp;diff=322&amp;oldid=prev</id>
		<title>NebarnixWikiSysop at 02:27, 4 September 2015</title>
		<link rel="alternate" type="text/html" href="http://wiki.nebarnix.com/w/index.php?title=FunctionGen&amp;diff=322&amp;oldid=prev"/>
		<updated>2015-09-04T02:27:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:27, 4 September 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Design ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Design ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;I used a left-over MSP430F1132 chip with a 4Mhz crystal. 10-bit ADC inputs sample two trim pots for frequency and duty cycle. These are converted from the 0-1023 range to a clock divider for the 16-bit Timer_A via the following equation, which is designed to give a logrithmic control over the entire frequency range of 2Mhz - 61Hz with only a single knob. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;At some point I would like to add an &lt;/del&gt;LCD display to show the current freq / duty cycle setting and &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;possibly &lt;/del&gt;a button to enable a fine tuning mode.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;I used a left-over MSP430F1132 chip with a 4Mhz crystal. 10-bit ADC inputs sample two trim pots for frequency and duty cycle. These are converted from the 0-1023 range to a clock divider for the 16-bit Timer_A via the following equation, which is designed to give a logrithmic control over the entire frequency range of 2Mhz - 61Hz with only a single knob. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;An &lt;/ins&gt;LCD display &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;was added &lt;/ins&gt;to show the current freq / duty cycle setting and a button to enable a fine tuning &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;mode as well as a 'locked' &lt;/ins&gt;mode.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following M-code shows the process:  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following M-code shows the process:  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>NebarnixWikiSysop</name></author>
	</entry>
	<entry>
		<id>http://wiki.nebarnix.com/w/index.php?title=FunctionGen&amp;diff=92&amp;oldid=prev</id>
		<title>NebarnixWikiSysop: 449 to 494 typo</title>
		<link rel="alternate" type="text/html" href="http://wiki.nebarnix.com/w/index.php?title=FunctionGen&amp;diff=92&amp;oldid=prev"/>
		<updated>2013-08-06T22:11:19Z</updated>

		<summary type="html">&lt;p&gt;449 to 494 typo&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:11, 6 August 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l33&quot; &gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Results ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Results ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Meh. Definitely need a 'set' button. With the log scaling function, noise is amplified and can result in quite a bit of &amp;quot;wandering&amp;quot; of the frequency and duty cycle. A set button could cycle between &amp;quot;Course&amp;quot;, &amp;quot;Fine&amp;quot;, and &amp;quot;Locked-In&amp;quot; modes. Seems kinda ghetto and doesn't even work for flybacks, which seem to reboot the MSP430. Better solution is to move towards a [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;TL449_Flyback_Driver TL449 &lt;/del&gt;based solution]].  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Meh. Definitely need a 'set' button. With the log scaling function, noise is amplified and can result in quite a bit of &amp;quot;wandering&amp;quot; of the frequency and duty cycle. A set button could cycle between &amp;quot;Course&amp;quot;, &amp;quot;Fine&amp;quot;, and &amp;quot;Locked-In&amp;quot; modes. Seems kinda ghetto and doesn't even work for flybacks, which seem to reboot the MSP430. Better solution is to move towards a [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;TL494Flyback|TL494 &lt;/ins&gt;based solution]].  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2010 Jasper Nance KE7PHI&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2010 Jasper Nance KE7PHI&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>NebarnixWikiSysop</name></author>
	</entry>
	<entry>
		<id>http://wiki.nebarnix.com/w/index.php?title=FunctionGen&amp;diff=6&amp;oldid=prev</id>
		<title>NebarnixWikiSysop: Recreating the page from archives</title>
		<link rel="alternate" type="text/html" href="http://wiki.nebarnix.com/w/index.php?title=FunctionGen&amp;diff=6&amp;oldid=prev"/>
		<updated>2013-01-23T23:19:24Z</updated>

		<summary type="html">&lt;p&gt;Recreating the page from archives&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Problem Statement ==&lt;br /&gt;
Function generators are expensive. Since I moved away from the university, I can no longer pillage the senior design lab for design tools, and I'd like to have a variable frequency / duty cycle mosfet driver for designing power converters with. All I need is a square wave, and with enough current capability to be able to drive a power MOSFET directly. Since its a piece of test equiptment, it doesn't make sense to make it battery powered so I would like to use some of the small transformers in the junk box and build a switching regulator to bring the voltage down to a reasonable and adjustable drive level. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Design ==&lt;br /&gt;
I used a left-over MSP430F1132 chip with a 4Mhz crystal. 10-bit ADC inputs sample two trim pots for frequency and duty cycle. These are converted from the 0-1023 range to a clock divider for the 16-bit Timer_A via the following equation, which is designed to give a logrithmic control over the entire frequency range of 2Mhz - 61Hz with only a single knob. At some point I would like to add an LCD display to show the current freq / duty cycle setting and possibly a button to enable a fine tuning mode. &lt;br /&gt;
&lt;br /&gt;
The following M-code shows the process: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
freq = 4e6; %clock frequency&lt;br /&gt;
div_max = 65535; %not currently used in the calculations&lt;br /&gt;
fdial = 0:1:1023; %input range of the frequency trimpot&lt;br /&gt;
&lt;br /&gt;
%freq_desired = (freq/2).*(10.^(fdial./226.5)./(10^(1023/226.5))); %226.5 results in a 65535 end point&lt;br /&gt;
%divisor_modeled = freq ./ freq_desired;&lt;br /&gt;
%When simplified becomes...&lt;br /&gt;
divisor_modeled = 2.*(1.010226.^(1023+fdial));&lt;br /&gt;
divisor_modeled = uint16(divisor_modeled);&lt;br /&gt;
&lt;br /&gt;
subplot(2,1,1);&lt;br /&gt;
stairs(fdial, freq ./ uint32(divisor_modeled));&lt;br /&gt;
set(gca, 'YScale', 'log')&lt;br /&gt;
axis ([0 1023 0 freq]);&lt;br /&gt;
subplot(2,1,2);&lt;br /&gt;
stairs(fdial, uint32(divisor_modeled));&lt;br /&gt;
set(gca, 'YScale', 'log')&lt;br /&gt;
axis ([0 1023 0 65535]);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==MSP430 Source Code ==&lt;br /&gt;
Can be found [http://svn.nebarnix.com/sub/msp430/Function%20Gen/ here] (For reference only, all rights reserved) &lt;br /&gt;
&lt;br /&gt;
==Results ==&lt;br /&gt;
Meh. Definitely need a 'set' button. With the log scaling function, noise is amplified and can result in quite a bit of &amp;quot;wandering&amp;quot; of the frequency and duty cycle. A set button could cycle between &amp;quot;Course&amp;quot;, &amp;quot;Fine&amp;quot;, and &amp;quot;Locked-In&amp;quot; modes. Seems kinda ghetto and doesn't even work for flybacks, which seem to reboot the MSP430. Better solution is to move towards a [[TL449_Flyback_Driver TL449 based solution]]. &lt;br /&gt;
&lt;br /&gt;
2010 Jasper Nance KE7PHI&lt;/div&gt;</summary>
		<author><name>NebarnixWikiSysop</name></author>
	</entry>
</feed>