<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic NHS3152 Accuracy and Precision Problem in NFC</title>
    <link>https://community.nxp.com/t5/NFC/NHS3152-Accuracy-and-Precision-Problem/m-p/1157483#M7729</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to sample a voltage with the NHS3152 over a time of about 300 ms (about 30 samples).&lt;/P&gt;&lt;P&gt;This works quite well so far. However, I noticed that the precision and accuracy of the measurements is quite below these given in the data sheet (Noise of 11 LSB at 1V).&lt;/P&gt;&lt;P&gt;So I connected the ADC to a power source of exactly 0.5 V and sampled it. The voltage is relatively "clean" when I measure it with another device (NI MyDaq - picture with yellow line), but the values I read out with the NHS3152 are not (picture with the blue line; Noise of &amp;gt; 100 LSB).&lt;/P&gt;&lt;P&gt;(BTW:&amp;nbsp;To avoid problems with the power supply I already used the development board with a battery.)&lt;/P&gt;&lt;P&gt;Hence my consideration or question if I do something wrong with the configuration of the ADC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;BR David&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Measurement with NHS.jpg" style="width: 220px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125931iC6C6765E9766F7E5/image-dimensions/220x477?v=v2" width="220" height="477" role="button" title="Measurement with NHS.jpg" alt="Measurement with NHS.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Measurement with MyDaq.jpg" style="width: 757px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125930iFEC9586A021E0F56/image-dimensions/757x301?v=v2" width="757" height="301" role="button" title="Measurement with MyDaq.jpg" alt="Measurement with MyDaq.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the important poarts of my code:&lt;/P&gt;&lt;P&gt;void InitADC (void){&lt;BR /&gt;Chip_IOCON_SetPinConfig(NSS_IOCON, IOCON_ANA0_5, IOCON_FUNC_1)&lt;BR /&gt;Chip_ADCDAC_Init(NSS_ADCDAC0);&lt;BR /&gt;Chip_ADCDAC_SetMuxADC(NSS_ADCDAC0, ADCDAC_IO_ANA0_5);&lt;BR /&gt;Chip_ADCDAC_SetInputRangeADC(NSS_ADCDAC0, ADCDAC_INPUTRANGE_NARROW);&lt;BR /&gt;Chip_ADCDAC_SetModeADC(NSS_ADCDAC0, ADCDAC_SINGLE_SHOT);&lt;BR /&gt;}&lt;BR /&gt;void DoMeasurement(){&lt;BR /&gt;InitADC();&lt;BR /&gt;MeasurementNo++;&lt;BR /&gt;Chip_GPIO_SetPinOutHigh(NSS_GPIO, 0, 7); // Power Sensor on&lt;BR /&gt;for(int i = 0; i &amp;lt; CURVE_SAMPLES; i++) {&lt;BR /&gt;Chip_ADCDAC_StartADC(NSS_ADCDAC0);&lt;BR /&gt;while (!(Chip_ADCDAC_ReadStatus(NSS_ADCDAC0) &amp;amp; ADCDAC_STATUS_ADC_DONE)) {&lt;BR /&gt;; /* Wait until measurement complete.*/&lt;BR /&gt;}&lt;BR /&gt;MeasrementValues[i] = (int16_t) Chip_ADCDAC_GetValueADC(NSS_ADCDAC0);&lt;BR /&gt;Chip_Clock_System_BusyWait_us((uint32_t) (SAMPLING_INTERVAL));&lt;BR /&gt;}&lt;BR /&gt;Chip_GPIO_SetPinOutLow(NSS_GPIO, 0, 7); // Power Sensor off&lt;BR /&gt;DeinitADC();&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2020 06:24:49 GMT</pubDate>
    <dc:creator>d_schoenfisch</dc:creator>
    <dc:date>2020-09-23T06:24:49Z</dc:date>
    <item>
      <title>NHS3152 Accuracy and Precision Problem</title>
      <link>https://community.nxp.com/t5/NFC/NHS3152-Accuracy-and-Precision-Problem/m-p/1157483#M7729</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to sample a voltage with the NHS3152 over a time of about 300 ms (about 30 samples).&lt;/P&gt;&lt;P&gt;This works quite well so far. However, I noticed that the precision and accuracy of the measurements is quite below these given in the data sheet (Noise of 11 LSB at 1V).&lt;/P&gt;&lt;P&gt;So I connected the ADC to a power source of exactly 0.5 V and sampled it. The voltage is relatively "clean" when I measure it with another device (NI MyDaq - picture with yellow line), but the values I read out with the NHS3152 are not (picture with the blue line; Noise of &amp;gt; 100 LSB).&lt;/P&gt;&lt;P&gt;(BTW:&amp;nbsp;To avoid problems with the power supply I already used the development board with a battery.)&lt;/P&gt;&lt;P&gt;Hence my consideration or question if I do something wrong with the configuration of the ADC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;BR David&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Measurement with NHS.jpg" style="width: 220px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125931iC6C6765E9766F7E5/image-dimensions/220x477?v=v2" width="220" height="477" role="button" title="Measurement with NHS.jpg" alt="Measurement with NHS.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Measurement with MyDaq.jpg" style="width: 757px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125930iFEC9586A021E0F56/image-dimensions/757x301?v=v2" width="757" height="301" role="button" title="Measurement with MyDaq.jpg" alt="Measurement with MyDaq.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the important poarts of my code:&lt;/P&gt;&lt;P&gt;void InitADC (void){&lt;BR /&gt;Chip_IOCON_SetPinConfig(NSS_IOCON, IOCON_ANA0_5, IOCON_FUNC_1)&lt;BR /&gt;Chip_ADCDAC_Init(NSS_ADCDAC0);&lt;BR /&gt;Chip_ADCDAC_SetMuxADC(NSS_ADCDAC0, ADCDAC_IO_ANA0_5);&lt;BR /&gt;Chip_ADCDAC_SetInputRangeADC(NSS_ADCDAC0, ADCDAC_INPUTRANGE_NARROW);&lt;BR /&gt;Chip_ADCDAC_SetModeADC(NSS_ADCDAC0, ADCDAC_SINGLE_SHOT);&lt;BR /&gt;}&lt;BR /&gt;void DoMeasurement(){&lt;BR /&gt;InitADC();&lt;BR /&gt;MeasurementNo++;&lt;BR /&gt;Chip_GPIO_SetPinOutHigh(NSS_GPIO, 0, 7); // Power Sensor on&lt;BR /&gt;for(int i = 0; i &amp;lt; CURVE_SAMPLES; i++) {&lt;BR /&gt;Chip_ADCDAC_StartADC(NSS_ADCDAC0);&lt;BR /&gt;while (!(Chip_ADCDAC_ReadStatus(NSS_ADCDAC0) &amp;amp; ADCDAC_STATUS_ADC_DONE)) {&lt;BR /&gt;; /* Wait until measurement complete.*/&lt;BR /&gt;}&lt;BR /&gt;MeasrementValues[i] = (int16_t) Chip_ADCDAC_GetValueADC(NSS_ADCDAC0);&lt;BR /&gt;Chip_Clock_System_BusyWait_us((uint32_t) (SAMPLING_INTERVAL));&lt;BR /&gt;}&lt;BR /&gt;Chip_GPIO_SetPinOutLow(NSS_GPIO, 0, 7); // Power Sensor off&lt;BR /&gt;DeinitADC();&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 06:24:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NHS3152-Accuracy-and-Precision-Problem/m-p/1157483#M7729</guid>
      <dc:creator>d_schoenfisch</dc:creator>
      <dc:date>2020-09-23T06:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: NHS3152 Accuracy and Precision Problem</title>
      <link>https://community.nxp.com/t5/NFC/NHS3152-Accuracy-and-Precision-Problem/m-p/1160233#M7750</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;
