<?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>SAADC buffer / UART data noise problem questions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67045/saadc-buffer-uart-data-noise-problem-questions</link><description>Hello, 
 I have one more questions while doing test with SAADC, UART. 
 When I was tested the SAADC pin connect with ground, the negative value occurs. 
 So, I changed the code like below and I can see the 0 value in LOG info. 
 However, in the UART RX</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Oct 2020 13:31:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67045/saadc-buffer-uart-data-noise-problem-questions" /><item><title>RE: SAADC buffer / UART data noise problem questions</title><link>https://devzone.nordicsemi.com/thread/274677?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 13:31:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bfbd224-6d32-460d-84da-cb764d97cb1c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Yclee,&lt;/p&gt;
[quote user=""]So, I changed the code like below and I can see the 0 value in LOG info.[/quote]
&lt;p&gt;Can you upload your code from Insert -&amp;gt; Code instead of screenshots? That would make it more readable. Please also note that you getting negative values indicate that the SAADC has not been calibrated. I recommend you consider using the internal reference instead of VDD/4, and that you perform calibration at startup.&amp;nbsp;&lt;/p&gt;
[quote user=""]1) p_event-&amp;gt;data.done.p_buffer[0] = 0; this line code cannot be changed the pointer value?[/quote]
&lt;p&gt;Can you clarify? What this line does is take the first element in the p_buffer array and sets the value to 0, but I am not sure what was the question?&lt;/p&gt;
[quote user=""]2) Is is right method that 1channel and 1buffer using?[/quote]
&lt;p&gt;I do not see any obvious issues, but it depends on what you want. Is there an issue here?&lt;/p&gt;
&lt;p&gt;But you are right that there will be noise in any case. This is why you may want to consider oversampling, which is basically taking a number of samples and averaging them. As you use VDD as reference you may get noise depending on the current draw from the nRF (as it may cause voltage to drop). So seeing noise based on UART activity or other is not unexpected in this case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>