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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-03-23T19:42:40+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-03-23T19:42:40+02:00</updated>

		<published>2008-03-23T19:42:40+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1313&amp;p=4758#p4758</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1313&amp;p=4758#p4758"/>
		<title type="html"><![CDATA[PowerSwitch problem]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1313&amp;p=4758#p4758"><![CDATA[
OK,the problem has been solved.<br />The error has occurred because I use the USB circuit from EayLogger.<br />Now I use 3.3V regulator instead using 3.6V zener.It works fine.<p>Statistics: Posted by Guest — Sun Mar 23, 2008 7:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-03-23T13:18:38+02:00</updated>

		<published>2008-03-23T13:18:38+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1313&amp;p=4754#p4754</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1313&amp;p=4754#p4754"/>
		<title type="html"><![CDATA[PowerSwitch problem]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1313&amp;p=4754#p4754"><![CDATA[
I have modified PowerSwitch source code to use with ATtiny45 and written host computer with Delphi 6 which I have downloaded and modified from <!-- m --><a class="postlink" href="http://www.mydarc.de/dg8saq/AVR-USB/">http://www.mydarc.de/dg8saq/AVR-USB/</a><!-- m --><br />The source I use to toggle a LED on PortB 1.<br />Every thing OK except when I send a command from computer to toggle LED, the error has occurred every time after third or forth toggle.<br />Error =&gt; <strong class="text-strong">Could not find USB device &quot;PowerSwitch&quot; with vid=$16c0 and pid=$5dc!</strong><br /><br /><br />Here is the source code that I suppose it was caused the problem.<br />Why I think so?<br />If I comment all lines that involve PORTB.It works fine.But,if I remove comments it doesn't work, and I got a problem mentioned above. <br /><div class="codebox"><p>Code: </p><pre><code>else if&#40;rq-&gt;bRequest == 1&#41;&#123;             // use usbFunctionWrite to transfer len bytes to DDS       <br />       <br />      if&#40;toggle&#41;&#123;<br />              PORTB |= 1 &lt;&lt; BIT_LED;      /* LED on */<br />       &#125;else&#123;<br />              PORTB &amp;= ~&#40;1 &lt;&lt; BIT_LED&#41;;   /* LED off */<br />      &#125;<br />      toggle = ~toggle;<br />      return 0;<br />               <br />   &#125;</code></pre></div><br /><br />Sorry for my English.<p>Statistics: Posted by Guest — Sun Mar 23, 2008 1:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
