{"id":904,"date":"2012-05-13T15:37:04","date_gmt":"2012-05-13T20:37:04","guid":{"rendered":"http:\/\/abrammorphew.com\/notes\/?p=904"},"modified":"2012-05-13T15:40:23","modified_gmt":"2012-05-13T20:40:23","slug":"ngspice-single-frequency-fm-modulated-signal-generation","status":"publish","type":"post","link":"http:\/\/abrammorphew.com\/notes\/2012\/05\/13\/ngspice-single-frequency-fm-modulated-signal-generation\/","title":{"rendered":"ngSpice: single frequency FM modulated signal generation"},"content":{"rendered":"<p><a href=\"http:\/\/abrammorphew.com\/notes\/wp-content\/uploads\/2012\/05\/single-frequency-fm.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/abrammorphew.com\/notes\/wp-content\/uploads\/2012\/05\/single-frequency-fm.jpg\" alt=\"\" title=\"single-frequency-fm\" width=\"500\" height=\"341\" class=\"alignnone size-full wp-image-905\" \/><\/a><\/p>\n<p>ever wanted to see how that 2N2222 might hold up as a linear RF amplifier? here&#8217;s a handy feature of ngSpice that i found recently. i&#8217;m rather new to ngSpice and at first was somewhat frustrated by its differences from other SPICE variants. however, i&#8217;ve earned a deep appreciation for it and its integration with the gEDA suite. <\/p>\n<pre class=\"brush:bash\">\r\nV1 n1 0 sffm(2 24 10k 5 1k)\r\n.tran 0.01ms 2ms\r\n.plot n1\r\n<\/pre>\n<p>the above code generates the waveform seen above. the corresponding values in the sffm() function run something like this. <\/p>\n<table class=\"inline\">\n<tbody>\n<tr class=\"row0\">\n<th class=\"col0\"> Parameters <\/th>\n<th class=\"col1\"> Default value <\/th>\n<th class=\"col2\"> Unit <\/th>\n<\/tr>\n<tr class=\"row1\">\n<td class=\"col0\"> <strong>Vo<\/strong> (offset) <\/td>\n<td class=\"col1\"> <\/td>\n<td class=\"col2\"> <strong>A<\/strong>mpere or <strong>V<\/strong>olt <\/td>\n<\/tr>\n<tr class=\"row2\">\n<td class=\"col0\"> <strong>Va<\/strong> (amplitude) <\/td>\n<td class=\"col1\"> <\/td>\n<td class=\"col2\"> <strong>A<\/strong>mpere or <strong>V<\/strong>olt <\/td>\n<\/tr>\n<tr class=\"row3\">\n<td class=\"col0\"> <strong>Fc<\/strong> (carrier frequency) <\/td>\n<td class=\"col1\"> 1\/Tstop <\/td>\n<td class=\"col2\"> <strong>Hz<\/strong> (Hertz) <\/td>\n<\/tr>\n<tr class=\"row4\">\n<td class=\"col0\"> <strong>Mi<\/strong> (modulation index) <\/td>\n<td class=\"col1\"> <\/td>\n<td class=\"col2\"> <\/td>\n<\/tr>\n<tr class=\"row5\">\n<td class=\"col0\"> <strong>Fs<\/strong> (modulation frequency) <\/td>\n<td class=\"col1\"> 1\/Tstop <\/td>\n<td class=\"col2\"> <strong>Hz<\/strong> (Hertz) <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>ever wanted to see how that 2N2222 might hold up as a linear RF amplifier? here&#8217;s a handy feature of ngSpice that i found recently. i&#8217;m rather new to ngSpice and at first was somewhat frustrated by its differences from other SPICE variants. however, i&#8217;ve earned a deep appreciation for it and its integration with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[24,167,166,170,168,133,164,169,171,165],"class_list":["post-904","post","type-post","status-publish","format-standard","hentry","category-notes","tag-circuit","tag-fm","tag-frequency","tag-generator","tag-modulation","tag-ngspice","tag-sffm","tag-signal","tag-simulation","tag-single"],"_links":{"self":[{"href":"http:\/\/abrammorphew.com\/notes\/wp-json\/wp\/v2\/posts\/904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/abrammorphew.com\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/abrammorphew.com\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/abrammorphew.com\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/abrammorphew.com\/notes\/wp-json\/wp\/v2\/comments?post=904"}],"version-history":[{"count":4,"href":"http:\/\/abrammorphew.com\/notes\/wp-json\/wp\/v2\/posts\/904\/revisions"}],"predecessor-version":[{"id":910,"href":"http:\/\/abrammorphew.com\/notes\/wp-json\/wp\/v2\/posts\/904\/revisions\/910"}],"wp:attachment":[{"href":"http:\/\/abrammorphew.com\/notes\/wp-json\/wp\/v2\/media?parent=904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/abrammorphew.com\/notes\/wp-json\/wp\/v2\/categories?post=904"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/abrammorphew.com\/notes\/wp-json\/wp\/v2\/tags?post=904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}