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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2007-09-27T11:02:37+02:00</updated>

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

		<entry>
		<author><name><![CDATA[butrus.butrus]]></name></author>
		<updated>2007-09-27T11:02:37+02:00</updated>

		<published>2007-09-27T11:02:37+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=600&amp;p=2532#p2532</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=600&amp;p=2532#p2532"/>
		<title type="html"><![CDATA[Mega324P and AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=600&amp;p=2532#p2532"><![CDATA[
Hi! Is you MCU running at 5V or 3.3V? If 5V are you using proper zener diodes? Did you try with another computer?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=443">butrus.butrus</a> — Thu Sep 27, 2007 11:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2007-09-22T22:25:52+02:00</updated>

		<published>2007-09-22T22:25:52+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=600&amp;p=2475#p2475</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=600&amp;p=2475#p2475"/>
		<title type="html"><![CDATA[USB on ATmega324P]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=600&amp;p=2475#p2475"><![CDATA[
I just  got AVR-USB working fine on my ATmega324P. <br /><br />I am using PORTD, PD2(INT0) for DATA+ and PD3 for DATA-. <br />- no problems.<br /><br />Just be careful with your usbconfig.h settings.<p>Statistics: Posted by Guest — Sat Sep 22, 2007 10:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-08-02T14:23:37+02:00</updated>

		<published>2007-08-02T14:23:37+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=600&amp;p=1898#p1898</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1898#p1898"/>
		<title type="html"><![CDATA[Mega324P and AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1898#p1898"><![CDATA[
If you started with HIDKeys, you probably get the log from<div class="codebox"><p>Code: </p><pre><code>int   main&#40;void&#41;<br />&#123;<br />uchar   key, lastKey = 0, keyDidChange = 0;<br />uchar   idleCounter = 0;<br /><br />    wdt_enable&#40;WDTO_2S&#41;;<br />    hardwareInit&#40;&#41;;<br />    odDebugInit&#40;&#41;;<br />    usbInit&#40;&#41;;<br />    sei&#40;&#41;;<br />    DBG1&#40;0x00, 0, 0&#41;;<br /></code></pre></div><br /><br />This would indicate that you get a controller reset.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Thu Aug 02, 2007 2:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2007-08-02T08:18:40+02:00</updated>

		<published>2007-08-02T08:18:40+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=600&amp;p=1890#p1890</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1890#p1890"/>
		<title type="html"><![CDATA[Mega324P and AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1890#p1890"><![CDATA[
Ok, I managed to hookup USART, and when I plug in a USB cable, I get 00: 00 (debug set to 2)<br /><br />Joe<p>Statistics: Posted by Guest — Thu Aug 02, 2007 8:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-08-01T16:36:59+02:00</updated>

		<published>2007-08-01T16:36:59+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=600&amp;p=1871#p1871</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1871#p1871"/>
		<title type="html"><![CDATA[Mega324P and AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1871#p1871"><![CDATA[
The debug log<br /><br />ff:<br />ff:<br />ff:<br />...<br /><br />is printed while the USB is in RESET state. This means that the driver reads both, D+ and D- as zero. See usbdrv.c and search for DBG1(0xff, 0, 0); to see how reset is detected.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Wed Aug 01, 2007 4:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2007-08-01T16:22:36+02:00</updated>

		<published>2007-08-01T16:22:36+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=600&amp;p=1870#p1870</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1870#p1870"/>
		<title type="html"><![CDATA[Mega324P and AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1870#p1870"><![CDATA[
Hi,<br /><br />i have the same problem. Also when i enable the debug interface by DEBUG_LEVEL=2, all i get is FF: FF FF FF FF FF ... and so on. Whats wrong there? ... all i changed from original powerswitch SW is:<br />- PortD instead of PortB<br />- PinD.3 instead of B.0 for D-<br />- PinD.2 instead of B.1 for D+ (INT0)<br />- use ATMega168-20 instead of ATMega8-16 (had to change register names for ee-write/read functions)<br /><br />thanks in advance,<br /><br />Robert.<p>Statistics: Posted by Guest — Wed Aug 01, 2007 4:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-07-30T16:22:39+02:00</updated>

		<published>2007-07-30T16:22:39+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=600&amp;p=1819#p1819</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1819#p1819"/>
		<title type="html"><![CDATA[Mega324P and AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1819#p1819"><![CDATA[
And you are sure you compile for 12 MHz and not with an assembler module for another frequency. In this case you should really try to get a debug output with -DDEBUG_LEVEL=2...<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Mon Jul 30, 2007 4:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2007-07-27T05:55:44+02:00</updated>

		<published>2007-07-27T05:55:44+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=600&amp;p=1800#p1800</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1800#p1800"/>
		<title type="html"><![CDATA[Mega324P and AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1800#p1800"><![CDATA[
Hi Christian,<br /><br />Ok, I've double verified the clock frequency with the _delay_ms() function - it is 12Mhz, and generates perfect timing.  I &quot;think&quot; the values for the fuses are what they should be - I'm using AVRStudio, and picking what looks to be the equivalent setting on the Mega324p (no division of clock frequency, etc).  I've also placed a few LED toggles at key points in the usbdrv.c file as a debug check (waiting for some parts in order to use USART) - they do change upon USB cable insertion, so it appears everything is working well in the sense of interrupts.  Should hopefully have parts tomorrow, and can get more in depth look at what's happening.<br /><br />Joe<p>Statistics: Posted by Guest — Fri Jul 27, 2007 5:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-07-23T13:44:13+02:00</updated>

		<published>2007-07-23T13:44:13+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=600&amp;p=1782#p1782</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1782#p1782"/>
		<title type="html"><![CDATA[Mega324P and AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1782#p1782"><![CDATA[
You can safely use bits D0 and D2, I do this in all my projects.<br /><br />Please verify your basic configuration:<ol style="list-style-type: decimal"><li> Clock frequency. Write a simple test program which uses _delay_ms() from util/delay.h to generate a known frequency and check whether it's correct. The processor has a clock prescaler which might be active.</li><li> Fuse values: Did you use the same hexadecimal fuse values as for the Mega8, or did you use the same options? Bit locations are often not consistent between AVR versions.</li><li> Please check your I/O initialization. Instead of starting the driver, check that both USB lines are inputs and that D+ triggers an interrupt.</li></ol><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Mon Jul 23, 2007 1:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2007-07-21T19:07:29+02:00</updated>

		<published>2007-07-21T19:07:29+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=600&amp;p=1766#p1766</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1766#p1766"/>
		<title type="html"><![CDATA[Mega324P and AVR-USB]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=600&amp;p=1766#p1766"><![CDATA[
<blockquote><div><cite>iphi wrote:</cite> D0=&gt; D-, D1=&gt;D+ and D2=INT0=&gt;D+ <br /><br />You might want to try this.</div></blockquote><br /><br />Ok, gave that a try, and still no go - thanks though!<br /><br />Joe<p>Statistics: Posted by Guest — Sat Jul 21, 2007 7:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
