<?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>ADC + PPI + Timer on the nRF51822 polling too fast</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19639/adc-ppi-timer-on-the-nrf51822-polling-too-fast</link><description>I have the following ADC code: bitbucket.org/.../eakpq 
 I have been trying for the past few days to get this code to just perform a single ADC scan, on five channels, once every 100ms. 
 It seems like this should be simple to do and I think the code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Apr 2018 18:25:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19639/adc-ppi-timer-on-the-nrf51822-polling-too-fast" /><item><title>RE: ADC + PPI + Timer on the nRF51822 polling too fast</title><link>https://devzone.nordicsemi.com/thread/129629?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 18:25:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:643a30ed-da0e-4b6d-a3ff-5e3b969e4e78</guid><dc:creator>Alisha</dc:creator><description>&lt;p&gt;Hi Robert,&lt;/p&gt;
&lt;p&gt;I have same problem with sdk12.3.0 and nRF51822 with softdevice S130 v2.&lt;/p&gt;
&lt;p&gt;I read this thread but unfortunately I didn&amp;#39;t understand how should fix the issue? Is it a bug in SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC + PPI + Timer on the nRF51822 polling too fast</title><link>https://devzone.nordicsemi.com/thread/76431?ContentTypeID=1</link><pubDate>Sat, 04 Mar 2017 23:23:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1739792-dd29-4c1c-901b-a41abeb46c5f</guid><dc:creator>Robert Massaioli</dc:creator><description>&lt;p&gt;Now that I have worked through all of the issues that I had, I have managed to make a working example together of a Bluetooth Keyboard working with ADC support: &lt;a href="https://bitbucket.org/robertmassaioli/ble_app_hids_keyboard_with_adc/overview"&gt;bitbucket.org/.../overview&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have updated my response below.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC + PPI + Timer on the nRF51822 polling too fast</title><link>https://devzone.nordicsemi.com/thread/76434?ContentTypeID=1</link><pubDate>Sat, 18 Feb 2017 00:10:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:055a8f9d-6d9b-4d08-ba22-82b92d462761</guid><dc:creator>Robert Massaioli</dc:creator><description>&lt;p&gt;That would be awesome. I know you don&amp;#39;t support the nRF51 devices anymore but seeing it working for the v13 SDK would help me understand how to make it work with the v12 SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC + PPI + Timer on the nRF51822 polling too fast</title><link>https://devzone.nordicsemi.com/thread/76433?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2017 15:59:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a929a9e7-1b9f-4c48-ab72-c20585c350b2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I will see if we can update the libraries to SDK 13 when the final version is released.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC + PPI + Timer on the nRF51822 polling too fast</title><link>https://devzone.nordicsemi.com/thread/76432?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2017 20:45:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25ae612b-f0b0-40cc-bfa6-bf8df4c8b04f</guid><dc:creator>Robert Massaioli</dc:creator><description>&lt;h2&gt;Update 2: A working example&lt;/h2&gt;
&lt;p&gt;Thanks to the excellent help from these forums I have been able to put a working example together of the nRF51 working as a bluetooth keyboard with the ADC running: &lt;a href="https://bitbucket.org/robertmassaioli/ble_app_hids_keyboard_with_adc/overview"&gt;bitbucket.org/.../overview&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Update 1: Thread continuation&lt;/h2&gt;
&lt;p&gt;This thread is &lt;a href="https://devzone.nordicsemi.com/question/116381/adc-ppi-sdk-v1100-works-but-v1220-does-not/"&gt;continued by this question&lt;/a&gt; which has a working version of UART + ADC + PPI code for the 12.2.0 SDK. Use that as your starting point.&lt;/p&gt;
&lt;h1&gt;Original Question&lt;/h1&gt;
&lt;p&gt;Alright, here is what I did:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I downloaded the 11.0.0 SDK&lt;/li&gt;
&lt;li&gt;Hooked it up to the github ADC example that I posted in the question: &lt;a href="https://github.com/NordicSemiconductor/nrf51-ADC-examples/blob/master/adc_timer_driven_scan_mode/main.c"&gt;github.com/.../main.c&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Attempted to get it running on my BLE400&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It worked but there were some gotchas.&lt;/p&gt;
&lt;p&gt;For starters, if I connected to a device that read the Bluetooth UART and I sent messages too quickly (because the ADC was reading too quickly) then I would get disconnections. Throttling the rate at which I sent the UART messages was a must. I suppose there must be documentation somewhere about the maximum rate in which you can send messages down the Bluetooth UART but I have not found it yet.&lt;/p&gt;
&lt;p&gt;Also, this seems to work for version 11.0.0 of the SDK. This is the good news.&lt;/p&gt;
&lt;p&gt;The bad news is that this is with version 11.0.0 of the SDK. I am going to attempt to update this code example to work with version 12.2.0 of the SDK and see if everything still works. Now that I know that this version does work on my device. Wish me luck; I&amp;#39;ll post my results back here.&lt;/p&gt;
&lt;p&gt;Note: The annoying part is that ever the nRF52 version of these code samples uses SDK 11.0.0: &lt;a href="https://github.com/NordicSemiconductor/nRF52-ADC-examples/tree/master/ble_app_uart__saadc_timer_driven__scan_mode"&gt;github.com/.../ble_app_uart__saadc_timer_driven__scan_mode&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I wonder if the excellent Nordic support team will update these Github repositories. I&amp;#39;ve raised an issue to try and make that happen: &lt;a href="https://github.com/NordicSemiconductor/nrf51-ADC-examples/issues/4"&gt;github.com/.../4&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC + PPI + Timer on the nRF51822 polling too fast</title><link>https://devzone.nordicsemi.com/thread/76430?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2017 21:58:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e84bde37-fae8-4ffb-8b5f-c1bde4652b82</guid><dc:creator>Robert Massaioli</dc:creator><description>&lt;p&gt;Thank you for looking. I will attempt to put one together and link it back here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC + PPI + Timer on the nRF51822 polling too fast</title><link>https://devzone.nordicsemi.com/thread/76429?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2017 14:01:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ffde155-c555-49d9-9a5a-192487a62a10</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You should provide a complete working example. I created a project using your code and it seems to takes 10 seconds for &lt;code&gt;adc_scan_count&lt;/code&gt; to reach 100.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>