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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-04-15T10:06:18+02:00</updated>

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-04-15T10:06:18+02:00</updated>

		<published>2008-04-15T10:06:18+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5050#p5050</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5050#p5050"/>
		<title type="html"><![CDATA[Shut down or sleep mode for AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5050#p5050"><![CDATA[
You need to detect the Start Of Frame pulses. Since they are on D-, you need to supervise D-. The pulses are short (667 ns) and rare (every 1 ms), so you need hardware to detect them. This hardware could be an interrupt or a counter input.<br /><br />There are no such pulses on D+ (therefore we use D+ for the USB interrupt so that no unnecessary interrupts are generated).<br /><br />The USB spec defines this in an abstract language because signal lines are swapped between low speed and full speed devices.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Tue Apr 15, 2008 10:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stephen]]></name></author>
		<updated>2008-04-15T08:27:17+02:00</updated>

		<published>2008-04-15T08:27:17+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5048#p5048</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5048#p5048"/>
		<title type="html"><![CDATA[Shut down or sleep mode for AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5048#p5048"><![CDATA[
hi, sorry for too much questions since it is too much documents about USB.<br /><br />I read the document &quot;USB in a Nutshell&quot; from beyondlogic. In page 5 &quot;Electrical&quot;, it state &quot;Certain bus states are indicated by single ended signals on D+, D- or both.&quot; It seems no more information i can dig into in this documents.<br /><br />Christian replied: &quot;The device may wake up the host by sending an SE0 (= USB Reset = very short disconnect) signal.&quot; &lt;- My device doesn't need to wake up the host. It just need to know host is sleep/OFF, then device go into suspend mode. In this case, can i use D+?<br /><br />Thanks.<br /><br /><blockquote><div><cite>christian wrote:</cite>The 1kHz SE0 pulses are on D-, not D+. You therefore need an interrupt on D-.</div></blockquote><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=986">Stephen</a> — Tue Apr 15, 2008 8:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-04-14T10:43:51+02:00</updated>

		<published>2008-04-14T10:43:51+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5024#p5024</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5024#p5024"/>
		<title type="html"><![CDATA[Shut down or sleep mode for AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5024#p5024"><![CDATA[
The 1kHz SE0 pulses are on D-, not D+. You therefore need an interrupt on D-.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Mon Apr 14, 2008 10:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stephen]]></name></author>
		<updated>2008-04-14T09:57:56+02:00</updated>

		<published>2008-04-14T09:57:56+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5022#p5022</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5022#p5022"/>
		<title type="html"><![CDATA[Shut down or sleep mode for AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5022#p5022"><![CDATA[
hi, I was confused. Tom said D+ has also got this 1kHz pulse. Any reason that why i can't utilized this 1kHz pulse from D+. The D- pin in my layout is not connected to any interrupt. Thanks.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=986">Stephen</a> — Mon Apr 14, 2008 9:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-04-14T09:42:50+02:00</updated>

		<published>2008-04-14T09:42:50+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5020#p5020</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5020#p5020"/>
		<title type="html"><![CDATA[Shut down or sleep mode for AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5020#p5020"><![CDATA[
If D- is wired to a pin which can trigger an interrupt (e.g. INT1, pin change interrupt), there's also an example available how to implement it.<br /><br />Suspend mode is documented in the USB specification. When the host goes to sleep it MUST stop sending the 1 kHz pulses. The device may wake up the host by sending an SE0 (= USB Reset = very short disconnect) signal.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Mon Apr 14, 2008 9:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stephen]]></name></author>
		<updated>2008-04-14T08:58:16+02:00</updated>

		<published>2008-04-14T08:58:16+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5019#p5019</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5019#p5019"/>
		<title type="html"><![CDATA[Shut down or sleep mode for AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=5019#p5019"><![CDATA[
hi, thanks for both you guy's reply.<br /><br />Now, my design's D+ pin is connected to INT0<br />Do i have to re-layout to D- pin to INT0 or modification of firmware (keep D+ pin to INTO)can solve  this issue? Thanks.<br /><br />I want to study more information about this 1kHz idle clock, what documents that i can check about it. I want to know whether the idle clock is still exists when Windows at sleep mode. Thanks. <br /><br /><blockquote><div><cite>christian wrote:</cite>See the end of <!-- m --><a class="postlink" href="http://avrusb.wikidot.com/examples">http://avrusb.wikidot.com/examples</a><!-- m -->, the section about suspend mode. This explains how suspend mode can be implemented.</div></blockquote><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=986">Stephen</a> — Mon Apr 14, 2008 8:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-04-10T11:43:08+02:00</updated>

		<published>2008-04-10T11:43:08+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1354&amp;p=4980#p4980</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=4980#p4980"/>
		<title type="html"><![CDATA[Shut down or sleep mode for AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=4980#p4980"><![CDATA[
See the end of <!-- m --><a class="postlink" href="http://avrusb.wikidot.com/examples">http://avrusb.wikidot.com/examples</a><!-- m -->, the section about suspend mode. This explains how suspend mode can be implemented.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Thu Apr 10, 2008 11:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-04-08T09:35:41+02:00</updated>

		<published>2008-04-08T09:35:41+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1354&amp;p=4944#p4944</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=4944#p4944"/>
		<title type="html"><![CDATA[Shut down or sleep mode for AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=4944#p4944"><![CDATA[
You could detect if there's a 1kHz idle clock on the D+ line. If it's gone the PC is off.<br /><br />Tom<p>Statistics: Posted by Guest — Tue Apr 08, 2008 9:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stephen]]></name></author>
		<updated>2008-04-08T08:49:38+02:00</updated>

		<published>2008-04-08T08:49:38+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1354&amp;p=4943#p4943</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=4943#p4943"/>
		<title type="html"><![CDATA[Shut down or sleep mode for AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1354&amp;p=4943#p4943"><![CDATA[
I have completed a device that with many LEDs. I have tried it on Windows XP in several desktop computers and notebook computers. Some computer's motherboard design will cut off the 5V power from USB port, some will not.<br /><br />My problem: After shut down of computer. My device's LED are still getting ON, the AVR MCU is still running and It remains the last state of computer shut down. What approach that i can solve this problem? Have any loop subroutine that can detect the computer was off? Thanks.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=986">Stephen</a> — Tue Apr 08, 2008 8:49 am</p><hr />
]]></content>
	</entry>
	</feed>
