<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Frequency divider in Counter/Timer</title>
    <link>https://ni.lithium.com/t5/Counter-Timer/Frequency-divider/m-p/447821#M4232</link>
    <description>&lt;DIV&gt;Hello..&lt;/DIV&gt;
&lt;DIV&gt;I want to divide a digital input signal frequency by a number ..... For examle&amp;nbsp; my input signal frequency is 20 kHz and i want to generate&amp;nbsp; 50Hz signal from input signal..like shown in figure&lt;/DIV&gt;
&lt;DIV&gt;I tried to use counter but i could not manage to obtain yet..&lt;/DIV&gt;
&lt;DIV&gt;Thanks..&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Thu, 30 Nov 2006 10:55:28 GMT</pubDate>
    <dc:creator>ifo</dc:creator>
    <dc:date>2006-11-30T10:55:28Z</dc:date>
    <item>
      <title>Frequency divider</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Frequency-divider/m-p/447821#M4232</link>
      <description>&lt;DIV&gt;Hello..&lt;/DIV&gt;
&lt;DIV&gt;I want to divide a digital input signal frequency by a number ..... For examle&amp;nbsp; my input signal frequency is 20 kHz and i want to generate&amp;nbsp; 50Hz signal from input signal..like shown in figure&lt;/DIV&gt;
&lt;DIV&gt;I tried to use counter but i could not manage to obtain yet..&lt;/DIV&gt;
&lt;DIV&gt;Thanks..&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Nov 2006 10:55:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Frequency-divider/m-p/447821#M4232</guid>
      <dc:creator>ifo</dc:creator>
      <dc:date>2006-11-30T10:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency divider</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Frequency-divider/m-p/448014#M4235</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;I don't have LV here to be certain of the exact syntax.&amp;nbsp; The essence of what you'd do goes something like this:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;a. Configure a virtual channel for pulse generation using Units=Ticks.&amp;nbsp; Set all pulse params (initial delay, low ticks, high ticks) = 200.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;b. DAQmx Timing should be setup as "Implicit" and should also likely be set for "Continuous Sampling."&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;c. Configure a DAQmx Channel property node to specify that the source of the timebase signal should be your external input edges.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;d. Start the task.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;e. Every 200 incoming edges, the output state of your counter will toggle.&amp;nbsp; You'll get 1 output cycle per 400 input cycles, dividing you down&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;from 20 kHz to 50 Hz.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;-Kevin P.&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Nov 2006 16:28:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Frequency-divider/m-p/448014#M4235</guid>
      <dc:creator>Kevin_Price</dc:creator>
      <dc:date>2006-11-30T16:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency divider</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Frequency-divider/m-p/448613#M4238</link>
      <description>&lt;DIV&gt;Thanks for your help Kevin.&lt;/DIV&gt;
&lt;DIV&gt;Actually i find an example which works as your instructions.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I need to an output waveform which has %50 duty cycle. But if i divide the input frequency to odd numbers (an example 500Hz/13 ) using this way&amp;nbsp;the out put signal waveform&amp;nbsp;do not have % 50 duty cycle. This is the my real problem.&lt;/DIV&gt;
&lt;DIV&gt;Thanks again..&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Dec 2006 15:12:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Frequency-divider/m-p/448613#M4238</guid>
      <dc:creator>ifo</dc:creator>
      <dc:date>2006-12-01T15:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency divider</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Frequency-divider/m-p/448654#M4239</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;FONT size="2"&gt;50% duty cycle with an odd divisor, eh?&amp;nbsp; Well, since the hardware solution depends on integer counts, I don't think you can do it purely in hardware with your board (assuming the 6036 multifunction board you referenced in a similar thread).&amp;nbsp; There's a complicated way that might work with an M-series board where you would generate change detection pulses on both rising and falling edges -- then as long as the input signal is 50% duty cycle, it'd be possible to generate a 50% duty cycle output.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;There's another possibility that's partly software based.&amp;nbsp; You would use one of your counters to measure the incoming frequency, and the other one would be set for pulse generation.&amp;nbsp; As you monitor the incoming frequency in software, you could react and change the output frequency on-the-fly while maintaining 50% duty cycle.&amp;nbsp; This kind of solution wouldn't sync the output edges with the input edges though.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;-Kevin P.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2006 16:05:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Frequency-divider/m-p/448654#M4239</guid>
      <dc:creator>Kevin_Price</dc:creator>
      <dc:date>2006-12-01T16:05:15Z</dc:date>
    </item>
  </channel>
</rss>

