<?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>How to use VDDH, DCCH and VDD</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96349/how-to-use-vddh-dcch-and-vdd</link><description>Hello, 
 I would like to know how to output 2.1V from VDD while supplying power to VDDH. 
 I coded as follows and supplied power to the PCA10095 via USB, but both VDDH and VDD were 3.0V. 
 
 Are there any other registers that need to be considered? 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Feb 2023 05:42:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96349/how-to-use-vddh-dcch-and-vdd" /><item><title>RE: How to use VDDH, DCCH and VDD</title><link>https://devzone.nordicsemi.com/thread/410782?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 05:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce9f10a2-ed6d-4235-8aa5-505cab29cb15</guid><dc:creator>gocchan</dc:creator><description>&lt;p&gt;After doing &amp;quot;recover&amp;quot; to both the application core and the network core and writing again, it worked as expected.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what caused it, but the problem is solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use VDDH, DCCH and VDD</title><link>https://devzone.nordicsemi.com/thread/410439?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 15:39:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93216469-184a-46f5-a66a-006e2bbb6cd5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Looks like your configuration should be correct. Note that you need to perform a rest after writing FICR for the changes to take effect.&lt;/p&gt;
&lt;p&gt;Can you provide a picture of the DK and your measurement test points, for me to exactly replicate your setup?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use VDDH, DCCH and VDD</title><link>https://devzone.nordicsemi.com/thread/410222?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 06:39:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afda74a4-dce4-4757-9042-3f6c0f6a07a2</guid><dc:creator>gocchan</dc:creator><description>&lt;p&gt;First, I connected to the MCU USB port (J2), set the nRF power source switch (SW9) to VDD, performed ERASEALL, and confirmed that the value of VREGHVOUT(0x00FF8010) was DEFAULT.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;&amp;gt;nrfjprog --eraseall
Erasing user available code and UICR flash areas.
Applying system reset.

&amp;gt;nrfjprog --memrd 0x00FF8010
0x00FF8010: FFFFFFFF                              |....|&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Next, I implemented the following code in VS Code and programmed it on the board.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_REGULATORS-&amp;gt;VREGH.DCDCEN = REGULATORS_VREGH_DCDCEN_DCDCEN_Enabled;
NRF_REGULATORS-&amp;gt;VREGMAIN.DCDCEN = REGULATORS_VREGMAIN_DCDCEN_DCDCEN_Enabled;
NRF_REGULATORS-&amp;gt;VREGRADIO.DCDCEN = REGULATORS_VREGRADIO_DCDCEN_DCDCEN_Enabled;

if(NRF_UICR-&amp;gt;VREGHVOUT != UICR_VREGHVOUT_VREGHVOUT_2V1)
{
	NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Wen;
	while(NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy);
	NRF_UICR-&amp;gt;VREGHVOUT = UICR_VREGHVOUT_VREGHVOUT_2V1;
	NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Ren;
	while(NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy);
}

