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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2011-09-22T15:59:11+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Gizmoomzig]]></name></author>
		<updated>2011-09-22T15:59:11+02:00</updated>

		<published>2011-09-22T15:59:11+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19679#p19679</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19679#p19679"/>
		<title type="html"><![CDATA[Re: USB communication problems with ATmega8 (4nes4snes-adapter)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19679#p19679"><![CDATA[
Sorry for not posting for a long time. Lots of private stuff...<br /><br />to newhero:<br />On the chip itself is<br /><blockquote class="uncited"><div>ATMEL 1051<br />ATMEGA8-16PU</div></blockquote><br />written.<br />Or is there a different chip model number? I bought the chip on 12.07.2011 so it should not be too old.<br />Normally, it should work with that chip model.<br /><br />to Tim_BandTech.Com:<br />Im trying to get my hands on an oscilloscope to check the frequency. Until then I will try the ghetto LED solution <img class="smilies" src="./../../../images/smilies/icon_smile.gif" alt=":)" title="Smile" /><br /><br />to ulao:<br />Sorry, I misunderstood your post. I dont have another clock except the one I use for the adapter but I´ll get a slightly faster one like 12.288 MHz.<br />I use 1/2 watt zener-diodes.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5574">Gizmoomzig</a> — Thu Sep 22, 2011 3:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2011-09-12T01:29:45+02:00</updated>

		<published>2011-09-12T01:29:45+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19571#p19571</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19571#p19571"/>
		<title type="html"><![CDATA[Re: USB communication problems with ATmega8 (4nes4snes-adapter)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19571#p19571"><![CDATA[
Oh, I forgot to add something.<br />With External Oscillator it was working sometime, but something unstable.<p>Statistics: Posted by Guest — Mon Sep 12, 2011 1:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2011-09-12T00:35:49+02:00</updated>

		<published>2011-09-12T00:35:49+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19570#p19570</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19570#p19570"/>
		<title type="html"><![CDATA[Re: USB communication problems with ATmega8 (4nes4snes-adapter)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19570#p19570"><![CDATA[
Probably you have same problem with me As I posted here later than you.<br /><br />I made it and was susscessful.<br />But when I bought new atmega8 recently, I replaced it with older working good one.<br />Because I want to make another board to implement my own pinouts and firmware modifying existing one.<br />But failed again and again even with many of newly purchased chips.<br />While I'm trying that I found that the V-usb project's circuit is really simple and almost all the things are done by the atmega8 chips, so if you didn't solder wrong, there'll be no circuit design flaw.<br />Luckily I'm having some of old manufacutre dated atmega, too.<br />I tested many kinds of things as successful.<br /><br />The Minimum Components I used are<br />2 68 Ohm Resistors  for D+ and D-<br />1 1.5K Ohm Resistor for D- <br />2 zener diode limiting the voltage<br />Atmega 8 16 AU (acutally On conversion board from QTFP to DIP Pin heads)<br />raw 12Mhz Crystal without any a capacitor --&gt; it looks stupid ^^;<br />I connected them all with small pinhead cables without soldering, sometimes it bent 90 degree.<br />It looks like whole strongly Not Recommeded looking. Either Chip fuse settings were not that much sensitive.<br />still working great.<br /><br /><br />With Newly manufactured chip, with all the recommended circuit design schemes it never worked.<br /><br /><br />Still I didn't find any a solution yet.<br /><br />can you tell me what exactly chip model number? to compare with mine<br />.<br /><br /><br />My Email is <!-- e --><a href="mailto:newheronv@naver.com">newheronv@naver.com</a><!-- e --><br /><br />Thank you.<p>Statistics: Posted by Guest — Mon Sep 12, 2011 12:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Tim_BandTech.Com]]></name></author>
		<updated>2011-08-15T15:30:30+02:00</updated>

		<published>2011-08-15T15:30:30+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19347#p19347</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19347#p19347"/>
		<title type="html"><![CDATA[Re: USB communication problems with ATmega8 (4nes4snes-adapter)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19347#p19347"><![CDATA[
When you say that your crystal is 12 MHz on the dot, this may be true as it is written on the face of the crystal, but the capacitors that must be ganged to the crystal are specified by the manufacturer to reach that frequency on the dot, and even then true on the dot requires calibration of those capacitors. <br /><br />This means that if you have an unusual crystal that the schematic capacitor values are not necessarily correct. Beyond this the AVR chips spec capacitance at the terminals of the xtal in, which should be added to the schematic values (capacitance to ground means parallel capacitors) when assessing the match to any specific crystal. I have dug in pretty deep here for RF work, and the parameters are quite confusing. <br /><br />This is fairly esoteric stuff, and it may not be your problem at all, since there should be some tolerance, and your frequency is likely very close to 12MHz. <br />In reality the amount of variation that can be achieved away from 12MHz is only slight, but if you push beyond that variational limit then you could have a bogus oscillator, and this could be your problem. Because you are failing at the early side of things and you are reusing the existing firmware you may still have a hardware (e.g. clock) problem. <br /><br />Capacitors come in various tolerances, and 20% is fairly common. The traces on the board could add capacitance if they are thick and over a ground plane. If you don't have test instruments then you are in the dark here, and the first method that I can think of would be to start with small capacitors and gang on more, but this is a kluge. If you can fit a small variable capacitor this could also get you in the range. 5 to 50 pF is in the range of some trimmer capacitors, and there are very small film trimmers that may fit nicely. <br /><br />So is there a gadget that can get you a clean frequency measure? Since you do have a cpu it is possible that you could count your clock cycles out to some fairly long time (say one hour), and you can blink an led so you have a coarse frequency counter. This method could literally be you with a stopwatch coming back a bit before the hour interval and watching for a change of state in an LED. Even with 1 second accuracy this is .03% accurate, if your timepiece is perfectly accurate. I think practically this is a verification that you have a sane oscillator circuit, and an oscilloscope may be just as good for this step. Forgoing both a scope and a frequency counter; this is the ghetto method. I've been there, but I haven't done this. My first MPU at home projects are now and I am now equipped with a scope and frequency counter.  <br /><br />I may have gone off the deep end here, but this information is general and for people who lack a frequency counter but do have a MPU this yields a verification. Sorry to say that I am just digging into the USB thing myself so my own USB experience is bleak. <br /><br /> - Tim <!-- m --><a class="postlink" href="http://bandtech.com">http://bandtech.com</a><!-- m --><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5633">Tim_BandTech.Com</a> — Mon Aug 15, 2011 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2011-08-11T23:30:43+02:00</updated>

		<published>2011-08-11T23:30:43+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19312#p19312</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19312#p19312"/>
		<title type="html"><![CDATA[Re: USB communication problems with ATmega8 (4nes4snes-adapter)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19312#p19312"><![CDATA[
not with the (s)nes, it uses _dealys no &quot;nop&quot; operations so setting your clock in the project is all you need to do. V-usb will work on a 16 ( later versions only ) I was referring to a 12.1 or so. The usb timing is critical. Slowing down a cock IMO is silly, just use the right crystal... <br /><br />Are you using 1 or 1/2 watt diodes?<br />For atmeg8 you can use either but atmeg168 needs to be 1/2 watt.<br /><br /><br />FYI:  I know many people use a 16,mhz on a 168 chip, so I dont know why or where you read that. ( though this is not your issue, you dont need a 16 )<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Thu Aug 11, 2011 11:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gizmoomzig]]></name></author>
		<updated>2011-08-11T22:56:21+02:00</updated>

		<published>2011-08-11T22:56:21+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19311#p19311</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19311#p19311"/>
		<title type="html"><![CDATA[Re: USB communication problems with ATmega8 (4nes4snes-adapter)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19311#p19311"><![CDATA[
The crystal is 12 MHz on the dot. If I choose a crystal with 16 MHz, wouldnt it too have deviations?  A higher clock than 16 MHz is not supported by the ATmega8-16, is there a way to slow a faster clock down to 12 MHz?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5574">Gizmoomzig</a> — Thu Aug 11, 2011 10:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2011-08-09T15:32:10+02:00</updated>

		<published>2011-08-09T15:32:10+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19286#p19286</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19286#p19286"/>
		<title type="html"><![CDATA[Re: USB communication problems with ATmega8 (4nes4snes-adapter)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19286#p19286"><![CDATA[
Is the Cristal 12mhz on the dot, the simplest deviation will cause your issue. I would certainly try another, i use HC-49S.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Tue Aug 09, 2011 3:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gizmoomzig]]></name></author>
		<updated>2011-08-08T21:17:47+02:00</updated>

		<published>2011-08-08T21:17:47+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19275#p19275</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19275#p19275"/>
		<title type="html"><![CDATA[Re: USB communication problems with ATmega8 (4nes4snes-adapter)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19275#p19275"><![CDATA[
I started with the exact hex-file but it too does not work.<br />The parts are exactly the same. In the documentation it says <blockquote class="uncited"><div>C2, C3: 27 pf capacitors. If the crystal datasheet recommends another value, use it instead.&quot;</div></blockquote> but the datasheet of the Crystal refers to a load capacitance ranging from 5pF ~ 50pF and a shunt capacitance of max. 7pF. I acutally dont know if the capacitors are choosen correct or if I should take different ones.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5574">Gizmoomzig</a> — Mon Aug 08, 2011 9:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2011-08-05T06:49:30+02:00</updated>

		<published>2011-08-05T06:49:30+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19250#p19250</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19250#p19250"/>
		<title type="html"><![CDATA[Re: USB communication problems with ATmega8 (4nes4snes-adapter)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19250#p19250"><![CDATA[
Have you tried to burn his exact hex file? Do you have the exact bill of parts ( any differences, out side the caps you mentioned )<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Fri Aug 05, 2011 6:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gizmoomzig]]></name></author>
		<updated>2011-08-05T01:09:10+02:00</updated>

		<published>2011-08-05T01:09:10+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19248#p19248</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19248#p19248"/>
		<title type="html"><![CDATA[Re: USB communication problems with ATmega8 (4nes4snes-adapter)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5901&amp;p=19248#p19248"><![CDATA[
Thanks for the reply.<br />Im normally using Linux but also have a Windows system at hand to try it out.<br /><br />usbLyzer tells me that the enumeration of the device failed.<br />PnP properties:<br /><div class="codebox"><p>Code: </p><pre><code>Description:   Unbekanntes Gerät<br />Instance Status:   01806000h    DN_DISABLEABLE<br />                               DN_REMOVABLE<br />                               DN_NT_ENUMERATOR<br />                               DN_NT_DRIVER<br />Instance ID:                   USB\VID_0000&amp;PID_0000\5&amp;2F2EFA25&amp;0&amp;2<br />Hardware IDs:                   USB\UNKNOWN<br />Compatible IDs:                   USB\UNKNOWN<br />Service Name:   <br />Setup Class:                   USB<br />Setup Class Description:   USB-Controller<br />Setup Class GUID:           {36fc9e60-c465-11cf-8056-444553540000}<br />Software Key:                   {36fc9e60-c465-11cf-8056-444553540000}\0037<br />Manufacturer:                   (Standard-USB-Hostcontroller)<br />Friendly Name:   <br />Hardware Location:           Port_#0002.Hub_#0005<br />PDO Name:                     \Device\USBPDO-12<br /></code></pre></div><br /><br />As Windows reports an unknown device to PnP, it seems that its timed out on the port reset. (<a href="http://blogs.msdn.com/b/usbcoreblog/archive/2009/10/31/how-does-usb-stack-enumerate-a-device.aspx" class="postlink">http://blogs.msdn.com/b/usbcoreblog/archive/2009/10/31/how-does-usb-stack-enumerate-a-device.aspx</a>). I dont know why it isnt responding nor how to resolve the issue.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5574">Gizmoomzig</a> — Fri Aug 05, 2011 1:09 am</p><hr />
]]></content>
	</entry>
	</feed>
