<?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: OV2640: Taking a picture?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/OV2640-Taking-a-picture/m-p/635690#M38342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Armend,&lt;/P&gt;&lt;P&gt;I used an Ov7670 because is the only camera model that I have here, I Used an oscilloscope and &amp;nbsp;the project that i redirected to you in this&amp;nbsp;question &amp;nbsp;&lt;A href="https://community.nxp.com/thread/436305"&gt;Camera + Kinetis&lt;/A&gt;&amp;nbsp;. I debugged &amp;nbsp;by step till the initialization of the camera, and the sync signals appear &amp;nbsp;in this step. please check if you are giving the right XCLCK &amp;nbsp;value, or please send me your project maybe I can find what is going on by watching your code.&lt;/P&gt;&lt;P&gt;&lt;A href="http://embeddedprogrammer.blogspot.com/2012/07/hacking-ov7670-camera-module-sccb-cheat.html"&gt;here is a post&lt;/A&gt; that helped me a lot with the camera. its for the Ov7670 but have some theory that might be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Nov 2016 17:59:16 GMT</pubDate>
    <dc:creator>Jonathan_Iglesias</dc:creator>
    <dc:date>2016-11-10T17:59:16Z</dc:date>
    <item>
      <title>OV2640: Taking a picture?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/OV2640-Taking-a-picture/m-p/635689#M38341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am working with Kinetis&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;K60F MK60FN1M0 and the OV2640 camera.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Has anyone experience with the OV2640 camera?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I connected the camera with the microcontroller. I generated a XCLK signal with 10.5 MHz. I can talk to the camera with I2C Bus. So the communication works. But i get no VSYNC signal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Have i to start taking picures? For example, something like "get Picture = ON". I did not find a command like that in the register of the OV2640 camera.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;i read that the camera automatically generate the VSYNC, HREF and PCLK signals if it gets the XCLK signal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;If that is true, then why i do not get a VSYNC signal?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Did someone work with the OV2640 camera?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Maybe someone can tell me how i get the VSYNC, HREF and PCLK signals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Armend&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Nov 2016 11:18:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/OV2640-Taking-a-picture/m-p/635689#M38341</guid>
      <dc:creator>armendgecaj</dc:creator>
      <dc:date>2016-11-05T11:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: OV2640: Taking a picture?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/OV2640-Taking-a-picture/m-p/635690#M38342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Armend,&lt;/P&gt;&lt;P&gt;I used an Ov7670 because is the only camera model that I have here, I Used an oscilloscope and &amp;nbsp;the project that i redirected to you in this&amp;nbsp;question &amp;nbsp;&lt;A href="https://community.nxp.com/thread/436305"&gt;Camera + Kinetis&lt;/A&gt;&amp;nbsp;. I debugged &amp;nbsp;by step till the initialization of the camera, and the sync signals appear &amp;nbsp;in this step. please check if you are giving the right XCLCK &amp;nbsp;value, or please send me your project maybe I can find what is going on by watching your code.&lt;/P&gt;&lt;P&gt;&lt;A href="http://embeddedprogrammer.blogspot.com/2012/07/hacking-ov7670-camera-module-sccb-cheat.html"&gt;here is a post&lt;/A&gt; that helped me a lot with the camera. its for the Ov7670 but have some theory that might be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 17:59:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/OV2640-Taking-a-picture/m-p/635690#M38342</guid>
      <dc:creator>Jonathan_Iglesias</dc:creator>
      <dc:date>2016-11-10T17:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: OV2640: Taking a picture?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/OV2640-Taking-a-picture/m-p/635691#M38343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your help.&lt;/P&gt;&lt;P&gt;I have looked at the demo that you dent me. But i could not find the starting point when the camera start to take a pciture.&lt;/P&gt;&lt;P&gt;I will continue looking at the demo. Maybe i will find some hint or something like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my project i am using the following components:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A I2C component to communicate with the camera. I tried it and that works very fine.&lt;/LI&gt;&lt;LI&gt;A PWM component to generate a PWM signal with 30 MHz (before it was 10.5 MHz) and a duty cilce of 50% (according to the datasheet i need a PWM with at least 6 MHz, so with 30 MHz i should be safe).&lt;/LI&gt;&lt;LI&gt;A GPIO component for the hardware reset. There is a pull up resistor.&lt;/LI&gt;&lt;LI&gt;A other GPIO component for the VSYNC signal. For the microcontroller its a input signal with no pull up or pull down resistor&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the main.c function i wrote this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WAIT1_Waitms(4);&lt;BR /&gt; PTC_Init(); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//hardware reset init function. The initial value is 0. So the camera will get a reset signal (all registers are set to &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//default)&lt;BR /&gt; WAIT1_Waitms(3);&lt;BR /&gt; PWM1_Init(NULL); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //PWM init function. The camera will get the XCLK signal (its a pwm signal with 30 MHz and 50% duty cicle)&lt;BR /&gt; WAIT1_Waitms(4);&lt;BR /&gt; GPIO_PDD_SetPortDataOutput(PTC_DEVICE,(1&amp;lt;&amp;lt;14)); &amp;nbsp; &amp;nbsp; &amp;nbsp;//Now the hardware reset value is 1. The camera will no get a reset signal &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//anymore&lt;BR /&gt; WAIT1_Waitms(4);&lt;/P&gt;&lt;P&gt;PTA_Init(); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Port A init function to get the VSYNC signal from the camera&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The I2C compnent i did not use because first of all i will only get the control signals (i.e. VSYNC). So i can use the default values in the register of the camera.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i looked the XCLK and the VSYNC signals with a logic analyzer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8554iD9EC71081ACFFF39/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Channel 0 is the XCLK signal. Channel 1 is the VSYNC signal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see the XCLK signal is a rectangle signal. But the VSYNC signal is always zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means the camera did not generate a VSYNC signal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the Datasheet of OV2640, the XCLK signal have to be at least 6 MHz. 24 MHz &amp;nbsp;are recommended.&lt;/P&gt;&lt;P&gt;According the default values in the register of OV2640 the clock divider is 1. So the clock divider can not be the problem.&lt;/P&gt;&lt;P&gt;And i read that with the default values the frequency of PLCK will be the same as the frequency of XLCK. And with clock divider 1 it has to be 30 MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would send you my project but there is no attachment button or something like that.&lt;/P&gt;&lt;P&gt;But maybe you can give me a mail address and i will send you my project as a mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Armend&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Nov 2016 11:59:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/OV2640-Taking-a-picture/m-p/635691#M38343</guid>
      <dc:creator>armendgecaj</dc:creator>
      <dc:date>2016-11-12T11:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: OV2640: Taking a picture?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/OV2640-Taking-a-picture/m-p/635692#M38344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the problem. My PWM_Component do not generate a PWM signal. A PWM signal is a rectangle signal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;At my University i controlled the XCLK signal (coming from my PWM_Component) with a oscilloscop and the XCLK signal is like a Sine - Signal.&lt;/P&gt;&lt;P&gt;According to the datasheet of OV2640 it has to be a rectangle signal (in the datasheet i read: "Clock input rise/fall time = max. 5ns").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that means &amp;nbsp;i have to create my PWM signal with a other CodeWarrior Component.&lt;/P&gt;&lt;P&gt;Maybe you can tell me how i can generate a PWM signal (= rectangle signal with fall/rise time max. 5 ns) with a frequency of 24MHz and a duty cycle of 50%.&lt;/P&gt;&lt;P&gt;I am working with&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Kinetis&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;K60F MK60FN1M0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Armend&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 09:05:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/OV2640-Taking-a-picture/m-p/635692#M38344</guid>
      <dc:creator>armendgecaj</dc:creator>
      <dc:date>2016-11-18T09:05:01Z</dc:date>
    </item>
  </channel>
</rss>

