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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2014-01-02T00:10:38+02:00</updated>

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

		<entry>
		<author><name><![CDATA[blargg]]></name></author>
		<updated>2014-01-02T00:10:38+02:00</updated>

		<published>2014-01-02T00:10:38+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7972&amp;p=26393#p26393</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=26393#p26393"/>
		<title type="html"><![CDATA[Re: INT0 on D- instead of D+]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=26393#p26393"><![CDATA[
What problems are you having with using PB0 and PB1? If you don't also wire one to an interrupt pin, you'll need to be on a device that supports PCINT (pin change interrupt) that you can configure for one of those two pins.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=20076">blargg</a> — Thu Jan 02, 2014 12:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2014-01-01T07:22:24+02:00</updated>

		<published>2014-01-01T07:22:24+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7972&amp;p=26391#p26391</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=26391#p26391"/>
		<title type="html"><![CDATA[Re: INT0 on D- instead of D+]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=26391#p26391"><![CDATA[
Could you detail what changes you made to get your code to work on PB0 and PB1?<br /><br />Thanks.<p>Statistics: Posted by Guest — Wed Jan 01, 2014 7:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nitz76]]></name></author>
		<updated>2012-12-26T20:45:16+02:00</updated>

		<published>2012-12-26T20:45:16+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24310#p24310</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24310#p24310"/>
		<title type="html"><![CDATA[Re: INT0 on D- instead of D+]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24310#p24310"><![CDATA[
Glad if this can help!<br /><br />Now I have some issue with HIDBootFlash that cannot reprogram the boot flash itself. I will post on another topic.<br /><br />Thanks!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=12540">Nitz76</a> — Wed Dec 26, 2012 8:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[winelight]]></name></author>
		<updated>2012-12-18T14:54:25+02:00</updated>

		<published>2012-12-18T14:54:25+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24190#p24190</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24190#p24190"/>
		<title type="html"><![CDATA[Re: INT0 on D- instead of D+]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24190#p24190"><![CDATA[
Glad to hear you got it working. Perhaps this topic might be of use to someone else in the future too. Great!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=9486">winelight</a> — Tue Dec 18, 2012 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nitz76]]></name></author>
		<updated>2012-12-17T20:55:00+02:00</updated>

		<published>2012-12-17T20:55:00+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24181#p24181</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24181#p24181"/>
		<title type="html"><![CDATA[Re: INT0 on D- instead of D+]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24181#p24181"><![CDATA[
Hello,<br /><br />Actually, it works. This issue was with initial port configuration of the device. Just by changing the pins name and number and the interrupt polarity it's good.  <img class="smilies" src="./../../../images/smilies/icon_wink.gif" alt=":wink:" title="Wink" /> <br /><br />Thanks!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=12540">Nitz76</a> — Mon Dec 17, 2012 8:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[winelight]]></name></author>
		<updated>2012-12-17T11:51:07+02:00</updated>

		<published>2012-12-17T11:51:07+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24172#p24172</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24172#p24172"/>
		<title type="html"><![CDATA[Re: INT0 on D- instead of D+]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24172#p24172"><![CDATA[
Sorry - misunderstood.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=9486">winelight</a> — Mon Dec 17, 2012 11:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nitz76]]></name></author>
		<updated>2012-12-16T20:25:28+02:00</updated>

		<published>2012-12-16T20:25:28+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24162#p24162</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24162#p24162"/>
		<title type="html"><![CDATA[Re: INT0 on D- instead of D+]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24162#p24162"><![CDATA[
Hum... looks like it's not as easy as just changing interrupt polarity...<br /><br />Help anyone?  <img class="smilies" src="./../../../images/smilies/icon_question.gif" alt=":?:" title="Question" /> <br /><br /><div class="codebox"><p>Code: </p><pre><code>/* ----------------------- Optional MCU Description ------------------------ */<br /><br />/* 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 (such as IAR C) or if you use a differnt<br /> * interrupt than INT0, you may have to define some of these.<br /> */<br /> #define USB_INTR_CFG            MCUCR<br /> //#define USB_INTR_CFG_SET        ((1 &lt;&lt; ISC00) | (1 &lt;&lt; ISC01)) <br /> #define USB_INTR_CFG_SET        (1 &lt;&lt; ISC01)<br /> #define USB_INTR_CFG_CLR        0<br /> #define USB_INTR_ENABLE         GIMSK <br /> #define USB_INTR_ENABLE_BIT     INT0 <br /> #define USB_INTR_PENDING        GIFR <br /> #define USB_INTR_PENDING_BIT    INTF0 <br /> #define USB_INTR_VECTOR         SIG_INTERRUPT0 </code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=12540">Nitz76</a> — Sun Dec 16, 2012 8:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2012-12-14T20:27:16+02:00</updated>

		<published>2012-12-14T20:27:16+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24144#p24144</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24144#p24144"/>
		<title type="html"><![CDATA[Re: INT0 on D- instead of D+]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24144#p24144"><![CDATA[
Ah right you are, I forgot about that caveat. I can't offer much more help on that. Wait around and see if another can.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Fri Dec 14, 2012 8:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nitz76]]></name></author>
		<updated>2012-12-14T19:23:26+02:00</updated>

		<published>2012-12-14T19:23:26+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24143#p24143</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24143#p24143"/>
		<title type="html"><![CDATA[Re: INT0 on D- instead of D+]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24143#p24143"><![CDATA[
Yup, already done.  But it does not work because INT0 is on D- instead of D+.<br /><br />The important thing mentionned in the code is: &quot;You may<br />wire the lines to any other port, as long as D+ is also wired to INT0.&quot;<br /><br />Not my case...<br /><br /><div class="codebox"><p>Code: </p><pre><code>General Description:<br />This file is an example configuration (with inline documentation) for the USB<br />driver. It configures AVR-USB for an ATMega8 with USB D+ connected to Port D<br />bit 2 (which is also hardware interrupt 0) and USB D- to Port D bit 0. You may<br />wire the lines to any other port, as long as D+ is also wired to INT0.<br />To create your own usbconfig.h file, copy this file to the directory<br />containing &quot;usbdrv&quot; (that is your project firmware source directory) and<br />rename it to &quot;usbconfig.h&quot;. Then edit it accordingly.<br />*/<br /><br />/* ---------------------------- Hardware Config ---------------------------- */<br /><br />#define USB_CFG_IOPORTNAME      B<br />/* This is the port where the USB bus is connected. When you configure it to<br /> * &quot;B&quot;, the registers PORTB, PINB and DDRB will be used.<br /> */<br />#define USB_CFG_DMINUS_BIT      0<br />/* This is the bit number in USB_CFG_IOPORT where the USB D- line is connected.<br /> * This may be any bit in the port.<br /> */<br />#define USB_CFG_DPLUS_BIT       1<br />/* This is the bit number in USB_CFG_IOPORT where the USB D+ line is connected.<br /> * This may be any bit in the port. Please note that D+ must also be connected<br /> * to interrupt pin INT0!<br /> */</code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=12540">Nitz76</a> — Fri Dec 14, 2012 7:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2012-12-14T18:40:54+02:00</updated>

		<published>2012-12-14T18:40:54+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24142#p24142</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24142#p24142"/>
		<title type="html"><![CDATA[Re: INT0 on D- instead of D+]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7972&amp;p=24142#p24142"><![CDATA[
You define your D pins in the usbconfig.h file (Hardware Config). You can set them up on any pins that are int pins.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Fri Dec 14, 2012 6:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
