<?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>Temperature, SAADC and PWM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72137/temperature-saadc-and-pwm</link><description>Hello, 
 I am using nrf52832 and I just have 3 questions regarding it. 
 1) SAADC change over temperature. According to the datasheet, it has a change of 0.02%/C but I only got 3 LSB change over a period of 50C. I heated with a hot air blower and checked</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Mar 2021 13:50:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72137/temperature-saadc-and-pwm" /><item><title>RE: Temperature, SAADC and PWM</title><link>https://devzone.nordicsemi.com/thread/301227?ContentTypeID=1</link><pubDate>Mon, 22 Mar 2021 13:50:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f21fb6d1-4375-4ffc-95e4-1ae85ff6c6cd</guid><dc:creator>GOAA</dc:creator><description>[quote userid="2111" url="~/f/nordic-q-a/72137/temperature-saadc-and-pwm/297784#297784"]Honestly speaking the double buffering is not that useful unless you need to sample very quick (with only a few us between sampling), in that case it may make sense to prepare the next buffer while the current buffer is in use by the SAADC.[/quote]
&lt;p&gt;Hello, I am sampling 2 ADC pins and they aren&amp;#39;t working if I remove double buffering.&lt;/p&gt;
&lt;p&gt;I am calibrating the ADC before it is initialized and calling buffer_convert once the calibrate done event is generated.&lt;/p&gt;
&lt;p&gt;Is there anything I am doing wrong. My sample time is also high and if possible I want to avoid double buffering&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temperature, SAADC and PWM</title><link>https://devzone.nordicsemi.com/thread/299008?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 13:27:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cf8f989-64f0-4535-8ce5-adec3af5403f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sampling temperature or SAADC will not affect radio performance.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temperature, SAADC and PWM</title><link>https://devzone.nordicsemi.com/thread/298902?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 07:54:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c2c6564-63d7-4875-b1f6-f43a63cd47b5</guid><dc:creator>GOAA</dc:creator><description>[quote userid="2111" url="~/f/nordic-q-a/72137/temperature-saadc-and-pwm/296857#296857"]Ideally they are the same, but if ambient temperature changes fast, it may take some time for the PCB and circuitry change as much.[/quote]
&lt;p&gt;What would be the priority of that particular peripheral. Will any ongoing or bound to happen connection be disturbed during the 50us it takes to sample the sensor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temperature, SAADC and PWM</title><link>https://devzone.nordicsemi.com/thread/297784?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 12:29:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5df91f6f-ae0f-4006-9a99-bdddbded37fe</guid><dc:creator>Kenneth</dc:creator><description>[quote user="GOAA"]Does this always happen or does this happen rarely??[/quote]
&lt;p&gt;These are typical values, so it could be more or less between chips.&amp;nbsp;&lt;/p&gt;
[quote user="GOAA"]I am using two channels of SAADC in scan mode with a sampling interval of 10ms. It looks like it doesn&amp;#39;t work without double buffering the SAADC. What exactly is double buffering? Why is the SAADC double buffered while initialisation while the buffer_convert happens only for the&amp;nbsp;p_buffer in the SAADC event[/quote]
&lt;p&gt;Honestly speaking the double buffering is not that useful unless you need to sample very quick (with only a few us between sampling), in that case it may make sense to prepare the next buffer while the current buffer is in use by the SAADC.&lt;/p&gt;
&lt;p&gt;You may find these examples useful in general (these also include calibration of the saadc):&lt;br /&gt;&lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/tree/master/nrfx_saadc_simple_low_power_app_timer_multichannel_oversample"&gt;https://github.com/NordicPlayground/nRF52-ADC-examples/tree/master/nrfx_saadc_simple_low_power_app_timer_multichannel_oversample&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70921/how-to-get-nrf_drv_saadc_evt-_calibratedone/291601#291601"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/70921/how-to-get-nrf_drv_saadc_evt-_calibratedone/291601#291601&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temperature, SAADC and PWM</title><link>https://devzone.nordicsemi.com/thread/297674?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 07:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22d3c832-8dc7-4317-b4a7-7694eb0f39ba</guid><dc:creator>GOAA</dc:creator><description>&lt;p&gt;Hello, Thank you for your response.&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/72137/temperature-saadc-and-pwm/296857#296857"] I would expect that typically change with 0.2LSB/C, so that becomes about 10LSB over 50C.&amp;nbsp;[/quote]
&lt;p&gt;Does this always happen or does this happen rarely??&lt;/p&gt;
&lt;p&gt;Also,&lt;/p&gt;
&lt;p&gt;I am using two channels of SAADC in scan mode with a sampling interval of 10ms. It looks like it doesn&amp;#39;t work without double buffering the SAADC. What exactly is double buffering? Why is the SAADC double buffered while initialisation while the buffer_convert happens only for the&amp;nbsp;p_buffer in the SAADC event&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temperature, SAADC and PWM</title><link>https://devzone.nordicsemi.com/thread/296857?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 13:27:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eecb2d93-38be-4a6c-a505-b4b78ca15fec</guid><dc:creator>Kenneth</dc:creator><description>[quote user=""]1) SAADC change over temperature. According to the datasheet, it has a change of 0.02%/C but I only got 3 LSB change over a period of 50C. I heated with a hot air blower and checked the temperature with a thermocouple externally. Does the SAADC definitely increase over temperature and is it absolutely necessary to calibrate for every 4 degree increase in temperature.[/quote]
&lt;p&gt;These are typical numbers so they will vary, but with 10-bit resolution (0...1024) I would expect that typically change with 0.2LSB/C, so that becomes about 10LSB over 50C.&amp;nbsp;&lt;/p&gt;
[quote user=""]2) Like the SAADC, does the PWM frequency also change over temperature. It&amp;#39;s not mentioned in the data sheet.[/quote]
&lt;p&gt;&amp;nbsp;No, only analog circuitry are affected by temperature (e.g. sleep currents increase when temperature rise).&amp;nbsp;&lt;/p&gt;
[quote user=""]3) Is there any relation between die temperature (peripheral whose value is obtained with sd_temp_get()) and the ambient temperature. If yes, what is it?[/quote]
&lt;p&gt;Ideally they are the same, but if ambient temperature changes fast, it may take some time for the PCB and circuitry change as much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>