<?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>USB D+- as simple GPO how do this?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69931/usb-d---as-simple-gpo-how-do-this</link><description>Hello! 
 
 In the description of the usb module, I found the registers: NRF_USBD-&amp;gt; DPDMVALUE, NRF_USBD-&amp;gt; TASKS_DPDMDRIVE and NRF_USBD-&amp;gt; TASKS_DPDMNODRIVE 
 &amp;quot; State D+ and D- lines will be forced into by the DPDMDRIVE task. The DPDMNODRIVE task reverts</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Jan 2021 18:38:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69931/usb-d---as-simple-gpo-how-do-this" /><item><title>RE: USB D+- as simple GPO how do this?</title><link>https://devzone.nordicsemi.com/thread/288470?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 18:38:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22e83df8-be66-4e8d-bc13-f6a66e405e53</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Oh, just re-read the post - I see you are short of pins so this won&amp;#39;t help. &lt;span style="text-decoration:line-through;"&gt;&lt;em&gt;Try SWO; you can treat it as a Tx-only uart and PWM the LED&lt;/em&gt; (maybe)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB D+- as simple GPO how do this?</title><link>https://devzone.nordicsemi.com/thread/288449?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 15:41:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d176a9c-02c3-403c-afa8-c8f2a994ea4b</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I discussed this with the developer, and he agreed that it should be possible to override the data lines by using the DPDMVALUE registers, but please keep in mind that you can&amp;#39;t control the two pins separately.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;USB is a differential bus&amp;nbsp;with the D+ and D- lines having the opposite state in normal operation, so at most you would get a single extra output signal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB D+- as simple GPO how do this?</title><link>https://devzone.nordicsemi.com/thread/288241?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2021 18:55:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d690d66-cedc-4349-a7a9-37c978e8bd20</guid><dc:creator>Turnaev</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;Yes, I use&amp;nbsp;&lt;span&gt;nRF52820.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sergey Turnaev&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB D+- as simple GPO how do this?</title><link>https://devzone.nordicsemi.com/thread/287653?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2021 09:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:538eba33-377f-43f2-ba8c-3549cc85a9c6</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume you are using the nRF52820?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think there is any way to manually override the state of the USB pins. These pins are handled by the USB IP, which&amp;nbsp;takes care of the&amp;nbsp;physical layer signalling, and only provides a higher level USB API to the rest of the system.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will verify this with the USB developers to be sure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Whether or not this is possible&amp;nbsp;this would be using the chip outside it&amp;#39;s specification, since we don&amp;#39;t test these pins for any other use than as USB data pins. This is very risky as it means there might be negative side effects of using these pins, and&amp;nbsp;you might end up with malfunctioning devices in the field.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will strongly recommend that you look for alternative ways to handle the lack of IO, such as upgrading to a larger part (the nRF52833 for instance), attaching a GPIO extender, or revising your existing IO assignments to see if there is&amp;nbsp;some other pins that can be optimized out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to share hardware schematics of your design I can make the case private.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB D+- as simple GPO how do this?</title><link>https://devzone.nordicsemi.com/thread/286706?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 13:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ea50d09-8cf7-4ab5-9052-849c7941973f</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have not tried this before so not sure if it will work. But because of Christmas holidays I will have to come back to you in the first week of January. Sorry for the inconvenience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>