<?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>The input range of the SAADC is not as expected.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84909/the-input-range-of-the-saadc-is-not-as-expected</link><description>Hellow 
 We are in trouble. Please tell me what to do. 
 The input range of the SAADC is not as expected. 
 I use: ・nrf52840 ・VDD=3.3V by Regulator ・nRF5_SDK_17.1.0 ・Sample program Unmodified　\examples\peripheral\saadc 
 Therefore: ・gain=1/6 ・Resolution</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Mar 2022 11:38:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84909/the-input-range-of-the-saadc-is-not-as-expected" /><item><title>RE: The input range of the SAADC is not as expected.</title><link>https://devzone.nordicsemi.com/thread/356267?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 11:38:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:100da21f-d58f-4066-aed7-9143e5785f5c</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I&amp;#39;m Glad I could be of assitance :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The input range of the SAADC is not as expected.</title><link>https://devzone.nordicsemi.com/thread/356160?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2022 23:59:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5ee1af1-0c86-4f4a-b2a4-b803b5cbf117</guid><dc:creator>TML_YT</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I asked Raytac and they said the evaluation board is working with VDDH. And I understood that it is working with LDO, not DC/DC.&lt;/p&gt;
&lt;p&gt;I think the trouble is that Raytac shipped with UICR-&amp;gt; REGOUT0=5, but I did an All Erase and it went back to REGOUT0=7.&lt;br /&gt;I think this is why, since All Erase, the board has a GPIO output H level of 1.8V and the SAADC input range is no longer as expected.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Finally, I have cleared things up.&lt;br /&gt;Thank you for all your help and advice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The input range of the SAADC is not as expected.</title><link>https://devzone.nordicsemi.com/thread/355797?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 11:54:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41ca06fc-4440-48bc-8309-a72b18f1f432</guid><dc:creator>haakonsh</dc:creator><description>&lt;ol&gt;
&lt;li&gt;The &lt;span&gt;UICR-&amp;gt;REGOUT0 register was likely set to 5(3.3V) at some point, then an nrfjprog eraseall command reset the&amp;nbsp;UICR-&amp;gt;REGOUT0 to its default state, 7 (1.8V).&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;You check for the state of the DCDC regulators, If false it means that they are operating in LDO mode.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;I hope this clears things up. Most likely Raytac ships their dk&amp;#39;s with&amp;nbsp;UICR-&amp;gt;REGOUT0 set to 5, we do the same for our nRF52840 dongles.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The input range of the SAADC is not as expected.</title><link>https://devzone.nordicsemi.com/thread/355675?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 01:21:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ecf6ef2-daf5-4f06-be08-534c642c2396</guid><dc:creator>TML_YT</dc:creator><description>&lt;p&gt;A series of problems were solved by writing a &amp;#39;5&amp;#39; to the UICR-&amp;gt;REGOUT0 register in high voltage mode, setting it to 3.3V.&lt;/p&gt;
&lt;p&gt;The output level of the GPIO is now about 3V and the input voltage range of the SAADC is the same as the set value.&lt;/p&gt;
&lt;p&gt;However, this register should only be enabled when operating in VDDH mode. The circuit was wired in such a way that it would work in VDDH mode, but the question remains: why?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;(1) Then, why was VH=3.3V sometimes observed in the beginning?&lt;br /&gt;The waveform recorded by the oscilloscope at the time was about 3V, so I don&amp;#39;t think I&amp;#39;m mistaken.&lt;/p&gt;
&lt;p&gt;(2) Also, why the return value of &amp;quot;nrf_power_dcdcen_get();&amp;quot; or &amp;quot;nrf_power_dcdcen_vddh_get();&amp;quot; is &amp;quot;false&amp;quot; in both cases?&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t change the power supply, and I didn&amp;#39;t apply the current to the regulator to make the voltage drop significantly.Incidentally, the revision for the 52480 was NRF52480_xxAA_REV2.&lt;/p&gt;
&lt;p&gt;Do you know the reason for these questions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The input range of the SAADC is not as expected.</title><link>https://devzone.nordicsemi.com/thread/355598?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 14:36:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e1e82f8-0fef-4d86-84e4-be1a6448f811</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;&lt;a title="REGOUT0" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uicr.html?cp=4_0_0_3_4_0_7#register.REGOUT0"&gt;REGOUT0&lt;/a&gt;&amp;nbsp;is set to 1.8V. When you apply a voltage of 2.1V and above (1.8V + 0.3V) the ESD diodes will start conducting from the analog input into VDD. If the signal source has more than ~100ohm internal impedance the voltage on the input pin will drop closer to VDD.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;See the I/O pin voltage specs in&amp;nbsp;&lt;a title="Absolute maximum ratings" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/abs_max_ratings.html?cp=4_0_0_8"&gt;Absolute maximum ratings&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The input range of the SAADC is not as expected.</title><link>https://devzone.nordicsemi.com/thread/355399?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 00:27:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5fe5db9-d0f2-483e-9b9f-425ff5a53e87</guid><dc:creator>TML_YT</dc:creator><description>&lt;p&gt;Thanks for the reply&lt;/p&gt;
&lt;p&gt;I too am beginning to think that the device has been damaged.&lt;/p&gt;
&lt;p&gt;(1) Attached is the state of the UICR register.&lt;br /&gt;I loaded the sample program &amp;quot;blinky_FreeRTOS&amp;quot; and monitored it with the view-Registers function of SEGGER. In the SAADC program, the contents of the register are exactly the same.&lt;br /&gt;I hope you can find out the cause from this.&lt;/p&gt;
&lt;p&gt;(2) As for SAADC, the result is similar for AIN0 and AIN1.&lt;br /&gt;As for GPIO output, I tried some other ports, but H level was 1.8V as well.&lt;/p&gt;
&lt;p&gt;By the way, as for my concern about Erase-All, I asked Raytac about this, and I found that there is no problem in using it.&lt;br /&gt;I still think that the device might have been damaged by the wrong power-on sequence of the evaluation board or debugger, or by static electricity.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/blinky_5F00_FreeRTOS_5F00_pca10056-Registers-_2D00_-01_2D00_3_2D00_22-at-08h56.txt"&gt;devzone.nordicsemi.com/.../blinky_5F00_FreeRTOS_5F00_pca10056-Registers-_2D00_-01_2D00_3_2D00_22-at-08h56.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The input range of the SAADC is not as expected.</title><link>https://devzone.nordicsemi.com/thread/355240?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2022 11:05:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a264310-dacf-460e-a7a3-a9866e0805ad</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;One possible scenario is that the ESD protection diodes on the GPIO is damaged, that could explain the observations. When the ESD diodes blow they tent to make a partial short to either GND or VDD, depending on which of the ESD diodes who blows.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you read out the state of the UICR registers?&amp;nbsp;&lt;br /&gt;&amp;#39;nrfjprog -f nrf52 --readuicr uicr.txt&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And can you try another analog input and see if you get the same result?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The input range of the SAADC is not as expected.</title><link>https://devzone.nordicsemi.com/thread/354906?ContentTypeID=1</link><pubDate>Fri, 25 Feb 2022 00:55:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfb5500b-7ab9-40ff-b18b-7561620d74ae</guid><dc:creator>TML_YT</dc:creator><description>&lt;p&gt;Actually, after examining the SAADC problem, I realized that the problem is not only with the input range of the ADC, but also with the output level of the GPIO, which is not restored by the sample program that was working fine before.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the story again.&lt;/p&gt;
&lt;p&gt;(Background)&lt;br /&gt;I&amp;#39;m trying Raytac MDBT50Q-DB. The development environment is SEGGER.&lt;br /&gt;For each function, I am trying the sample program provided by SEGGER.&lt;br /&gt;The power supply is USB 5V converted to 3.3V by regulator.&lt;br /&gt;RF operation, simple GPIO function, external ADC control via SPI, internal SAADC...&lt;br /&gt;It worked fine up to a point.&lt;/p&gt;
&lt;p&gt;(Problem)&lt;br /&gt;---When we were verifying the SAADC, at first, it was actually working fine up to 3.3V when initially configured to have an analog input range of 3.6V. We did not tell you about this.&lt;br /&gt;However, at some point, the problem started to occur where the input was only up to 2.1V, and even after reloading the first program, it did not return to normal, which is why we posted this on the web.&lt;br /&gt;---Yesterday, I noticed the other problem. In other sample programs, the GPIO&amp;#39;s&lt;br /&gt;output H level was not 3.3V but around 2V. If I reload a program that was working fine before, it does not return to normal.&lt;/p&gt;
&lt;p&gt;Therefor It seems that my problem is not only with the input range of the SAADC.&lt;br /&gt;--The problem is not only with the input range of the SAADC, but also with the output level of the GPIO.&lt;br /&gt;--I don&amp;#39;t know when these problems occurred.&lt;/p&gt;
&lt;p&gt;(I have an idea).&lt;br /&gt;I don&amp;#39;t know the details of the expected startup program for the Raytac module.&lt;br /&gt;I don&amp;#39;t know, because there is no documentation. &lt;br /&gt;Regarding your question about the power supply, the Raytac datasheet says that the　power supply is below 3.3V and the regulator is LOD, but I don&amp;#39;t know where it is set.&lt;/p&gt;
&lt;p&gt;So I thought, why not?&lt;br /&gt;I&amp;#39;ve been trying out some of the sample programs &amp;rdquo;nd I&amp;#39;ve run &amp;quot;Erase All&amp;quot; a few times along the way.&lt;br /&gt; In fact, Raytac&amp;#39;s original important startup program &amp;rdquo;Erase All&amp;quot; may have erased, even though they were loaded. We have already discussed this issue with Raytac.&lt;/p&gt;
&lt;p&gt;We have already contacted Raytac about this and are waiting for a response.&lt;br /&gt;We will update this page when we have more information.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The input range of the SAADC is not as expected.</title><link>https://devzone.nordicsemi.com/thread/354815?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 12:36:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93f3df7b-797f-4863-abb7-3eef82845a08</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I don&amp;#39;t think there&amp;#39;s a problem with the Raytac DK design at least, but it could be a QA issue.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="TML_YT"](a)When the gain is 1/4 and the reference supply is 4/VDD(VDD=3.3V), the input range should be the same as the gain 1/6 and the internal reference 0.6V, but the output code decreases after about 2.1V as well.[/quote]
&lt;p&gt;I don&amp;#39;t understand your argument. The input range is always 0V to VDD+0.3V. You can scale the input range with the gain stage to fit the voltage reference.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="TML_YT"](b)Also, if I set the internal reference 0.6V and gain 1/3, the code is 2^10 at input 1.8V, and if I set the internal reference 0.6V and gain 1/2, the code is 2^10 at input 1.2V, which seems to be working properly.[/quote]
&lt;p&gt;That looks like the correct behavior.&amp;nbsp;&lt;/p&gt;
[quote user="TML_YT"](c)In addition, I tried to use differential mode and connect the neg pin to the same GND as the board, gain 1/6, internal reference 0.6V, but the same result as the first, the code decreases when the input voltage exceeds 2.1V.[/quote]
&lt;p&gt;The SAADC is always operating in differential mode, when single-ended mode is selected the negative input is tied to GND internally, so you should&amp;nbsp;get the exact same&amp;nbsp;result when manually connecting the negative input to GND.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have a few questions:&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Do you use the high-voltage regulator (REG0), and if so, what is it&amp;#39;s output voltage?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Can you share your code, at least what&amp;#39;s relevant to the SAADC configuration, sampling, and how you read the data?&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Can you share some raw data from the SAADC? I need some 10-20 samples from when the SAADC is operating as expected and the same for when it is not operating as expected, and also the input voltage.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The input range of the SAADC is not as expected.</title><link>https://devzone.nordicsemi.com/thread/354454?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 03:32:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d294f4f1-d9fd-4eb5-aa9c-4a84b7aa9fa5</guid><dc:creator>TML_YT</dc:creator><description>&lt;p&gt;The NORDIC DK does not seem to be readily available.&lt;br /&gt;The module we are currently testing is the RAYTAC MDBT50Q (with nRF52840), which is further mounted on their MDBT50Q-DB evaluation board.&lt;/p&gt;
&lt;p&gt;The USB 5V power supply is converted to 3.3V by a regulator on the evaluation board and fed to the MDBT50Q, and the GND seems to be common to all.&lt;/p&gt;
&lt;p&gt;I also tried the following:&lt;br /&gt;(a)When the gain is 1/4 and the reference supply is 4/VDD(VDD=3.3V), the input range should be the same as the gain 1/6 and the internal reference 0.6V, but the output code decreases after about 2.1V as well.&lt;/p&gt;
&lt;p&gt;(b)Also, if I set the internal reference 0.6V and gain 1/3, the code is 2^10 at input 1.8V, and if I set the internal reference 0.6V and gain 1/2, the code is 2^10 at input 1.2V, which seems to be working properly.&lt;/p&gt;
&lt;p&gt;(c)In addition, I tried to use differential mode and connect the neg pin to the same GND as the board, gain 1/6, internal reference 0.6V, but the same result as the first, the code decreases when the input voltage exceeds 2.1V.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;In any case, the hardware is the most likely cause of the problem.&lt;br /&gt;The information about the module MDBT50Q (with nRF52840) and the evaluation board MDBT50Q-DB of the company is certainly not enough, so I will ask RATAC about this matter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The input range of the SAADC is not as expected.</title><link>https://devzone.nordicsemi.com/thread/354335?ContentTypeID=1</link><pubDate>Tue, 22 Feb 2022 12:34:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56df6514-bf05-4268-8fe3-e9013f9d0d62</guid><dc:creator>haakonsh</dc:creator><description>[quote user="TML_YT"]&lt;p&gt;We are also concerned about the fact that similar questions have been&lt;br /&gt;asked in the past and no clear answers have been given.&lt;/p&gt;
&lt;p&gt;Is this an unusual situation?&lt;/p&gt;[/quote]
&lt;p&gt;No, this is far outside of spec and not something that i&amp;#39;ve come across before.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The first thing I would suspect was the root cause is some grounding issues in the PCBA. Can you replicate the issue on our DK? And can you share any info about the PCBA that you&amp;#39;re using?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The input range of the SAADC is not as expected.</title><link>https://devzone.nordicsemi.com/thread/354231?ContentTypeID=1</link><pubDate>Mon, 21 Feb 2022 22:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee894785-8de9-46f4-a25f-2ad1a219abe0</guid><dc:creator>TML_YT</dc:creator><description>&lt;p&gt;Sorry it took me so long to get back to you. I accidentally clicked on&lt;br /&gt;&amp;#39;verified answer&amp;#39; and couldn&amp;#39;t reply.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I use DK of other manufacturers.&lt;/p&gt;
&lt;p&gt;And then Regulator conditions in the DK board, as follows&lt;br /&gt;5V&amp;rarr;Regulator(3.3V)&amp;rarr;nrf52840&lt;/p&gt;
&lt;p&gt;As for the DK, it is made by another company, but the other functions&lt;br /&gt;are normal and there does not seem to be any problem with it.&lt;br /&gt;We are also concerned about the fact that similar questions have been&lt;br /&gt;asked in the past and no clear answers have been given.&lt;/p&gt;
&lt;p&gt;Is this an unusual situation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The input range of the SAADC is not as expected.</title><link>https://devzone.nordicsemi.com/thread/353832?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 12:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35a363ac-de96-4aba-9186-3e9c327c7a87</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;That&amp;#39;s strange. Are you using our DK, or are you using a custom board?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What&amp;#39;s you regulator configuration?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>