&lt;P&gt;I hope you are doing great.&lt;/P&gt;
&lt;P&gt;All these buses are grounded by default.&lt;/P&gt;
&lt;P&gt;During the operation of analog blocks (ADCDAC, I2D, C2D), analog bus(es) must be &lt;STRONG&gt;ungrounded&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;This is ensured by usage of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="el" href="https://community.nxp.com/a00485.html#ga426cc484a31e59241f87215e5e452c56" target="_blank"&gt;Chip_IOCON_SetPinConfig&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or by the respective analog block driver in its Chip_*_SetMux* function.&lt;/P&gt;
&lt;P&gt;Please look at the&amp;nbsp;Chip_IOCON_UngroundAnabus.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mario&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:54:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NHS3152-Accuracy-and-Precision-Problem/m-p/1160233#M7750</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2020-09-28T17:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: NHS3152 Accuracy and Precision Problem</title>
      <link>https://community.nxp.com/t5/NFC/NHS3152-Accuracy-and-Precision-Problem/m-p/1160556#M7753</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;When measuring, did you disconnect the SWD cable? The debug communication will inject additional noise.&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Dries.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:41:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NHS3152-Accuracy-and-Precision-Problem/m-p/1160556#M7753</guid>
      <dc:creator>driesmoors</dc:creator>
      <dc:date>2020-09-29T08:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: NHS3152 Accuracy and Precision Problem</title>
      <link>https://community.nxp.com/t5/NFC/NHS3152-Accuracy-and-Precision-Problem/m-p/1160672#M7754</link>
      <description>&lt;P&gt;Dear Dries,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have now removed the programmer as well as the the programmer cable.&lt;/P&gt;&lt;P&gt;Furhter I have added an additional " UngroundAnabus" in the code (although this is already done in the SetPinConfig and SetMux) and a " GroundAnabus" in the DeInit function. As suggested in the other post.&lt;/P&gt;&lt;P&gt;Furthermore I tried another input (AN1).&lt;/P&gt;&lt;P&gt;The measurement at 0.5V now looks like this:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Measurement with NHS 3_2.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126449iB16C524D39B64B22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Measurement with NHS 3_2.jpg" alt="Measurement with NHS 3_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;A bit different than before but still not as it should be according to the data sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I noticed here is that the "noise" is always a little bit higher at the beginning of each measurement and then it becomes a little bit lower (at about 150ms).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR David&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:25:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NHS3152-Accuracy-and-Precision-Problem/m-p/1160672#M7754</guid>
      <dc:creator>d_schoenfisch</dc:creator>
      <dc:date>2020-09-29T12:25:47Z</dc:date>
    </item>
  </channel>
</rss>

