<?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 use usb data line without usb core</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22955/how-use-usb-data-line-without-usb-core</link><description>Hi, Nordic!
We have connected gpio pins to usb data line pins for using usb or i2c in different times.
But even if USB core disconnected, usb lines hinder for i2c lines.
Is it possible connect usb d+ and d- to GPIO?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Nov 2019 21:43:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22955/how-use-usb-data-line-without-usb-core" /><item><title>RE: How use usb data line without usb core</title><link>https://devzone.nordicsemi.com/thread/219945?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2019 21:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98a762bb-895c-4d69-999b-816bfed33817</guid><dc:creator>Jakub Oller</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How use usb data line without usb core</title><link>https://devzone.nordicsemi.com/thread/218932?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 01:30:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8537f51f-c1d3-4bca-800f-83655f9b17ae</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;The D+/D- pins will not be powered - which is not the same as high impedance. According to PS description, the PHY with the data pins is powered from VBUS via USB LDO.&lt;/p&gt;
&lt;p&gt;Which means you cannot share these pins in a connector - the unpowered USB pins would act as (sort of) pull downs and might reverse-power the USB PHY because there are probably diodes from the pins to he voltage rail at DECUSB.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How use usb data line without usb core</title><link>https://devzone.nordicsemi.com/thread/218924?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2019 23:21:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8eea5e0-cb06-4157-98cc-d94b541c5a44</guid><dc:creator>Jakub Oller</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have the same exact question and I can see that it has not been fully answered yet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I want to have a single connector for either USB or GPIO depending on VBUS voltage (we will use USB if VBUS is present, GPIOs if VBUS is at 0V or floating). The question is: what happens (electically) to D+ and D- pins when VBUS is at 0V or floating? Are they high impedance?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How use usb data line without usb core</title><link>https://devzone.nordicsemi.com/thread/90312?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 14:10:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4095fdb-8946-4c79-bd3c-d611d5276fc3</guid><dc:creator>Vlad Mokhnachov</dc:creator><description>&lt;p&gt;RK, You are fully right.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How use usb data line without usb core</title><link>https://devzone.nordicsemi.com/thread/90310?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 13:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29938dca-9365-4172-b22e-51a187aa2c21</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Ah yes of course, I believe you&amp;#39;re right. I will look further into this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How use usb data line without usb core</title><link>https://devzone.nordicsemi.com/thread/90311?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 12:24:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7428a3ed-56d1-4c71-afe9-06ee27865349</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;so I finally, after the comment from yesterday, understand what they are trying to do. They aren&amp;#39;t trying to use GPIOs for USB. What they&amp;#39;re trying to do is have one connector on the board, a USB connector, but have it work both for USB (usual case, usual wiring) &lt;em&gt;or&lt;/em&gt; I2C (with some custom connector). So they have D+/D- on the connector hooked up to D+/D- pads on the chip but also to two GPIOs for when they&amp;#39;re using the USB connector for I2C. I think what they hoped for /expected is that if the USB module itself is off, the D+/D- pads would be high impedence and wouldn&amp;#39;t interfere with the I2C communication going into the GPIO pins. I assume when using USB,they set the GPIOs high impedence and that works. So I guess the question here is what are the electrical characteristics of the D+/D- pads when the USB module is turned off?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How use usb data line without usb core</title><link>https://devzone.nordicsemi.com/thread/90309?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 11:24:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4dfb177-6a49-4eb0-a6ae-18d6136a20ac</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Hello Vlad&lt;/p&gt;
&lt;p&gt;As RK has stated none of the GPIO of the nRF52840 supports USB, and the USB pins are exclusively used for USB. So if you want to use the GPIO for USB do that you would have to bitbang it somehow, though I&amp;#39;m not sure if that would be possible.&lt;/p&gt;
&lt;p&gt;Unfortunately we do not have any examples or reference code for something like this. I have seen people claim to have bitbanged USB on ARM M0 processors, however for our products you would have to worry about the SoftDevice using part of the processor time as well.&lt;/p&gt;
&lt;p&gt;To my knowledge USB has never been bitbanged on any of our products, so I&amp;#39;m afraid I don&amp;#39;t have any further advice on how to achieve something like that.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jørn Frøysa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How use usb data line without usb core</title><link>https://devzone.nordicsemi.com/thread/90308?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 13:58:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a15d344-6971-45f6-9eb4-ebbfbbb7131e</guid><dc:creator>Vlad Mokhnachov</dc:creator><description>&lt;p&gt;We want use usb connector for usb and for i2c.&lt;/p&gt;
&lt;p&gt;First case: connecting board to usb host via usb&lt;/p&gt;
&lt;p&gt;Second case: connecting board to another board via i2c&lt;/p&gt;
&lt;p&gt;Both case used one usb connector(GND, VCC, D+ and D-), but for i2c D+ changed to SDA and D- to SCL.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How use usb data line without usb core</title><link>https://devzone.nordicsemi.com/thread/90307?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 13:35:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87338ccf-65b1-47a0-9b17-8a80ac125a32</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;What do you mean you have &amp;quot;connected gpio pins to USB pins&amp;quot;? The circuit diagram makes it look as though you&amp;#39;ve connected USB D+ both to the D+ pin and to a random GPIO. Why have you done this? The D+/D- pins can only be used for USB and nothing else and no other GPIOs can take a USB signal so it&amp;#39;s hard to understand what you&amp;#39;re trying to accomplish.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>