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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2009-07-10T18:01:20+02:00</updated>

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2009-07-10T18:01:20+02:00</updated>

		<published>2009-07-10T18:01:20+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2905&amp;p=10104#p10104</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2905&amp;p=10104#p10104"/>
		<title type="html"><![CDATA[Re: Question about pin configuration of the USB for ATMEGA1281]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2905&amp;p=10104#p10104"><![CDATA[
And you will either have to run the AVR on 3.3 V or use zener diodes to limit the voltage on D+ and D-.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Fri Jul 10, 2009 6:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Grendel]]></name></author>
		<updated>2009-06-24T08:19:29+02:00</updated>

		<published>2009-06-24T08:19:29+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2905&amp;p=9886#p9886</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2905&amp;p=9886#p9886"/>
		<title type="html"><![CDATA[Re: Question about pin configuration of the USB for ATMEGA1281]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2905&amp;p=9886#p9886"><![CDATA[
Looks good, make sure you setup usbconfig.h accordingly. BTW, you will need a 1.5K pullup resistor on D- to V+ or, alternatively, a port pin.<br /><br />From the usbconfig.h file:<br /><br /><div class="codebox"><p>Code: </p><pre><code>/* ---------------------------- Hardware Config ---------------------------- */<br /><br />#define USB_CFG_IOPORTNAME      D<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      4<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! &#91;You can also use other interrupts, see section<br /> * &quot;Optional MCU Description&quot; below, or you can connect D- to the interrupt, as<br /> * it is required if you use the USB_COUNT_SOF feature. If you use D- for the<br /> * interrupt, the USB interrupt will also be triggered at Start-Of-Frame<br /> * markers every millisecond.&#93;<br /> */<br />&#91;..&#93;<br />/* ----------------------- Optional Hardware Config ------------------------ */<br /><br />/* #define USB_CFG_PULLUP_IOPORTNAME   D */<br />/* If you connect the 1.5k pullup resistor from D- to a port pin instead of<br /> * V+, you can connect and disconnect the device from firmware by calling<br /> * the macros usbDeviceConnect() and usbDeviceDisconnect() (see usbdrv.h).<br /> * This constant defines the port on which the pullup resistor is connected.<br /> */<br />/* #define USB_CFG_PULLUP_BIT          4 */<br />/* This constant defines the bit number in USB_CFG_PULLUP_IOPORT (defined<br /> * above) where the 1.5k pullup resistor is connected. See description<br /> * above for details.<br /> */<br /></code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=101">Grendel</a> — Wed Jun 24, 2009 8:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2009-06-22T17:30:03+02:00</updated>

		<published>2009-06-22T17:30:03+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2905&amp;p=9866#p9866</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2905&amp;p=9866#p9866"/>
		<title type="html"><![CDATA[Re: Question about pin configuration of the USB for ATMEGA1281]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2905&amp;p=9866#p9866"><![CDATA[
If this sounds nutty, then please disregard as I'm way more lost then you. But would you not want to connect the usb pins to what you chose in your software?  Unless you didnt write it, or I'm missing something painfully obvious you would want to set your pins in the code and then connect them as such, no?  PD1 and 0 are good choices as that is a normal set up, but atmega chips ( or most of them ) allow the coder to choose what pins they like, this should be known if not by you, by the author...<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Mon Jun 22, 2009 5:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[UnOrThOdOx]]></name></author>
		<updated>2009-06-19T18:08:01+02:00</updated>

		<published>2009-06-19T18:08:01+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2905&amp;p=9852#p9852</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2905&amp;p=9852#p9852"/>
		<title type="html"><![CDATA[Question about pin configuration of the USB for ATMEGA1281]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2905&amp;p=9852#p9852"><![CDATA[
Hello,<br /><br />I have a question about the pins configuration of the usb.<br />As you can see from the image below (marked in red)<br /><br /><img src="http://img10.imageshack.us/img10/256/atmel.png" class="postimage" alt="Image" /><br /><br />I'm trying to design a usb dongle by using ATMEGA1281<br /><br />But i'm not sure where to connect the usb pins to the chip.<br /><br />Could anyone please help me out and give me a hint where I should connect D+ and D- to?<br /><br />I have no idea so I just connect<strong class="text-strong"> &quot;D- (usb port)&quot;</strong> to the pin <strong class="text-strong">&quot;PD1:SDA:INT1&quot;</strong> and <strong class="text-strong">&quot;D+(usb port)&quot;</strong> to the pin<strong class="text-strong"> &quot;PD0:SDL:INT0&quot;</strong> to on ATMEGA1281.<br />Could someone please confirm that the pins I chose were the right pins? Or could anyone please suggest where I should connect what?<br /><br />I'd really appreciate your help.<br /><br />Thank you so much in advance &amp; Best Regards,<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2427">UnOrThOdOx</a> — Fri Jun 19, 2009 6:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
