<?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>nRF51822 - wired communication</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1822/nrf51822---wired-communication</link><description>In my current project, I have to develop a board with 2 mcu: 
 
 nRF51822 
 STM32F2/F4
The nRF51822 should running S110 SoftDevice and act as a kind of &amp;#187;over the air&amp;#171; modem, where the STM32 contains the main application business logic. 
 
 The question</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Mar 2014 10:19:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1822/nrf51822---wired-communication" /><item><title>RE: nRF51822 - wired communication</title><link>https://devzone.nordicsemi.com/thread/7902?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2014 10:19:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f7eb636-0755-4036-9c78-aa5dc2848f37</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Yes, this is a second revision chip, so that should work fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 - wired communication</title><link>https://devzone.nordicsemi.com/thread/7901?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2014 19:06:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86cb2932-637c-4bb9-bb0d-131e5080bf73</guid><dc:creator>Joe Merten</dc:creator><description>&lt;p&gt;Regarding Torbjørn&amp;#39;s post: Thanks for your correction - seemst that I&amp;#39;d read it too sloppy.&lt;/p&gt;
&lt;p&gt;Regarding Chip revision: Am I right, that my  »N51822 QFAAG0 1342AA« is 2nd revision, have 6-byte rx fifo and therefore should be able to communicate at up to 1 MBaud without lost bytes as long as I use HW handshake?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 - wired communication</title><link>https://devzone.nordicsemi.com/thread/7900?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2014 14:59:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1277e2a-26d5-4eea-adc9-1333496ab344</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I&amp;#39;d recommend using either SPI or UART for such application, since there is no hardware for a TWI slave in the nRF51822. As long as you use second revision chip, all of which has 6 byte UART buffers, and enable flow control, you should have no problem with lost bytes. With first revision chips, with only 2 byte buffers, overflow could occur if the transmitting chip wasn&amp;#39;t quick enough to stop sending data.&lt;/p&gt;
&lt;p&gt;Also, you don&amp;#39;t seem to quote Torbjørn correclty; his point is that you should either use flow control (which is the preferred solution), &lt;em&gt;or&lt;/em&gt; use a low baud rate, not both.&lt;/p&gt;
&lt;p&gt;To achieve the lowest possible current consumption, I&amp;#39;d recommend you to use as high baud rate as possible, so the serial interfaces are turned on for as short time as possible.&lt;/p&gt;
&lt;p&gt;There is an example of how the raw softdevice API can be serialized over UART in the SDK, and it should be perfectly possible to make this run on an STM. Take a look at the code in ble_s110_serialization folder, nrf51822\Board\nrf6310\ble_s110_serialization.&lt;/p&gt;
&lt;p&gt;An alternative to exposing the raw softdevice API would be to implement most of the BLE-functionality on the nRF51822 itself, and then expose only a higher level interface to the other chip. Even if you choose to do so, you should be able to reuse significant parts of the serialization work, if you want to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>