<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/4271" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-05-12T15:13:42+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/4271</id>

		<entry>
		<author><name><![CDATA[AntonG]]></name></author>
		<updated>2010-05-12T15:13:42+02:00</updated>

		<published>2010-05-12T15:13:42+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4271&amp;p=14445#p14445</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4271&amp;p=14445#p14445"/>
		<title type="html"><![CDATA[Operation without an USB master - driver hangs]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4271&amp;p=14445#p14445"><![CDATA[
Dear V-USB team and developers,<br /><br />I have a problem here I cannot find any solution for. I have searched the forum as well as documentation but haven't found a solution.<br /><br />The problem is as follows: if my device is connected via USB to the disconnected from mains PC, it hangs. With USB disconnected, or powered (but turned off) PC everything works fine.<br /><br />The board (ATmega8) is powered externally with 5V (well, 4.3-4.5 V). I use 3.6V Zener diodes on D+ and D- lines, 1k5 pullup on D-, 1M pulldown on D+. D+ is connected to PD4, D- to PD3 (INT1). Of course there is 62 Ohms in series on both lines. INT0 is not used, driver is configured to use INT1.<br />I'm using D- as interrupt source in order to detect lost connection and reset USB - EMI workaround.<br /><br />Everything works save for the mentioned case. I suppose it has something to do with this:<br /><blockquote class="uncited"><div>Operation without an USB master:<br />The driver behaves neutral without connection to an USB master if D- reads<br />as 1. ...&lt;cut&gt;... . If D- becomes statically 0, the driver may block in the<br />interrupt routine.</div></blockquote><br /><br />The thing is that D- is 0 in the described case. Is there some way to workaround it either in the hardware or software? Any suggestions are highly appreciated!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2661">AntonG</a> — Wed May 12, 2010 3:13 pm</p><hr />
]]></content>
	</entry>
	</feed>
