<?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>nRF8001 + PIC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3377/nrf8001-pic</link><description>Hello every boby, 
 I&amp;#39;m a newbie in PIC programming and I hope something could help me to start interfacing the nRF8001 with a PIC. My schematic is already done but I don&amp;#39;t know how to begin the code.
Are there some code examples that I could use ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 13 Sep 2014 12:55:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3377/nrf8001-pic" /><item><title>RE: nRF8001 + PIC</title><link>https://devzone.nordicsemi.com/thread/12284?ContentTypeID=1</link><pubDate>Sat, 13 Sep 2014 12:55:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45acd682-95b0-48b1-a908-c269a170a4d0</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;Unfortunately none of the PIC examples that I have seen are open source. However it is fairly easy to port the nRF8001 library to the PIC24 or the PIC18. I have been considering the &lt;a href="http://www.pinguino.cc/shop/index.php?route=product/product&amp;amp;path=59&amp;amp;product_id=50"&gt;Pinguino PIC18&lt;/a&gt; platform as a easy way to port the Arduino SDK of the nRF8001 to the PIC.&lt;/p&gt;
&lt;p&gt;Use the porting guide in the &lt;a href="https://github.com/NordicSemiconductor/ble-sdk-arduino/blob/master/documentation/libraries/BLE/nRF8001-Porting-ACI-Library.md"&gt;nRF8001 SDK in Github.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Steps to do the porting:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Take care of the datatypes
Typedefs for uint8_t , uint16_t, int8_t and int16_t etc. for the PIC&lt;/li&gt;
&lt;li&gt;Port/Re-implement the SPI driver.
&lt;ul&gt;
&lt;li&gt;Key points:
nRF8001 is LSBit first and MODE0 SPI&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Port the ACI library of the nRF8001
&lt;ul&gt;
&lt;li&gt;The library is portable C code so it should port directly to the pinguino&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I think this is easiest to do on the Pinguino, the &lt;a href="http://wiki.pinguino.cc/index.php/How_can_I_make_libraries_for_Pinguino%3F"&gt;Pinguino is a little different from the Arduino&lt;/a&gt; as it only supports C but that should make it easier.&lt;/p&gt;
&lt;p&gt;Let me know if you need more help on your Pinguino + nRF8001 project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 + PIC</title><link>https://devzone.nordicsemi.com/thread/12283?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2014 05:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16691361-6a1c-4576-9391-5a8e042318b0</guid><dc:creator>Knut Eldhuset</dc:creator><description>&lt;p&gt;Maybe you should look into the nRF51822 instead? Then you would not need to interface two chips.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>