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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2007-07-03T07:41:33+02:00</updated>

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

		<entry>
		<author><name><![CDATA[iphi]]></name></author>
		<updated>2007-07-03T07:41:33+02:00</updated>

		<published>2007-07-03T07:41:33+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=556&amp;p=1626#p1626</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=556&amp;p=1626#p1626"/>
		<title type="html"><![CDATA[Powerswitch: changing USB terminals from Port B to Port D]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=556&amp;p=1626#p1626"><![CDATA[
Found it.<br /><br />The port directions were hard coded and did not make use of USB_CFG_IOPORTNAME.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=292">iphi</a> — Tue Jul 03, 2007 7:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iphi]]></name></author>
		<updated>2007-07-02T18:26:32+02:00</updated>

		<published>2007-07-02T18:26:32+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=556&amp;p=1617#p1617</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=556&amp;p=1617#p1617"/>
		<title type="html"><![CDATA[Powerswitch: changing USB terminals from Port B to Port D]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=556&amp;p=1617#p1617"><![CDATA[
P.S.<br /><br />I have just seen this code segment in main.c:<br /><br />/* This is the AT90S2313 version of the routine. Change for others. */<br />static void outputByte(uchar b)<br />{<br />    PORTB = (PORTB &amp; ~0xfc) | (b &amp; 0xfc);<br />    PORTD = (PORTD &amp; ~0x30) | ((b &lt;&lt; 4) &amp; 0x30);<br />}<br /><br />Could my problem come from the fact that I run the code on an attiny2313?<br /><br />Thanks<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=292">iphi</a> — Mon Jul 02, 2007 6:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iphi]]></name></author>
		<updated>2007-07-02T18:18:51+02:00</updated>

		<published>2007-07-02T18:18:51+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=556&amp;p=1616#p1616</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=556&amp;p=1616#p1616"/>
		<title type="html"><![CDATA[Powerswitch: changing USB terminals from Port B to Port D]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=556&amp;p=1616#p1616"><![CDATA[
Hi,<br /><br />in powerswitch I would like to use port D as connection port to the USB cable instead of port B.<br /><br />When I change in usbconfig.h from<br />#define USB_CFG_IOPORTNAME      B<br />...<br />to<br />#define USB_CFG_IOPORTNAME      D<br />#define USB_CFG_DMINUS_BIT      0<br />#define USB_CFG_DPLUS_BIT       1<br /><br />recompile and rewire the USB connections, then it doesn't work. The USB device appears on the bus as it wasn't there, i.e. the 1.5kOhms pullup resistor on D- seems to get pulled down by the port D0.<br />Have I missed to change something else?<br /><br />Thanks for your help!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=292">iphi</a> — Mon Jul 02, 2007 6:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
