<?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/958" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2007-11-27T19:55:34+02:00</updated>

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-11-27T19:55:34+02:00</updated>

		<published>2007-11-27T19:55:34+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=958&amp;p=3292#p3292</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=958&amp;p=3292#p3292"/>
		<title type="html"><![CDATA[USB cable detect]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=958&amp;p=3292#p3292"><![CDATA[
The newer versions of the driver don't really care whether you connect D+ or D- to INT0. For counting frames, however, you MUST connect D- to INT0 because only D- carries the frame marker.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Tue Nov 27, 2007 7:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2007-11-27T19:52:19+02:00</updated>

		<published>2007-11-27T19:52:19+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=958&amp;p=3291#p3291</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=958&amp;p=3291#p3291"/>
		<title type="html"><![CDATA[USB cable detect]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=958&amp;p=3291#p3291"><![CDATA[
Hi Christian,<br /><br />thank you for your answare. Just one more question, where I should connect D+, if I connect D- to the INT0? I read in the usbconfig.h that D+ must be connected to INT0.<br /><br />I'm already using the new driver version. The update was very easy, and the USB-communication still working great.  <img class="smilies" src="./../../../images/smilies/icon_smile.gif" alt=":)" title="Smile" /> <br /><br />Regards,<br />Mario<p>Statistics: Posted by Guest — Tue Nov 27, 2007 7:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-11-27T10:57:01+02:00</updated>

		<published>2007-11-27T10:57:01+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=958&amp;p=3281#p3281</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=958&amp;p=3281#p3281"/>
		<title type="html"><![CDATA[USB cable detect]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=958&amp;p=3281#p3281"><![CDATA[
You can check for SOF frames which come in 1 ms intervals if the device is connected to a host. The easiest way to do this is to (1) wire INT0 to D- instead of D+, (2) update to the latest driver version and (3) define USB_COUNT_SOF in usbconfig.h.<br /><br />Then you can check whether the global variable usbSofCount increments every millisecond.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Tue Nov 27, 2007 10:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2007-11-20T12:50:04+02:00</updated>

		<published>2007-11-20T12:50:04+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=958&amp;p=3181#p3181</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=958&amp;p=3181#p3181"/>
		<title type="html"><![CDATA[USB cable detect]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=958&amp;p=3181#p3181"><![CDATA[
Hi,<br /><br />I have a simple questen (and I hope that the answare is simple too <img class="smilies" src="./../../../images/smilies/icon_wink.gif" alt=";-)" title="Wink" />).<br /><br />Anybody knows if there is a way to detect if the USB cable ist connectet, and the enumeration is done successfully, by firmware? I don't have more pins available on my ATmega32 to detect the USB cable, so I'm trying to do it by software.<br /><br />By the way, I'm working with the firmware of PowerSwitch.2007-03-29. Should I do a update to the newer version? My device is working fine, but I read something about problems wich appear sporadically (USB connection fails after some hours inactive), with the older version.<br /><br />Regards,<br />Mario<p>Statistics: Posted by Guest — Tue Nov 20, 2007 12:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
