<?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>nrf52 DK try to set duty to 0 but i still could get about 400mv of LED</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11266/nrf52-dk-try-to-set-duty-to-0-but-i-still-could-get-about-400mv-of-led</link><description>Dears: 
 I try to use nRF52_SDK_0.9.0_0c82e3e SDK pheripheral pwm example and set the channel1(led2) 
 duty to 0. 
 But i still could get the signal about 400mv with LED2(P0.18). 
 Would that be normal?? 
 In my opinion it should 0v when i set the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Jan 2016 09:39:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11266/nrf52-dk-try-to-set-duty-to-0-but-i-still-could-get-about-400mv-of-led" /><item><title>RE: nrf52 DK try to set duty to 0 but i still could get about 400mv of LED</title><link>https://devzone.nordicsemi.com/thread/42355?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2016 09:39:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b85eb449-8219-44bb-acfd-b5c6f39c63cb</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;Dear Stefan:&lt;/p&gt;
&lt;p&gt;I try to use P0.31 and P0.22 for testing.&lt;/p&gt;
&lt;p&gt;It could normal config as i expect.&lt;/p&gt;
&lt;p&gt;And i try both P0.17 P0.18 P0.19 and P0.20 all of them are abnormal.&lt;/p&gt;
&lt;p&gt;It might be the some hardware reason.&lt;/p&gt;
&lt;p&gt;I will check it.&lt;/p&gt;
&lt;p&gt;Thanks for your great help.&lt;/p&gt;
&lt;p&gt;BR,
Justin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 DK try to set duty to 0 but i still could get about 400mv of LED</title><link>https://devzone.nordicsemi.com/thread/42354?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2016 08:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d6150ad-8c2c-4d93-bd45-db23837d6506</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;That is strange.&lt;/p&gt;
&lt;p&gt;Make sure you do not have anything connected to those pins.&lt;/p&gt;
&lt;p&gt;Make sure your multimeter has a new battery. Some multimeters give false results when battery is low.&lt;/p&gt;
&lt;p&gt;Try also to configure other pins than P0.17 and P0.18 to the PWM and measure if you get the correct voltage on them. It is a possibility that internal ESD diodes are shorted on certain pins, depending on your previous activity with your board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 DK try to set duty to 0 but i still could get about 400mv of LED</title><link>https://devzone.nordicsemi.com/thread/42356?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2016 01:32:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0a158a8-0174-402c-b567-eebc64dd713e</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;Dear Stefan:&lt;/p&gt;
&lt;p&gt;Thanks for your quickly reply.
I try to use nRF52 SDK 0.9.2 and use the example as above on my DK(PCA10040).
And I still could get the 400mv on BSP_LED_1 and 2.87v on the BSP_LED_0.
As i know if we set the pin to Active_high.
Set duty to 0 it should reply 0v and set duty to 100 will reply 2.87v.
If we set the pin Active low.
Set duty to 0 it should reply 2.87v and set duty to 100 will reply 0v.
If i am wrong please correct me.
I try to just config one channel PWM.
The result is the same.
It looked like i coulne&amp;#39;t set the pin to 0v.
Would you please give some command or hint??
Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 DK try to set duty to 0 but i still could get about 400mv of LED</title><link>https://devzone.nordicsemi.com/thread/42353?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2016 15:11:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8471622-7fb9-42f3-b24b-817020cc2c34</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Justin&lt;/p&gt;
&lt;p&gt;On my side, when testing this with nRF52-DK preview board (PCA10036), pwm example from nRF52 SDK 0.9.2, the voltage is 0.0V on both pin P0.17 and P0.18 when I set the duty cycle as follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int main(void)
{
		ret_code_t err_code;
		
		/* 2-channel PWM, 200Hz, output on DK LED pins. */
		app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_2CH(5000L, BSP_LED_0, BSP_LED_1);
		
		/* Switch the polarity of the second channel. */
		pwm1_cfg.pin_polarity[1] = APP_PWM_POLARITY_ACTIVE_HIGH;
		
		/* Initialize and enable PWM. */
		err_code = app_pwm_init(&amp;amp;PWM1,&amp;amp;pwm1_cfg,pwm_ready_callback);
		APP_ERROR_CHECK(err_code);
		app_pwm_enable(&amp;amp;PWM1);
		
		app_pwm_channel_duty_set(&amp;amp;PWM1, 0, 0);
		app_pwm_channel_duty_set(&amp;amp;PWM1, 1, 100);
	
		uint32_t value;
		while(true)
		{
		} 
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>