<?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>12.5k Sampling ADC Data lost</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73453/12-5k-sampling-adc-data-lost</link><description>Hello. I am receiving an input of 1 Hz. ADC is receiving 12 bits. uart&amp;#39;s baud rate is 1000000. ADC input is output as UART raw data. 
 To do this, I modified the following: #define SAADC_CONFIG_RESOLUTION 2 #define UART_DEFAULT_CONFIG_BAUDRATE 30801920</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Apr 2021 09:08:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73453/12-5k-sampling-adc-data-lost" /><item><title>RE: 12.5k Sampling ADC Data lost</title><link>https://devzone.nordicsemi.com/thread/302839?ContentTypeID=1</link><pubDate>Thu, 01 Apr 2021 09:08:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:397cb31f-658e-45db-8b21-04d48a86a730</guid><dc:creator>odenwar</dc:creator><description>&lt;p&gt;I&amp;#39;ve checked.&lt;br /&gt;There was a baud rate setting in the main code.&lt;br /&gt;I thought I had to modify it in the sdk_config.h file, but I need to do it in the main.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void uart_init(void)
{
    uint32_t                     err_code;
    app_uart_comm_params_t const comm_params =
    {
        .rx_pin_no    = RX_PIN_NUMBER,
        .tx_pin_no    = TX_PIN_NUMBER,
        .rts_pin_no   = RTS_PIN_NUMBER,
        .cts_pin_no   = CTS_PIN_NUMBER,
        .flow_control = APP_UART_FLOW_CONTROL_DISABLED,
        .use_parity   = false,
#if defined (UART_PRESENT)
        .baud_rate    = NRF_UART_BAUDRATE_1000000
#else
        .baud_rate    = NRF_UARTE_BAUDRATE_115200
#endif
    };

    APP_UART_FIFO_INIT(&amp;amp;comm_params,
                       UART_RX_BUF_SIZE,
                       UART_TX_BUF_SIZE,
                       uart_event_handle,
                       APP_IRQ_PRIORITY_LOWEST,
                       err_code);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 12.5k Sampling ADC Data lost</title><link>https://devzone.nordicsemi.com/thread/302785?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 15:04:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cd6b766-83f4-4f7c-8e38-f43527f45d46</guid><dc:creator>odenwar</dc:creator><description>&lt;p&gt;I&amp;#39;ll check the RTT, but I think it should work in the UART specification.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Uart baud rate 1,000,000&lt;/p&gt;
&lt;p&gt;12.5k [ Sampling Data Count ] * ( 8&amp;nbsp; [&amp;nbsp;Character bit ] * 6 [ Actual data including newline characters ] )&lt;/p&gt;
&lt;p&gt;=&amp;nbsp;600,000&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The share of the spec is using 60%.&lt;br /&gt;Looks fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 12.5k Sampling ADC Data lost</title><link>https://devzone.nordicsemi.com/thread/302780?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 14:48:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7033690b-5c52-43af-a80c-c33c86bcd717</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You can read more about Segger RTT here: &lt;a href="https://www.segger.com/products/debug-probes/j-link/technology/about-real-time-transfer/"&gt;https://www.segger.com/products/debug-probes/j-link/technology/about-real-time-transfer/&lt;/a&gt;. It basically allows you to log data out on the SWD/Debug interface instead of using UART. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;sdk_config.h settings to enable the RTT &lt;span&gt;&lt;a title="Logger module" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_nrf_log.html?cp=7_1_3_27"&gt;Logger module&lt;/a&gt;&lt;/span&gt; backend:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;NRF_LOG_BACKEND_UART_ENABLED 0&lt;/p&gt;
&lt;p&gt;NRF_LOG_BACKEND_RTT_ENABLED 1&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;And RTT log displayed in &amp;quot;Debug Terminal&amp;quot;:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1617202393182v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 12.5k Sampling ADC Data lost</title><link>https://devzone.nordicsemi.com/thread/302775?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 13:57:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10f6f4de-81a3-4715-ad3a-33a69c972240</guid><dc:creator>odenwar</dc:creator><description>&lt;p&gt;what do you mean?&lt;/p&gt;
&lt;p&gt;&amp;quot;Is it an option to use RTT for logging instead? It should be faster.&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 12.5k Sampling ADC Data lost</title><link>https://devzone.nordicsemi.com/thread/302759?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 13:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ed7e147-456a-4844-b4cd-c120e563d11e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not seeing any mistakes in the code you posted, it looks like you are just sending more data than what the UART can handle. Is it an option to use RTT for logging instead? It should be faster.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>