<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Using SPI to interface an omnivision camera?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/840/using-spi-to-interface-an-omnivision-camera</link><description>Hello, 
 I would like to develop an application that makes photos using a small camera from the omnivsion series and send the data via Bluetooht, using the nRF51822. These cameras use the SCCB (Seria Control Camera Bus) interface, which is similar to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Nov 2014 20:36:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/840/using-spi-to-interface-an-omnivision-camera" /><item><title>RE: Using SPI to interface an omnivision camera?</title><link>https://devzone.nordicsemi.com/thread/4152?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2014 20:36:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:908583c3-8ca3-446b-8f1a-9c382a6d5f32</guid><dc:creator>Marc Nicholas</dc:creator><description>&lt;p&gt;Even QCIF would be well beyond the capabilities of the nRF51 (~25K @ 8-bits)....plus it&amp;#39;d take several seconds per frame to transfer via BLE and even using an external SRAM, you also blow-up the short duty-cycle == long battery life use-case too as you&amp;#39;d be running the SPI peripheral continuously.&lt;/p&gt;
&lt;p&gt;BLE is just not optimized for these use-cases.&lt;/p&gt;
&lt;p&gt;-m&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SPI to interface an omnivision camera?</title><link>https://devzone.nordicsemi.com/thread/4151?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2014 20:31:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4df7ab5-da51-4c75-b05b-8b8676858411</guid><dc:creator>Adam</dc:creator><description>&lt;p&gt;Hi Elena,&lt;/p&gt;
&lt;p&gt;Can you specify what model of omnivision camera are you going to use? Generally I agree with Marc that there is not enough memory on the nRF51 to buffer images. Alternatively, you can change the resolution of the camera, e.g. to QCIF resolution (176x144) if this option is available in your camera.
For more omnivision cameras settings please visit &lt;a href="http://www.mobilerobots.pl/index.php?p=1_14_CMOS-camera"&gt;www.mobilerobots.pl/index.php&lt;/a&gt;
You should use the TWI code example from Nordic as a base and modify it to your needs. There is a little difference between SCCB and TWI(I2C). In TWI there is an ACK bit after each byte of transmission and in SCCB the slave don&amp;#39;t need to send ACK (Don&amp;#39;t care bit) - please see the answer in this post &lt;a href="https://devzone.nordicsemi.com/question/19301/twi-ignore-acknack-bit/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SPI to interface an omnivision camera?</title><link>https://devzone.nordicsemi.com/thread/4150?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2013 13:04:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c2c50c9-76d1-4278-9d38-285bd5f97ad4</guid><dc:creator>Marc Nicholas</dc:creator><description>&lt;p&gt;Hi Elana,&lt;/p&gt;
&lt;p&gt;The cameras use SCCB as a control channel for setup only. It &lt;em&gt;is&lt;/em&gt; I2C, but obviously I2C is a Philips trademark/standard....which is why Nordic called their implementation TWI.&lt;/p&gt;
&lt;p&gt;To get data out of the camera, you latch a parallel data bus. Often this requires an external buffer IC.&lt;/p&gt;
&lt;p&gt;Three problems you&amp;#39;ll face:&lt;/p&gt;
&lt;p&gt;(1) The amount of bandwidth the camera requires to latch out an image.
(2) Lack of enough memory on the nRF51 to buffer that image, requiring an external SRAM instead.
(3) The S110 SoftDevice is actually one of the better performing BLE stacks, but you&amp;#39;ll be lucky to get 5Kbytes/sec throughput.&lt;/p&gt;
&lt;p&gt;-m&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SPI to interface an omnivision camera?</title><link>https://devzone.nordicsemi.com/thread/4149?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2013 09:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0bdb5ee-3950-4658-9d7e-921176b38dc4</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;Hi Elena,&lt;/p&gt;
&lt;p&gt;There is a spi_master_example in the SDK (in Board/nrf6310 folder)
&lt;a href="http://devzone.nordicsemi.com/documentation/nrf51/4.4.0/html/group__spi__master__example.html"&gt;devzone.nordicsemi.com/.../group__spi__master__example.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;a driver (spi_master) is there as well (in the Source folder)
&lt;a href="http://devzone.nordicsemi.com/documentation/nrf51/4.4.0/html/group__lib__driver__spi__master.html#details"&gt;devzone.nordicsemi.com/.../group__lib__driver__spi__master.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>