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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2009-11-20T17:57:44+02:00</updated>

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

		<entry>
		<author><name><![CDATA[toface]]></name></author>
		<updated>2009-11-20T17:57:44+02:00</updated>

		<published>2009-11-20T17:57:44+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3557&amp;p=12075#p12075</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3557&amp;p=12075#p12075"/>
		<title type="html"><![CDATA[Re: Use V-USB with 2 stand alone USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3557&amp;p=12075#p12075"><![CDATA[
I'd say &quot;no&quot;, as you might be unlucky and the interrupt (start of frame) comes in at the approximately same time from the two computers. <br /><br />According to usbdrv.h you have at most 25 cycles (@12MHz) that you can ignore the start of frame interrupt, (coming in every 1ms) and each interrupt may last up to 100usec, ie ~90% of the time it will work. In the rest of the cases probably fail after a while. Either way, I wouldn't do it. If the usb frequencies aren't exactly the same, it will never work for an extended time.<br /><br />Maybe you can somehow force some &quot;unsynchronization&quot; of the USB clocks between the computers, I know too little about USB to answer that, but I wouldn't count on it.<br /><br />I would recommend you hook up two different avr's and use for example spi or serial to talk between them. Preferably something with flow control, as 100usec is a lot of time when you're sending data quickly back and forth.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3147">toface</a> — Fri Nov 20, 2009 5:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2009-11-20T14:30:53+02:00</updated>

		<published>2009-11-20T14:30:53+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3557&amp;p=12070#p12070</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3557&amp;p=12070#p12070"/>
		<title type="html"><![CDATA[Use V-USB with 2 stand alone USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3557&amp;p=12070#p12070"><![CDATA[
Hello,<br /><br />I have made the HIDkeys project and the power switch project. It works.<br />Thanks to Development Software GmbH.<br /><br />No my idea and question:<br /><br />Is it possible to drive an atmega8 with 2 stand alone USB connectors?<br />The USBs are switch in 2 different PCs.<br />I will use Int0 for USB connector 1 and Int1 for USB connector 2.<br />USB1 works as an HDI device and USB2 works as a power switch. <br /><br />I will copy and rename the files and functions und compile it.<br /><br />eg in main.C<br /><br /><div class="codebox"><p>Code: </p><pre><code>sei();<br />    for(;;){    /* main event loop */<br />        wdt_reset();<br />        <br />      usbPoll(); // Polling USB0<br />       usbPoll_USB2();// Polling USB1</code></pre></div><br /><br />Will this works?<br />Are there troubles with the timing from usbPoll() und usbPoll_USB2()?<br /><br /><br />Thanks for anwer<p>Statistics: Posted by Guest — Fri Nov 20, 2009 2:30 pm</p><hr />
]]></content>
	</entry>
	</feed>