while(NRF_UICR-&amp;gt;VREGHVOUT != UICR_VREGHVOUT_VREGHVOUT_2V1);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When I read the value of VREGHVOUT (0x00FF8010) again after completing the program, it was set to 2.1V.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;&amp;gt;nrfjprog --memrd 0x00FF8010
0x00FF8010: 00000001                              |....|&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Finally, when I connected it to the nRF USB port (J3) and set the nRF power source switch (SW9) to USB, the software did not work and I measured VDDH (C21) with a tester and it was 1.66 V.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use VDDH, DCCH and VDD</title><link>https://devzone.nordicsemi.com/thread/409093?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2023 09:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e9346f4-e8cc-491c-8cef-5d6345fdb879</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote userid="57835" url="~/f/nordic-q-a/96349/how-to-use-vddh-dcch-and-vdd/409027"]After writing the program from the MCU USB port, I supplied power from the nRF_USB port and checked the operation, but both VDDH and VDD are still 3.0V (I checked by measuring C21 and L3 with a tester).[/quote]
&lt;p&gt;Did you also change the NRF POWER SWITCH from VDD to USB?&lt;/p&gt;
[quote userid="57835" url="~/f/nordic-q-a/96349/how-to-use-vddh-dcch-and-vdd/409027"]&lt;p&gt;I tried implementing the code below to erase the UICR, but the process stopped at NRF_NVMC-&amp;gt;ERASEALL = 1 and the program could not be rewritten without recover.&lt;/p&gt;
&lt;p&gt;Is there something wrong with the erasing method?&lt;/p&gt;[/quote]
&lt;p&gt;Erasing the UICR will set&amp;nbsp;&lt;a title="APPROTECT" href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/uicr/doc/uicr.html?cp=4_0_0_4_3_2_0_0#register.APPROTECT"&gt;APPROTECT&lt;/a&gt;/&lt;a title="SECUREAPPROTECT" href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/uicr/doc/uicr.html?cp=4_0_0_4_3_2_0_3#register.SECUREAPPROTECT"&gt;SECUREAPPROTECT&lt;/a&gt;&amp;nbsp;registers to a different value than the &amp;quot;Unprotected&amp;quot; value, which may explain the behavior you are seeing. Could you try erasing the UICR before flashing the application, for instance using &amp;quot;nrfjprog&amp;nbsp;--eraseuicr&amp;quot; or &amp;quot;nrfjprog --eraseall&amp;quot; commands?&lt;/p&gt;
&lt;p&gt;Did you try reading out the value from NRF_UICR-&amp;gt;&lt;a title="VREGHVOUT" href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/uicr/doc/uicr.html?cp=4_0_0_4_3_2_0_1#register.VREGHVOUT"&gt;VREGHVOUT&lt;/a&gt;, to make sure it is in fact set to 4?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use VDDH, DCCH and VDD</title><link>https://devzone.nordicsemi.com/thread/409027?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2023 03:07:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b3be6e5-2ff4-4262-a1c2-b01a4fe52c8c</guid><dc:creator>gocchan</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After writing the program from the MCU USB port, I supplied power from the nRF_USB port and checked the operation, but both VDDH and VDD are still 3.0V (I checked by measuring C21 and L3 with a tester).&lt;/p&gt;
&lt;p&gt;I tried implementing the code below to erase the UICR, but the process stopped at NRF_NVMC-&amp;gt;ERASEALL = 1 and the program could not be rewritten without recover.&lt;/p&gt;
&lt;p&gt;Is there something wrong with the erasing method?&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Gotoda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use VDDH, DCCH and VDD</title><link>https://devzone.nordicsemi.com/thread/408262?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 11:59:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc084c93-61b7-4deb-9edb-798d7621e3fc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you are running the chip in high voltage configuration, and you see 3.0V on the GPIOs, the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/uicr/doc/uicr.html"&gt;UICR-&amp;gt;VREGHVOUT&lt;/a&gt;&amp;nbsp;register could have already been written to&amp;nbsp;UICR_VREGHVOUT_VREGHVOUT_3V0 (4). Note that UICR works like flash, and bits can only be flipped from 1 to 0 by writing. Changing a bit in UICR from 0 to 1 requires you to erase the full UICR page. If the register is set to 4, you will not be able to change it to 2 without erasing the UICR. Can you read out the value of&amp;nbsp;&lt;span&gt;VREGHVOUT?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Did you power the nRF5340 DK through the nRF_USB port, or through the interface MCU USB port? The board have an on-board regulator, which will supply the board in normal voltage mode at 3.0V if powered through the interface MCU USB port. High voltage mode can be used by powering through nRF_USB or the Li-Po supply pins. See&amp;nbsp;&lt;a title="Power supply" href="https://infocenter.nordicsemi.com/topic/ug_nrf5340_dk/UG/dk/hw_power_supply.html?cp=4_0_4_3_2"&gt;Power supply&lt;/a&gt;&amp;nbsp;for more details.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>