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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-01-22T12:33:10+02:00</updated>

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-01-22T12:33:10+02:00</updated>

		<published>2008-01-22T12:33:10+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3949#p3949</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3949#p3949"/>
		<title type="html"><![CDATA[Newest AVR-USB code]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3949#p3949"><![CDATA[
The macro USB_INTR_CFG_CLR is probably never needed. If some bits must be cleared in the interrupt configuration register in order to configure the interrupt correctly, set these bits in this mask.<br /><br />If you create your own usbconfig.h, please start from usbdrv/usbconfig-prototype.h, not from an example project's usbconfig. Only the prototype file is updated reliably when new features are added.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Tue Jan 22, 2008 12:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rukus]]></name></author>
		<updated>2008-01-22T04:19:48+02:00</updated>

		<published>2008-01-22T04:19:48+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3948#p3948</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3948#p3948"/>
		<title type="html"><![CDATA[Newest AVR-USB code]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3948#p3948"><![CDATA[
woops....I must have a older version of the driver..... it didn't have the<br /><br /><div class="codebox"><p>Code: </p><pre><code>#define USB_INTR_VECTOR</code></pre></div><br /><br />in the usbconfig.h file.<br /><br /><br />I'll download the latest and make the changes again <img class="smilies" src="./../../../images/smilies/icon_smile.gif" alt=":)" title="Smile" /><br /><br /><br />Also, I use no other interupts so using int2 should be the highest priority in my case.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=544">Rukus</a> — Tue Jan 22, 2008 4:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rukus]]></name></author>
		<updated>2008-01-22T04:02:49+02:00</updated>

		<published>2008-01-22T04:02:49+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3946#p3946</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3946#p3946"/>
		<title type="html"><![CDATA[Newest AVR-USB code]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3946#p3946"><![CDATA[
sorry the last post was mine....I forgot to login <img class="smilies" src="./../../../images/smilies/icon_smile.gif" alt=":)" title="Smile" /><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=544">Rukus</a> — Tue Jan 22, 2008 4:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-01-22T04:01:03+02:00</updated>

		<published>2008-01-22T04:01:03+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3945#p3945</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3945#p3945"/>
		<title type="html"><![CDATA[Newest AVR-USB code]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3945#p3945"><![CDATA[
<blockquote><div><cite>christian wrote:</cite>The newest version is always available in the PowerSwitch example.<br /><br />We currently have a thread in this forum where somebody reports problem with using other interrupts than INT0, but many others had success.<br /><br />Please note that only INT0 has the highest priority. If you use a different interrupt, it would be best if you don't use higher priority interrupts. The driver requires extremely low interrupt latency.</div></blockquote><br /><br />Thanks Christian.....I think I've made the proper changes to get int2 to work however I'm a bit confused regarding<br /><div class="codebox"><p>Code: </p><pre><code>#define USB_INTR_CFG_CLR        0 </code></pre></div><br />I'm not sure what this define is intended for?<br /><br />These are the changes I've made...Does this look functionaly correct...I know you probibly don't recall all of the register names for a ATMEGA64,  but does the defines look right or should I be doing something else to get int2 to work?<br /><br /><div class="codebox"><p>Code: </p><pre><code>/* The following configurations have working defaults in usbdrv.h. You<br /> * usually don't need to set them explicitly. Only if you want to run<br /> * the driver on a device which is not yet supported or with a compiler<br /> * which is not fully supported &#40;such as IAR C&#41; or if you use a differnt<br /> * interrupt than INT0, you may have to define some of these.<br /> */<br /> #define USB_INTR_CFG            EICRA<br /> #define USB_INTR_CFG_SET        &#40;&#40;1 &lt;&lt; ISC20&#41; | &#40;1 &lt;&lt; ISC21&#41;&#41;<br />/* #define USB_INTR_CFG_CLR        0 */<br /> #define USB_INTR_ENABLE         EIMSK <br /> #define USB_INTR_ENABLE_BIT     INT2 <br /> #define USB_INTR_PENDING        EIFR<br /> #define USB_INTR_PENDING_BIT    INTF2<br /><br />#endif /* __usbconfig_h_included__ */</code></pre></div><p>Statistics: Posted by Guest — Tue Jan 22, 2008 4:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-01-21T19:41:50+02:00</updated>

		<published>2008-01-21T19:41:50+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3937#p3937</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3937#p3937"/>
		<title type="html"><![CDATA[Newest AVR-USB code]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3937#p3937"><![CDATA[
The newest version is always available in the PowerSwitch example.<br /><br />We currently have a thread in this forum where somebody reports problem with using other interrupts than INT0, but many others had success.<br /><br />Please note that only INT0 has the highest priority. If you use a different interrupt, it would be best if you don't use higher priority interrupts. The driver requires extremely low interrupt latency.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Mon Jan 21, 2008 7:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rukus]]></name></author>
		<updated>2008-01-13T22:05:41+02:00</updated>

		<published>2008-01-13T22:05:41+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3879#p3879</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3879#p3879"/>
		<title type="html"><![CDATA[Newest AVR-USB code]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1123&amp;p=3879#p3879"><![CDATA[
Christian,  I was wondering what is the newest version of the AVR-USB<br />code and where I can get it?<br /><br />I'm interested in trying to get it running on a Atmega64 and I'll also be using TWI so I can't use INT0 for the USB as TWI needs those pins.<br /><br />I've read that you had upgraded the AVR-USB drivers to allow other interupts?  I'll be needing to use INT2 for AVR-USB as the pins for INT0 and INT1 are used for the TWI.<br /><br />Have you had any experience attempting to use a ATMEGA64 with AVR-USB?<br /><br />Thanks in advance<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=544">Rukus</a> — Sun Jan 13, 2008 10:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
