<?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>i.MX ProcessorsのトピックRe: CSI0 Setup for Greyscale camera</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174208#M6267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The way I solved this problem is I capture as RGB24 which is supported but I specify horizontal resolution as h_res/3 i.e. I fool CSI interface to think that every 3 gray pixels are one rgb pixel. You need to make sure that h_res/3 comes out divisible by 16 and v_res has to be divisible by 8. For example h_res/3=2592/3 and 1296/3 (x2 binning for 5MP gray scale camera) will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jul 2013 17:18:06 GMT</pubDate>
    <dc:creator>DraganOstojic</dc:creator>
    <dc:date>2013-07-03T17:18:06Z</dc:date>
    <item>
      <title>CSI0 Setup for Greyscale camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174203#M6262</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am starting a project that will take input from a greyscale camera (8 bits to test on a i.MX53 QSBR and later 14 bits on a custom board using a i.MX6Solo).&amp;nbsp; It is not clear to me how to set the CSI0 port up to accept greyscale data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 45-2 of the i.MX53 Reference Manual Rev 2. 12/2011 states that modes for greyscale are supported for both 8 bit and 16 bit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the CSI0_SENS_DATA_FORMAT field in the IPU_CSI0_SENS_CONF register (Section 45.51.111), it is not intuitively obvious what to select for a greyscale format:&lt;/P&gt;&lt;P&gt;000 full RGB or YUV444&lt;/P&gt;&lt;P&gt;001 YUV422&lt;/P&gt;&lt;P&gt;010 YUV422&lt;/P&gt;&lt;P&gt;011 Bayer or Generic Data&lt;/P&gt;&lt;P&gt;100 RGB565&lt;/P&gt;&lt;P&gt;101 RGB555&lt;/P&gt;&lt;P&gt;110 RGB444&lt;/P&gt;&lt;P&gt;111 JPEG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Digging even further, the data sheet has a table (Table 58 in section 4.7.8.1) shows how to connect the CSI0 pins for the respective color formats.&amp;nbsp; A pure greyscale mode is not present (even though greyscale could be placed in a YUV format without the UV).&amp;nbsp; The generic data mode is also not clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone attempted to use the greyscale mode for camera input on CSI0?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I have a thread going with my local FAEs but I wanted to open this discussion up).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 20:04:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174203#M6262</guid>
      <dc:creator>JimMalone</dc:creator>
      <dc:date>2012-07-11T20:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: CSI0 Setup for Greyscale camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174204#M6263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;I connected a monocrome WVGA camera to CSI0 using parallel 8 bit interface &lt;BR /&gt;(CSI0_DAT19-12, CSI0_PXCLK, CSI0_HSYNC, CSI0_VSYNC and I2c2). &lt;BR /&gt;I attached a file demonstrating my setup, which worked after a lot of &lt;BR /&gt;try and error because the manuals are often not very helpful.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;BR /&gt;BR Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 07:29:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174204#M6263</guid>
      <dc:creator>KlausGuertler</dc:creator>
      <dc:date>2012-07-12T07:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: CSI0 Setup for Greyscale camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174205#M6264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, Klaus! How you configure codec for work with grayscale? I modify mxc_vpu_test.out, change V4L2_PIX_FMT_YUV420 on V4L2_PIX_FMT_GREY in capture.c, but image always have color. Freescale technical support answer: Unfortunately grayscale (generic format) is not supported in Linux BSP, sorry, one will have to add such support himself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 08:54:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174205#M6264</guid>
      <dc:creator>BrilliantovKiri</dc:creator>
      <dc:date>2012-09-05T08:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: CSI0 Setup for Greyscale camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174206#M6265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="fn url" href="http://imxcommunity.org/group/imx53quickstartboard/forum/topic/listForContributor?user=2567aa1vlwmbc"&gt;Brilliantov Kirill Vladimirovich&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;probably I can not help you with your questions according the Linux BSP.&lt;/P&gt;&lt;P&gt;As you can see from the file I attached for Jim Malone (ForJim.zip), I programmed the capturing&amp;nbsp;of the grayscale camera&lt;/P&gt;&lt;P&gt;at a very low level, register by register, with the IAR compiler for ARM. And at the end I watched the picture via a memory dump. I did not use&amp;nbsp;the BSP in my code.&lt;/P&gt;&lt;P&gt;BR Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 10:57:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174206#M6265</guid>
      <dc:creator>KlausGuertler</dc:creator>
      <dc:date>2012-09-05T10:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: CSI0 Setup for Greyscale camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174207#M6266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any updates?&amp;nbsp; I am running into the same issue with the imx6.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 19:16:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174207#M6266</guid>
      <dc:creator>ambiguity</dc:creator>
      <dc:date>2013-05-01T19:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: CSI0 Setup for Greyscale camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174208#M6267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The way I solved this problem is I capture as RGB24 which is supported but I specify horizontal resolution as h_res/3 i.e. I fool CSI interface to think that every 3 gray pixels are one rgb pixel. You need to make sure that h_res/3 comes out divisible by 16 and v_res has to be divisible by 8. For example h_res/3=2592/3 and 1296/3 (x2 binning for 5MP gray scale camera) will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 17:18:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174208#M6267</guid>
      <dc:creator>DraganOstojic</dc:creator>
      <dc:date>2013-07-03T17:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: CSI0 Setup for Greyscale camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174209#M6268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the info... it may definitely help me in the future.&amp;nbsp; For IMX6, I resolved it as well... see &lt;A _jive_internal="true" href="https://community.nxp.com/thread/306822"&gt;https://community.freescale.com/thread/306822&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Basically, just added support for Grayscale so I did not have to change the upper (user) layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 18:49:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174209#M6268</guid>
      <dc:creator>ambiguity</dc:creator>
      <dc:date>2013-07-03T18:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: CSI0 Setup for Greyscale camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174210#M6269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good that you resolved your issue and thanks for the pointer to the native gray scale support. I'll give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 19:15:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CSI0-Setup-for-Greyscale-camera/m-p/174210#M6269</guid>
      <dc:creator>DraganOstojic</dc:creator>
      <dc:date>2013-07-03T19:15:20Z</dc:date>
    </item>
  </channel>
</rss>

