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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-09-07T13:55:13+02:00</updated>

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

		<entry>
		<author><name><![CDATA[lucky5]]></name></author>
		<updated>2010-09-07T13:55:13+02:00</updated>

		<published>2010-09-07T13:55:13+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=349&amp;p=15796#p15796</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=349&amp;p=15796#p15796"/>
		<title type="html"><![CDATA[Re: atmega128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=349&amp;p=15796#p15796"><![CDATA[
<blockquote><div><cite>Arxidatos wrote:</cite>I am newby at AVR and because i couldn't find an ATTINY45 i used an ATMEGA128 to test and practice with the code provided at CAPSLOCK project <a href="http://macetech.com/blog/?q=node/46" class="postlink">http://macetech.com/blog/?q=node/46</a>. I used port D 2 for usb D- and port D 0 for usb D+ clocked into usbconfig.h with a 16MHz ceramic resonator the fuses WDTON 1,OCNED 1,JTAGEN 0,CKOPT 0, EESAVE 1, BOOTSZ1-2 0, BOOTRST 1, BODLEVEL 0, BOTEN 0, SUT1 1, SUT0 0, and all CKEL 1, initially the communication was not possible and was getting the message unknown device. after i solder into the interface circuit the 3V6 zeners all gone perfect. one more note for the timer TCCR1 use a 16bit value because for atmega128 this timer is 16bit.<br /><br />I loved the project and the code  <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  excellent !!!</div></blockquote><br /><br /><br />Hi Arxidatos, I want a small favour from you. please do help me.I am trying to emulate keyboard with Atmega128.People in forums where suggesting me to use 12MHz clock instead of 16MHz to make it work. As you are succesful in developing, please let me know if I have to change to 12MHz.Im a new bie in this field and im given a task to add this feature to the existing project .Please look at the link below.I dint start coding yet, planning to give for hardware desgning , requesting you to help asap. Thanks in advance.<br /><!-- m --><a class="postlink" href="http://img203.imageshack.us/img203/1061/schematict.jpg">http://img203.imageshack.us/img203/1061/schematict.jpg</a><!-- m --><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4271">lucky5</a> — Tue Sep 07, 2010 1:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2010-02-10T01:19:29+02:00</updated>

		<published>2010-02-10T01:19:29+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=349&amp;p=13188#p13188</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=349&amp;p=13188#p13188"/>
		<title type="html"><![CDATA[Re: atmega128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=349&amp;p=13188#p13188"><![CDATA[
I am newby at AVR and because i couldn't find an ATTINY45 i used an ATMEGA128 to test and practice with the code provided at CAPSLOCK project <a href="http://macetech.com/blog/?q=node/46" class="postlink">http://macetech.com/blog/?q=node/46</a>. I used port D 2 for usb D- and port D 0 for usb D+ clocked into usbconfig.h with a 16MHz ceramic resonator the fuses WDTON 1,OCNED 1,JTAGEN 0,CKOPT 0, EESAVE 1, BOOTSZ1-2 0, BOOTRST 1, BODLEVEL 0, BOTEN 0, SUT1 1, SUT0 0, and all CKEL 1, initially the communication was not possible and was getting the message unknown device. after i solder into the interface circuit the 3V6 zeners all gone perfect. one more note for the timer TCCR1 use a 16bit value because for atmega128 this timer is 16bit.<br /><br />I loved the project and the code  <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  excellent !!!<p>Statistics: Posted by Guest — Wed Feb 10, 2010 1:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2009-07-25T09:56:02+02:00</updated>

		<published>2009-07-25T09:56:02+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=349&amp;p=10282#p10282</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=349&amp;p=10282#p10282"/>
		<title type="html"><![CDATA[Re: atmega128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=349&amp;p=10282#p10282"><![CDATA[
Can someone send this file for sendspce or something that Guest gived (makefile.txt) pls?<p>Statistics: Posted by Guest — Sat Jul 25, 2009 9:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2007-04-10T16:07:52+02:00</updated>

		<published>2007-04-10T16:07:52+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=349&amp;p=1181#p1181</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=349&amp;p=1181#p1181"/>
		<title type="html"><![CDATA[atmega128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=349&amp;p=1181#p1181"><![CDATA[
At last, it works  <img class="smilies" src="./../../../images/smilies/icon_eek.gif" alt=":shock:" title="Shocked" /> <br />I changed the fusebits to the values suggested, made no effect whatsoever. Then I pulled out the scope.<br /><br />After plugging the chip to the scope, I noticed the USB signal was quite nasty, loads of round edges, no nice sharp edges. Plugging it into the ATMEGA16 revealed a nice signal with sharp edges. So now I knew it wasnt the chip itself, it was the hardware around it.<br /><br />After replacing the pullup resistors and adding two 3V6 zener diodes I managed to get the signal right. After all it wasn't the chip itself, it proved to be other factors. <br /><br />Thanks bigtime for the help and support  <img class="smilies" src="./../../../images/smilies/icon_smile.gif" alt=":)" title="Smile" /><p>Statistics: Posted by Guest — Tue Apr 10, 2007 4:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Grendel]]></name></author>
		<updated>2007-04-09T09:38:02+02:00</updated>

		<published>2007-04-09T09:38:02+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=349&amp;p=1155#p1155</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=349&amp;p=1155#p1155"/>
		<title type="html"><![CDATA[atmega128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=349&amp;p=1155#p1155"><![CDATA[
Odd that changing the M103C fuse doesn't change the behavior.. Could you post the values of the three fuse bytes ? I would suggest these values:<br /><br />Extended fuse byte -- 0xFF<br />High fuse byte -- 0xD9<br />Low fuse byte -- 0x9F<br /><br />Also, what version of WinAVR are you using ? 20060421 or 20070122 ? (the latter is claimed to be &quot;somewhat experimental&quot;..)<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=101">Grendel</a> — Mon Apr 09, 2007 9:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2007-04-06T14:49:34+02:00</updated>

		<published>2007-04-06T14:49:34+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=349&amp;p=1141#p1141</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=349&amp;p=1141#p1141"/>
		<title type="html"><![CDATA[atmega128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=349&amp;p=1141#p1141"><![CDATA[
I've placed this statement: <br /><br />XDIV = (0&lt;&lt;XDIVEN); <br /><br />at the first line of my main-function. Following the datasheet this means that the clock divider is disabled, so the atmega128 runs at 12 mHz.<br /><br />At this moment I don't have a scope or logic analyzer avaible. Tuesday, when I'm at school I can use one. I will post the results here, then. <br /><br />@ Grendel, the Mega103 compatibility mode is disabled (bit unprogrammed). I've tried both options.<br /><br />So, I don't have any succes yet.<p>Statistics: Posted by Guest — Fri Apr 06, 2007 2:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Grendel]]></name></author>
		<updated>2007-04-06T02:48:38+02:00</updated>

		<published>2007-04-06T02:48:38+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=349&amp;p=1138#p1138</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=349&amp;p=1138#p1138"/>
		<title type="html"><![CDATA[atmega128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=349&amp;p=1138#p1138"><![CDATA[
Hm, is the M103C fuse programmed (it is by default) ? If so, kill it.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=101">Grendel</a> — Fri Apr 06, 2007 2:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-04-05T22:47:04+02:00</updated>

		<published>2007-04-05T22:47:04+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=349&amp;p=1137#p1137</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=349&amp;p=1137#p1137"/>
		<title type="html"><![CDATA[atmega128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=349&amp;p=1137#p1137"><![CDATA[
Interesting... Do you have any debug tools available such as a digital storage scope, a logic analyzer or at least a simple analog scope?<br /><br />With a DSO, you should see a query/response dialog on D+, query and response being distinguished by slightly different voltage levels. Simple errors can usually be seen on the scope.<br /><br />From the software side you might be able to see something with a USB snooper, but that assumes that there is at least SOME communication.<br /><br />And another idea: The Mega128 has an XDIV register where you can divide the crystal frequency. Are you sure that this feature is disabled?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Thu Apr 05, 2007 10:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2007-04-05T21:51:34+02:00</updated>

		<published>2007-04-05T21:51:34+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=349&amp;p=1134#p1134</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=349&amp;p=1134#p1134"/>
		<title type="html"><![CDATA[plukke]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=349&amp;p=1134#p1134"><![CDATA[
Yes, I've changed the target to Atmega128. That's the only thing I've changed. I'va connected ecerything following the circuit that came with the zipfile PowerSwitch.2007-03-29.zip. <br /><br />Here is a link to my makefile: <a href="http://c67245.upc-c.chello.nl/makefile.txt" class="postlink">makefile</a><br /><br />( I've changed the extension to .txt so it could be downloaded. )<br /><br />The only change is the device variable<p>Statistics: Posted by Guest — Thu Apr 05, 2007 9:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-04-05T21:01:44+02:00</updated>

		<published>2007-04-05T21:01:44+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=349&amp;p=1130#p1130</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=349&amp;p=1130#p1130"/>
		<title type="html"><![CDATA[atmega128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=349&amp;p=1130#p1130"><![CDATA[
And are you sure you have changed the makefile to compile for the right target?<br /><br />We have not tested AVR-USB with the ATMega128 yet, but I see no reason why it should not work. If there would be any address range problems, the compiler or assembler should print an error or at least a warning.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Thu Apr 05, 2007 9:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
