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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2011-07-20T13:50:22+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2011-07-20T13:50:22+02:00</updated>

		<published>2011-07-20T13:50:22+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5832&amp;p=19035#p19035</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5832&amp;p=19035#p19035"/>
		<title type="html"><![CDATA[Re: Swapped D+/D- pins]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5832&amp;p=19035#p19035"><![CDATA[
<!-- l --><a class="postlink-local" href="http://forums.obdev.at/viewtopic.php?f=8&amp;t=2348">viewtopic.php?f=8&amp;t=2348</a><!-- l --><p>Statistics: Posted by Guest — Wed Jul 20, 2011 1:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jamesotron]]></name></author>
		<updated>2011-07-19T23:57:55+02:00</updated>

		<published>2011-07-19T23:57:55+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5832&amp;p=19029#p19029</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5832&amp;p=19029#p19029"/>
		<title type="html"><![CDATA[Re: Swapped D+/D- pins]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5832&amp;p=19029#p19029"><![CDATA[
Right, except that the comments below say that D- must be connected to an INT0 port.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5246">jamesotron</a> — Tue Jul 19, 2011 11:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2011-07-18T05:00:01+02:00</updated>

		<published>2011-07-18T05:00:01+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5832&amp;p=19007#p19007</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5832&amp;p=19007#p19007"/>
		<title type="html"><![CDATA[Re: Swapped D+/D- pins]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5832&amp;p=19007#p19007"><![CDATA[
Going to go out on a limb here an assume I'm missing the point. However if I'm not, my question to you... Why not switch the defines in the config.h ?<br /><br />Assuming you use the default for most projects. <br /><div class="codebox"><p>Code: </p><pre><code>#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       2<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!</code></pre></div><br /><br />to<br /><br /><div class="codebox"><p>Code: </p><pre><code>#define USB_CFG_DMINUS_BIT      2<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       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. Please note that D+ must also be connected<br /> * to interrupt pin INT0!</code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Mon Jul 18, 2011 5:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jamesotron]]></name></author>
		<updated>2011-07-18T01:53:25+02:00</updated>

		<published>2011-07-18T01:53:25+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5832&amp;p=19006#p19006</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5832&amp;p=19006#p19006"/>
		<title type="html"><![CDATA[Swapped D+/D- pins]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5832&amp;p=19006#p19006"><![CDATA[
Hi there.<br /><br />On my latest set of prototype boards I accidentally flipped D+ and D- so that D- is connected to D2 and D+ is connected to D4! (This is an ATMega328p) - is it possible to work around the interrupt being on the wrong port in the software or should I get out the iron and try and fudge something together?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5246">jamesotron</a> — Mon Jul 18, 2011 1:53 am</p><hr />
]]></content>
	</entry>
	</feed>
