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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-03-27T20:43:43+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2010-03-27T20:43:43+02:00</updated>

		<published>2010-03-27T20:43:43+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13886#p13886</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13886#p13886"/>
		<title type="html"><![CDATA[Re: HIDKeys with mega168]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13886#p13886"><![CDATA[
could you post a schematic please?<br />I have also been trying to get a ATMega 168 working with V USB<br /><br />Thanks,<br /><br />Ilia<p>Statistics: Posted by Guest — Sat Mar 27, 2010 8:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[RazorConcepts]]></name></author>
		<updated>2010-03-25T02:16:42+02:00</updated>

		<published>2010-03-25T02:16:42+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13849#p13849</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13849#p13849"/>
		<title type="html"><![CDATA[Re: HIDKeys with mega168]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13849#p13849"><![CDATA[
Finally got a PCB made  <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /> <br />This is the zener version with blue LEDs instead of zeners.<br /><img src="http://i41.tinypic.com/mju3qq.jpg" class="postimage" alt="Image" /><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2510">RazorConcepts</a> — Thu Mar 25, 2010 2:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[RazorConcepts]]></name></author>
		<updated>2010-02-27T01:31:34+02:00</updated>

		<published>2010-02-27T01:31:34+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13421#p13421</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13421#p13421"/>
		<title type="html"><![CDATA[Re: HIDKeys with mega168]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13421#p13421"><![CDATA[
Thank you, it works properly. I have attached a zip file of the complete AVR studio 4 project if people would like it as a starting point.<br />ATmega168 (not P or PA version) at 16mhz using the 2 4148 diodes in series circuit.<br /><br /><!-- m --><a class="postlink" href="http://www.4shared.com/file/230550081/536f2b28/mouse168.html">http://www.4shared.com/file/230550081/5 ... se168.html</a><!-- m --><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2510">RazorConcepts</a> — Sat Feb 27, 2010 1:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Grendel]]></name></author>
		<updated>2010-02-24T08:43:30+02:00</updated>

		<published>2010-02-24T08:43:30+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13371#p13371</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13371#p13371"/>
		<title type="html"><![CDATA[Re: HIDKeys with mega168]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13371#p13371"><![CDATA[
Remove the F_CPU definition from main.c, the definition needs to be global. One way of adding it: in AVRS, load your project then open the menu &quot;Project&quot;, select &quot;Configuration Options&quot;. In that dialog under &quot;General&quot; fill out the &quot;Frequency:&quot; field w/ 16000000 . Click Ok and recompile.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=101">Grendel</a> — Wed Feb 24, 2010 8:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[RazorConcepts]]></name></author>
		<updated>2010-02-24T05:30:16+02:00</updated>

		<published>2010-02-24T05:30:16+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13370#p13370</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13370#p13370"/>
		<title type="html"><![CDATA[Re: HIDKeys with mega168]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13370#p13370"><![CDATA[
Alright, so I decided to start fresh with HID-mouse. I copied the contents of the library into the same folder as the main.c (to ease AVR studio in finding these files). I got everything to compile except for the F_CPU part.  I added the following at the top of main.c:<br /><div class="codebox"><p>Code: </p><pre><code>#define F_CPU 16000000UL</code></pre></div><br /><br />But I get a ../usbdrvasm.S:383:9: error: #error &quot;USB_CFG_CLOCK_KHZ is not one of the supported non-crc-rates!&quot; error.<br /><br />Tracing this back, usbconfig.h converts F_CPU to USB_CFG_CLOCK_KHZ by dividing F_CPU by 1000. So, with a 16000000khz F_CPU, I should get a 16000KHZ USB_CFG_CLOCK, which is in range of the acceptible values - but for some reason, it thinks it is wrong. Any ideas?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2510">RazorConcepts</a> — Wed Feb 24, 2010 5:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-02-15T03:07:33+02:00</updated>

		<published>2010-02-15T03:07:33+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13240#p13240</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13240#p13240"/>
		<title type="html"><![CDATA[Re: HIDKeys with mega168]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13240#p13240"><![CDATA[
IIRC the electrical specs for the I/O pins are different between the 8 and 88. If you use Z-diodes on D+/D-, they HAVE to be 3V6/&lt;= 500mW.<br /><br /> If I take one of my atmega projects and put 1 watt's on there, it will not enumerate. However on the atmega8 it works just fine. The atmega 8 projects should run just fine. Ever single one does for me. In some case I needed to rename the registers to match the atmega168, but if that were the case it woudl not compile.  So it its compiling your code is good unless you changed something.<br /><br />If you still have troubles, Check out <br />Replacing ATmega8 by ATmega88  <!-- m --><a class="postlink" href="http://www.atmel.com/dyn/resources/prod_documents/doc2553.pdf">http://www.atmel.com/dyn/resources/prod ... oc2553.pdf</a><!-- m --><br />Migrating between ATmega48, ATmega88 and ATmega168 <!-- m --><a class="postlink" href="http://www.atmel.com/dyn/resources/prod_documents/doc2554.pdf">http://www.atmel.com/dyn/resources/prod ... oc2554.pdf</a><!-- m --><br />Migrating from ATmega48/88 and ATmega48P/88P to ATmega48PA/88PA <!-- m --><a class="postlink" href="http://www.atmel.com/dyn/resources/prod_documents/doc8196.pdf">http://www.atmel.com/dyn/resources/prod ... oc8196.pdf</a><!-- m --><br /><br />I also had  an old usbdrvasm.o cause issues for the 168's I had to re download the latest, but I'm guessing you have the latest code an examples?<br /><br />one other thing I remember is pd2 has an int on it, so if you use that pin make sure its disabled. I dont think any of the examples have the int enabled though.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Mon Feb 15, 2010 3:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[RazorConcepts]]></name></author>
		<updated>2010-02-15T00:27:55+02:00</updated>

		<published>2010-02-15T00:27:55+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13238#p13238</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13238#p13238"/>
		<title type="html"><![CDATA[Re: HIDKeys with mega168]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13238#p13238"><![CDATA[
I am using half-watt diodes (the standard kind), but why would 1 watt diodes not work?<br /><br />Also, if anyone has a working AVR Studio Project for the mega168 of any kind, I would greatly appreciate if you zip it up and post it. Thanks!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2510">RazorConcepts</a> — Mon Feb 15, 2010 12:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Grendel]]></name></author>
		<updated>2010-02-12T21:01:16+02:00</updated>

		<published>2010-02-12T21:01:16+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13226#p13226</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13226#p13226"/>
		<title type="html"><![CDATA[Re: HIDKeys with mega168]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13226#p13226"><![CDATA[
<blockquote><div><cite>RazorConcepts wrote:</cite>Additionally, has anyone gotten V-USB software to work with AVR Studio 4? It is very picky, and therefore not able to use the included makefile, which may have something to do with my problems  <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /></div></blockquote><br />Used AVRS4 many times w/ V-USB. Just set up the project from scratch and ignore the makefile.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=101">Grendel</a> — Fri Feb 12, 2010 9:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-02-12T18:44:59+02:00</updated>

		<published>2010-02-12T18:44:59+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13224#p13224</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13224#p13224"/>
		<title type="html"><![CDATA[Re: HIDKeys with mega168]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13224#p13224"><![CDATA[
Yup, done many projects with 168's The biggest mistake is using the whole watt diodes.. You need to use the 1/2 watt with 168's<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Fri Feb 12, 2010 6:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[RazorConcepts]]></name></author>
		<updated>2010-02-12T05:37:27+02:00</updated>

		<published>2010-02-12T05:37:27+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13217#p13217</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13217#p13217"/>
		<title type="html"><![CDATA[HIDKeys with mega168]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3885&amp;p=13217#p13217"><![CDATA[
Has anyone successfully used HIDKeys example with a mega168?<br /><br />I copied the exact schematic, except of course with the mega168 instead of the mega8.<br /><br />To fix compile errors, I changed TCCR0 to TCCR0B, and two instances of TIFR to TIFR0. That is all I changed, and now everything compiles perfectly.<br /><br />However, the computer says the device can not be recognized.<br /><br />Any ideas? Thanks.<br /><br />Additionally, has anyone gotten V-USB software to work with AVR Studio 4? It is very picky, and therefore not able to use the included makefile, which may have something to do with my problems  <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2510">RazorConcepts</a> — Fri Feb 12, 2010 5:37 am</p><hr />
]]></content>
	</entry>
	</feed>
