<?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>Kinetis MicrocontrollersのトピックRe: How could I output 50MHz square waveform by using FRDM-K64F?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451515#M26784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qingyuan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous project uses internal reference clock to be out on PTC3 pin, so this signal could not be amplified or modified to change its voltage level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, there is not possible to get a 50MHz output signal, for example, through a timer's output due these peripherals use bus clock as their reference clock and due bus clock is up to 60 MHz. maximum output frequency could be 30MHz (60MHz / 2).&lt;/P&gt;&lt;P&gt;If you use this signal (60MHz maximum, setting core clock to work at 120MHz), you can toogle an output every 1-step counter and after 2 cycles, your signal returns to its initial state, resulting in a 30MHz output frequency.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55669i0BB29CFEDBD788A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope this can help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2015 16:53:42 GMT</pubDate>
    <dc:creator>isaacavila</dc:creator>
    <dc:date>2015-07-08T16:53:42Z</dc:date>
    <item>
      <title>How could I output 50MHz square waveform by using FRDM-K64F?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451512#M26781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, guys. I am a newer about ARM processor. How could I output 50MHz square waveform by using FRDM-K64F since the maximum frequency of CPU is 120MHz. Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 15:35:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451512#M26781</guid>
      <dc:creator>gloria</dc:creator>
      <dc:date>2015-07-02T15:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: How could I output 50MHz square waveform by using FRDM-K64F?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451513#M26782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gloria,&lt;/P&gt;&lt;P&gt;Using the FRDM-K64F Freedom board with KDS_3.0 and KSDK_1.2.0 and the gpio_example_frdmk64f as a test project I did the following to get a 50MHz clock out on the PTC3 (I used o-scope on pin J1 pin 16 header and ground on J2 pin 14).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Added to main.c (file attached too....look for "//DES" to find modifications:&lt;/P&gt;&lt;P&gt;#include "fsl_sim_hal.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In main function add:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14358600663262866 jive_text_macro" data-renderedposition="175_8_1101_70" jivemacro_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;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 18:01:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451513#M26782</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-07-02T18:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: How could I output 50MHz square waveform by using FRDM-K64F?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451514#M26783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David, many thanks for your help. I have tested the signal by o-scope. The output voltage is so small from J1 Pin16. Is there any way to change the output voltage from the pin?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 09:40:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451514#M26783</guid>
      <dc:creator>gloria</dc:creator>
      <dc:date>2015-07-03T09:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: How could I output 50MHz square waveform by using FRDM-K64F?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451515#M26784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qingyuan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous project uses internal reference clock to be out on PTC3 pin, so this signal could not be amplified or modified to change its voltage level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, there is not possible to get a 50MHz output signal, for example, through a timer's output due these peripherals use bus clock as their reference clock and due bus clock is up to 60 MHz. maximum output frequency could be 30MHz (60MHz / 2).&lt;/P&gt;&lt;P&gt;If you use this signal (60MHz maximum, setting core clock to work at 120MHz), you can toogle an output every 1-step counter and after 2 cycles, your signal returns to its initial state, resulting in a 30MHz output frequency.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55669i0BB29CFEDBD788A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope this can help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 16:53:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451515#M26784</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-07-08T16:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: How could I output 50MHz square waveform by using FRDM-K64F?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451516#M26785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avlia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much. Your advise is soooooo helpful.&lt;/P&gt;&lt;P&gt;Do you know whether the internal reference clock used in previou project is a sin wave or a square wave. Because I use a 100MHz oscillscope and what I see in the oscilliscope from PTC3 is more like sin wave. I am not sure if it is caused by oscillscope. Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 17:45:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451516#M26785</guid>
      <dc:creator>gloria</dc:creator>
      <dc:date>2015-07-08T17:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: How could I output 50MHz square waveform by using FRDM-K64F?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451517#M26786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gloria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also used a 100 MHz Oscilloscope so I had same results as yours. It is more like a sin wave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 18:54:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451517#M26786</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-07-08T18:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: How could I output 50MHz square waveform by using FRDM-K64F?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451518#M26787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean the internal reference clock is actually a sin wave instead of square wave? Sorry for my so limited knowledge of ARM processor.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Gloria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 18:59:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451518#M26787</guid>
      <dc:creator>gloria</dc:creator>
      <dc:date>2015-07-08T18:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: How could I output 50MHz square waveform by using FRDM-K64F?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451519#M26788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gloria&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, reference is square wave but we both see more like a senoidal due to pin's speed on toggling its state. &lt;/P&gt;&lt;P&gt;(And of course, due to oscilloscope's sampling frequency).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This speed is limited and when toggling pin's state it takes time to reach the opposite state and that is why we saw like a sine-wave (it could be more like a triangle-wave)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 19:46:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451519#M26788</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-07-08T19:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: How could I output 50MHz square waveform by using FRDM-K64F?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451520#M26789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your kindly help so so much! You help me a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Gloria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 19:50:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451520#M26789</guid>
      <dc:creator>gloria</dc:creator>
      <dc:date>2015-07-08T19:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How could I output 50MHz square waveform by using FRDM-K64F?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451521#M26790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get confused about the waveform.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57104iD1B185910DD486DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Why the lowest voltage of the waveform is a negative value and the waveform is not symmetric as normal?&lt;/P&gt;&lt;P&gt;Many thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Qingyuan Meng&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 12:12:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451521#M26790</guid>
      <dc:creator>gloria</dc:creator>
      <dc:date>2015-07-20T12:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: How could I output 50MHz square waveform by using FRDM-K64F?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451522#M26791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will have to agree that a 100MHz scope-bandwidth is only twice the 'frequency of interest', so how could you expect to see anything more than the fundamental, the sine-wave of 50MHz?&amp;nbsp; As the 'sum of odd harmonics', you would need at LEAST the 3rd (150MHz) and 5th (250MHz) harmonics to pass-thru 'relatively undiminished' to start to look square.&amp;nbsp; And working this close to the 'max range', the scope is probably also 'filling in' a sine-wave from the points it CAN read, hence generating a waveform that exceeds the rails.&amp;nbsp; Of course there I am ASSUMING that this 50MHz is NOT driving an unterminated trace, which would of course add its own 'ringing' to the situation!&amp;nbsp; Kinetis silicon is certainly capable of clean, fast edges -- see my 500MHz-scope picture in:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/353134"&gt;Confirming K22F Clock Frequency&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Although not the 'square wave' I expected in that shot, I got said square-wave with 'better code', showing a sequence of 10ns high and low intervals.&amp;nbsp; The point is that signal rise/fall-time can be about 5ns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st, 3rd &amp;amp; 5th make 'red' waveform:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image" src="http://sub.allaboutcircuits.com/images/22015.png" /&gt;&lt;/P&gt;&lt;P&gt;Note also how the 'pure sine wave' (green) is at a higher peak-to-peak than the 'final' +/-1 'squared off' wave.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 12:55:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-could-I-output-50MHz-square-waveform-by-using-FRDM-K64F/m-p/451522#M26791</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2015-07-20T12:55:10Z</dc:date>
    </item>
  </channel>
</rss>

