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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2009-06-11T09:06:00+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Esmeralda]]></name></author>
		<updated>2009-06-11T09:06:00+02:00</updated>

		<published>2009-06-11T09:06:00+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1803&amp;p=9749#p9749</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=9749#p9749"/>
		<title type="html"><![CDATA[Re: [SOLVED] ATmega32 is failing to receive the address]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=9749#p9749"><![CDATA[
thanks a lot...u people really solved my problem<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2380">Esmeralda</a> — Thu Jun 11, 2009 9:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2008-10-17T02:49:24+02:00</updated>

		<published>2008-10-17T02:49:24+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6449#p6449</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6449#p6449"/>
		<title type="html"><![CDATA[Re: About the resistance of the pulling up]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6449#p6449"><![CDATA[
<blockquote><div><cite>apollononnno wrote:</cite>Is the arrangement of 2 and 3 of USBCONN in the circuit of &quot;circuit.jpg&quot; right?</div></blockquote><br /><br />It just works. <img class="smilies" src="./../../../images/smilies/icon_razz.gif" alt=":P" title="Razz" /><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Fri Oct 17, 2008 2:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[apollononnno]]></name></author>
		<updated>2008-10-16T13:21:19+02:00</updated>

		<published>2008-10-16T13:21:19+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6446#p6446</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6446#p6446"/>
		<title type="html"><![CDATA[About the resistance of the pulling up]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6446#p6446"><![CDATA[
I tried it about 5V and the resistance value of the pulling up how many it was. <br />A method to join LED and 1.5kohm with a voltage descent of 1.7v together in series from 5v in that. <br />Pass 2.2kohm from 5v, and connect 5.1kohm to GND; and a method to connect to D- through 1.2kohm from a point pushed by just that much. <br />They got a good result. <br /><br />If there is it only about pulling up, it is settled by a comparatively simple method. <br /><br />However, there is zener diode of 3.6V to clamp it to 3.3V when I consider an avr drive signal of 5v. <br /><br />However, the part cannot expect the normal movement if I clamp it with the lower voltage in a low current domain when, for example, it is lower than 2.7v.<br /><br />Is the arrangement of 2 and 3 of USBCONN in the circuit of &quot;circuit.jpg&quot; right?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1231">apollononnno</a> — Thu Oct 16, 2008 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2008-10-16T02:55:57+02:00</updated>

		<published>2008-10-16T02:55:57+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6443#p6443</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6443#p6443"/>
		<title type="html"><![CDATA[[SOLVED] ATmega32 is failing to receive the address]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6443#p6443"><![CDATA[
Good to know for future designs.<br />I have read somewhere here in this forum about the low responde and big current with 1 W zenners.<br /><br />But the zenners in the schematics are not what i used i just picked the first 3.6V zenner that i found, i should remove the partid from the schematic.<br /><br />The zenners that i have actually buyed are<br />BZX55C 3.6V<br />in the same 1N4148 package. and should be 500mW because i asked for it, jeje. And thoose in the schematics are not selled here.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Thu Oct 16, 2008 2:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Grendel]]></name></author>
		<updated>2008-10-16T00:10:36+02:00</updated>

		<published>2008-10-16T00:10:36+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6439#p6439</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6439#p6439"/>
		<title type="html"><![CDATA[[SOLVED] ATmega32 is failing to receive the address]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6439#p6439"><![CDATA[
A plain 1N4729A seems to be a 1W diode, these have proven in the past to cause problems. Try using a 1N5227B-T or any 3.6V Z diode w/ 500mW max. power spec.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=101">Grendel</a> — Thu Oct 16, 2008 12:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2008-10-15T20:35:34+02:00</updated>

		<published>2008-10-15T20:35:34+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6437#p6437</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6437#p6437"/>
		<title type="html"><![CDATA[[SOLVED] ATmega32 is failing to receive the address]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6437#p6437"><![CDATA[
jajajjaja.<br /><br />I mean that to test AVR-USB with certain uC, &quot;minimalistic&quot; is the minimum code required, or at least not bloated.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Wed Oct 15, 2008 8:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gert]]></name></author>
		<updated>2008-10-15T19:49:55+02:00</updated>

		<published>2008-10-15T19:49:55+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6436#p6436</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6436#p6436"/>
		<title type="html"><![CDATA[[SOLVED] ATmega32 is failing to receive the address]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6436#p6436"><![CDATA[
Hi epsilon_da<br /><br />what  do you mean with &quot;minimalistic code&quot;? Could it be that you never opened the folder usbdrv? <br /><br />/Gert<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=509">gert</a> — Wed Oct 15, 2008 7:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2008-10-15T17:14:23+02:00</updated>

		<published>2008-10-15T17:14:23+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6434#p6434</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6434#p6434"/>
		<title type="html"><![CDATA[[SOLVED] ATmega32 is failing to receive the address]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6434#p6434"><![CDATA[
Finally after a good night of sleeping, i have solved the problem.<br /><br />It was that i was using an updated version of the driver (usbdrv folder) with an old version of usbconfig copied from HIDKeys.<br /><br />I discovered that by copying the usbconfig template and setting a minimalitic vendor hardware. (the same as above but without the report).<br /><br />Now it worked perfectly with 12 Mhz and with 16 Mhz.<br /><br /><br /><br />Now i would like to know why a so minimalistic code gives 1600 bytes of programm memory. I am using ATmega32 and i have already 2.5k used.<br /><br />Can it be the compiler? or is the natural size of AVR-USB?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Wed Oct 15, 2008 5:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2008-10-15T05:06:54+02:00</updated>

		<published>2008-10-15T05:06:54+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6431#p6431</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6431#p6431"/>
		<title type="html"><![CDATA[[SOLVED] ATmega32 is failing to receive the address]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6431#p6431"><![CDATA[
Please note that i am new to atmel products and the FUSEs concept is very new to me. It is possible that i am burnning wrong the fuses, but i dont think so:<br /><br />FUSE Calculator: <!-- m --><a class="postlink" href="http://www.engbedded.com/cgi-bin/fc.cgi/">http://www.engbedded.com/cgi-bin/fc.cgi/</a><!-- m --> <br />FUSEs:  H:0xC9  L:0xEF<br /><br /><br /><br /><br />I have read in this forum about a serial debugging method.<br />But i dont know how to do it.<br />Can somebody point me to some instructions?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Wed Oct 15, 2008 5:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2008-10-15T04:48:01+02:00</updated>

		<published>2008-10-15T04:48:01+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6430#p6430</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6430#p6430"/>
		<title type="html"><![CDATA[[SOLVED] ATmega32 is failing to receive the address]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1803&amp;p=6430#p6430"><![CDATA[
Seems like ATmega32 is incompatible with AVRusb<br /><br />I have shrinked it down a LOT, to the tiniest possible expression of AVRusb for ATmega32.<br /><br /><img src="http://jacobidiego.googlepages.com/circuit.jpg" class="postimage" alt="Image" /><br /><br /><br /><div class="codebox"><p>Code: </p><pre><code>/* <br />** FUSE Calculator: http://www.engbedded.com/cgi-bin/fc.cgi/<br />** FUSEs:  H:0xC9  L:0xEF<br />**     avrdude -c usbasp -p atmega32 -u -U hfuse:w:0xC9:m -U lfuse:w:0xEF:m<br />** For burnning:<br />**   avrdude -c usbasp -p atmega32 -U flash:w:default/USBLogger.hex<br />*/<br /><br /><br />#define F_CPU   12000000L<br /><br />#include &quot;usbconfig.h&quot;<br /><br />//=============================================================================<br />// USB interface port and bits<br />#define USB_MASK &#40;&#40;1&lt;&lt;USB_CFG_DPLUS_BIT&#41; | &#40;1&lt;&lt;USB_CFG_DMINUS_BIT&#41;&#41; // mask for USB I/O bits<br /><br />#define USB_CFG_CLOCK_KHZ       12000//&#40;F_CPU/1000&#41;<br />#define USB_CFG_DEVICE_NAME     'H', 'I', 'D', 'K', 'e', 'y', 's'<br />#define USB_CFG_DEVICE_NAME_LEN 7<br />//#define USB_PULLUP_CONTROL<br />#ifndef USB_PULLUP_CONTROL<br /> #define USB_CFG_IOPORTNAME          D<br /> //#define USB_CFG_DMINUS_BIT          6<br /> //#define USB_CFG_DPLUS_BIT           2<br /> #define USB_CFG_DMINUS_BIT          3<br /> #define USB_CFG_DPLUS_BIT           2<br /><br /> #define usbDeviceConnect&#40;&#41;<br /> #define usbDeviceDisconnect&#40;&#41;<br />#else<br /> #define USB_CFG_IOPORTNAME          D<br /> #define USB_CFG_DMINUS_BIT          6<br /> #define USB_CFG_DPLUS_BIT           2<br /> #define USB_CFG_PULLUP_IOPORTNAME   D<br /> #define USB_CFG_PULLUP_BIT          7<br />#endif<br /><br /><br />#include &lt;avr/interrupt.h&gt;<br />#include &lt;avr/pgmspace.h&gt;<br />#include &lt;avr/wdt.h&gt;            // WatchDog<br />#include &lt;util/delay.h&gt;         // _delay_ms&#40;&#41;<br /><br />#include &quot;usbdrv.h&quot;            // AVR-USB driver<br />#include &quot;oddebug.h&quot;         // AVR-USB driver DEBUG<br /><br />//==========================================================================<br />//=========================== AVR-USB Configuration &#40;HID Descriptor&#41; =======<br />//==========================================================================<br />PROGMEM char usbHidReportDescriptor&#91;35&#93; = &#123; /* USB report descriptor */<br />    0x05, 0x01,                    // USAGE_PAGE &#40;Generic Desktop&#41;<br />    0x09, 0x06,                    // USAGE &#40;Keyboard&#41;<br />    0xa1, 0x01,                    // COLLECTION &#40;Application&#41;<br />    0x05, 0x07,                    //   USAGE_PAGE &#40;Keyboard&#41;<br />    0x19, 0xe0,                    //   USAGE_MINIMUM &#40;Keyboard LeftControl&#41;<br />    0x29, 0xe7,                    //   USAGE_MAXIMUM &#40;Keyboard Right GUI&#41;<br />    0x15, 0x00,                    //   LOGICAL_MINIMUM &#40;0&#41;<br />    0x25, 0x01,                    //   LOGICAL_MAXIMUM &#40;1&#41;<br />    0x75, 0x01,                    //   REPORT_SIZE &#40;1&#41;<br />    0x95, 0x08,                    //   REPORT_COUNT &#40;8&#41;<br />    0x81, 0x02,                    //   INPUT &#40;Data,Var,Abs&#41;<br />    0x95, 0x01,                    //   REPORT_COUNT &#40;1&#41;<br />    0x75, 0x08,                    //   REPORT_SIZE &#40;8&#41;<br />    0x25, 0x65,                    //   LOGICAL_MAXIMUM &#40;101&#41;<br />    0x19, 0x00,                    //   USAGE_MINIMUM &#40;Reserved &#40;no event indicated&#41;&#41;<br />    0x29, 0x65,                    //   USAGE_MAXIMUM &#40;Keyboard Application&#41;<br />    0x81, 0x00,                    //   INPUT &#40;Data,Ary,Abs&#41;<br />    0xc0                           // END_COLLECTION<br />&#125;;<br /><br />uchar usbFunctionSetup&#40;uchar setupData&#91;8&#93;&#41;<br />&#123;<br />    return 0;   /* default for not implemented requests: return no data back to host */ <br />&#125; <br /><br />int main&#40;void&#41; <br />&#123; <br />    uint8_t i; <br /><br />    wdt_enable&#40;WDTO_1S&#41;; <br />    <br />    DDRD  = 0;      // all USB and ISP pins inputs<br />    PORTD = 0;      // No Pullups<br /><br />    DDRC = 0xFC;    // PortC &#40;LEDs&#41;: outputs 1111 1100<br />    PORTC = 0xF0;   // Turn on LEDs<br /><br />    usbDeviceDisconnect&#40;&#41;;  /* enforce re-enumeration, do this while interrupts are disabled! */ <br />    i = 150; <br />    while&#40;--i&#41;&#123;             /* fake USB disconnect for &gt; 250 ms */ <br />       wdt_reset&#40;&#41;; <br />      _delay_ms&#40;1&#41;; <br />    &#125; <br />   usbDeviceConnect&#40;&#41;; <br /><br />   usbInit&#40;&#41;; <br />   sei&#40;&#41;; <br /><br />   for&#40;;;&#41;&#123;                /* main event loop */ <br />       wdt_reset&#40;&#41;; <br />       usbPoll&#40;&#41;; <br />   &#125; <br />&#125;<br /></code></pre></div><br /><br /><br />And also the vector table:<br /><br /><blockquote class="uncited"><div>USBLogger.elf:     file format elf32-avr<br /><br />Disassembly of section .text:<br /><br />00000000 &lt;__vectors&gt;:<br />   0:0c 94 69 00 jmp0xd2; 0xd2 &lt;__ctors_end&gt;<br />   4:0c 94 0d 02 jmp0x41a; 0x41a &lt;__vector_1&gt;<br />   8:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />   c:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  10:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  14:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  18:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  1c:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  20:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  24:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  28:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  2c:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  30:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  34:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  38:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  3c:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  40:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  44:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  48:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  4c:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br />  50:0c 94 86 00 jmp0x10c; 0x10c &lt;__bad_interrupt&gt;<br /></div></blockquote><br /><br /><br />Al seems perfect to me.<br />The circuit is made in a protoboard with a premade usb cable with the resistors and zenners soldered.<br />I have eliminated the a possible failure with the cable by connecting the ATmega8 of my programmer to the protoboard and the USB cable, and it logged perfectly.<br /><br />I have used a crystal of 16 Mhz at the beginning but now i have a 12 Mhz crystal and is also not working.<br /><br />If somebody have any idea, please shoot quickly before i deside to buy another atmega8. (none are cheap in my country).<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Wed Oct 15, 2008 4:48 am</p><hr />
]]></content>
	</entry>
	</feed>
