<?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>Validate ADC sampling at 1 kHz</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14187/validate-adc-sampling-at-1-khz</link><description>Hi, 
 I am a new programmer to the NRF51 and I was wondering if someone would look at my code. I am trying to program the NRF51 to take ADC samples at a frequency of 1 kHz. My code also doesn&amp;#39;t seem to produce any values when I run it on putty and the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 May 2016 08:22:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14187/validate-adc-sampling-at-1-khz" /><item><title>RE: Validate ADC sampling at 1 kHz</title><link>https://devzone.nordicsemi.com/thread/54207?ContentTypeID=1</link><pubDate>Tue, 31 May 2016 08:22:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:851361a5-454d-4dc6-a9f1-5e012400478f</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;&lt;code&gt;NRF_LOG_INIT()&lt;/code&gt; will initialize the log module.&lt;/p&gt;
&lt;p&gt;Around 28 characters at 115200 will take about &lt;code&gt;1/115200 * 10 bauds per byte * 28 byte = 2.4ms&lt;/code&gt;, so you would not be able to print out as fast as you sample, which will lead to your buffer being filled up and eventually junk will be printed. You can use RTT instead by changing &lt;code&gt;NRF_LOG_USES_UART=1&lt;/code&gt; to &lt;code&gt;NRF_LOG_USES_RTT=1&lt;/code&gt; in the precompiler symbols. RTT is much faster (uses the debug interface). You need RTT viewer to see what you print on the PC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate ADC sampling at 1 kHz</title><link>https://devzone.nordicsemi.com/thread/54206?ContentTypeID=1</link><pubDate>Mon, 30 May 2016 19:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0123188b-c3e3-4233-b6cc-d286eb657d21</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;you can read about each module and it&amp;#39;s usage and initialization in SDK documentation available on infocenter. however, i suggest you to start on checking how it is implemented in examples available in SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate ADC sampling at 1 kHz</title><link>https://devzone.nordicsemi.com/thread/54205?ContentTypeID=1</link><pubDate>Mon, 30 May 2016 18:01:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f3619ef-0c29-46d9-a48e-8fd8f7c23ba8</guid><dc:creator>Sri_guy</dc:creator><description>&lt;p&gt;Ok, how do I initialize log module over UART? I included the library &amp;quot;nrf_log.h&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate ADC sampling at 1 kHz</title><link>https://devzone.nordicsemi.com/thread/54203?ContentTypeID=1</link><pubDate>Mon, 30 May 2016 15:03:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79152595-3274-4250-ac98-b9965c55f282</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;I think your app crashes, because you are trying to use uninitialized LOG module. You can just use debugger and check what your program is doing...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate ADC sampling at 1 kHz</title><link>https://devzone.nordicsemi.com/thread/54204?ContentTypeID=1</link><pubDate>Mon, 30 May 2016 14:14:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfd9732a-3eef-425c-8b4c-543b4a739f05</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;You have not initialized log module (i dunno if you want to use UART or RTT logging, but it is not initialized anyway), so your debug output is not working.&lt;/p&gt;
&lt;p&gt;I am not sure though you will be able to have 1k sampling with debug print at the same time... try some lower frequencies at the beginning maybe?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>