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

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

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2009-04-11T18:44:13+02:00</updated>

		<published>2009-04-11T18:44:13+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2427&amp;p=8853#p8853</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2427&amp;p=8853#p8853"/>
		<title type="html"><![CDATA[Re: Patch for AVRDOPER HVSP mode]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2427&amp;p=8853#p8853"><![CDATA[
Thanks for the patch! This will be in the next release of AVR-Doper.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Sat Apr 11, 2009 6:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2009-03-24T23:27:30+02:00</updated>

		<published>2009-03-24T23:27:30+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2427&amp;p=8471#p8471</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2427&amp;p=8471#p8471"/>
		<title type="html"><![CDATA[Patch for AVRDOPER HVSP mode]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2427&amp;p=8471#p8471"><![CDATA[
Hi,<br /><br />I noticed that AVRDOPER had some problems on programming some TINY13 chips that I was able to program using my STK500 without errors. When using the AVRDROPER, programming worked fine but I got verify errors on various bytes.<br /><br /> I checked the programming sequence and found that some clock pulses are below the minimum of 220ns given in the datasheet. So I changed hvprog.c and added some nop's to get correct clock pulses. With that modification, all of my TINY13s could be programmed without any errors.<br /><br />Regards,<br />Sebastian<br /><br />Patch:<br /><br />--------8&lt;-------------<br />--- firmware/hvprog.c   2008-11-27 11:02:29.000000000 +0100<br />+++ firmware/hvprog.c.new       2009-03-22 02:19:55.000000000 +0100<br />@@ -105,6 +105,9 @@<br />     PORT_OUT(HWPIN_HVSP_SII) = port;<br />     PORT_PIN_SET(HWPIN_HVSP_SCI);<br />     cnt = 8;<br />+        /* waste some time for better timing accuracy */<br />+    asm volatile(&quot;nop&quot; ::);<br />+    asm volatile(&quot;nop&quot; ::);<br />+    asm volatile(&quot;nop&quot; ::);<br />     PORT_PIN_CLR(HWPIN_HVSP_SCI);<br />     do{<br />         r &lt;&lt;= 1;<br />@@ -119,13 +122,28 @@<br />         port &amp;= ~((1&lt;&lt;PORT_BIT(HWPIN_HVSP_SII)) | (1&lt;&lt;PORT_BIT(HWPIN_HVSP_SDI)));<br />         ctlLines &lt;&lt;= 1;<br />         data &lt;&lt;= 1;<br />+        asm volatile(&quot;nop&quot; ::);<br />+        asm volatile(&quot;nop&quot; ::);<br />         PORT_PIN_CLR(HWPIN_HVSP_SCI);<br />     }while(--cnt);<br />     PORT_OUT(HWPIN_HVSP_SII) = port;<br />     /* clock out two zeros */<br />     PORT_PIN_SET(HWPIN_HVSP_SCI);<br />+        asm volatile(&quot;nop&quot; ::);<br />+        asm volatile(&quot;nop&quot; ::);<br />+        asm volatile(&quot;nop&quot; ::);<br />     PORT_PIN_CLR(HWPIN_HVSP_SCI);<br />+        asm volatile(&quot;nop&quot; ::);<br />+        asm volatile(&quot;nop&quot; ::);<br />+        asm volatile(&quot;nop&quot; ::);<br />     PORT_PIN_SET(HWPIN_HVSP_SCI);<br />+        asm volatile(&quot;nop&quot; ::);<br />+        asm volatile(&quot;nop&quot; ::);<br />+        asm volatile(&quot;nop&quot; ::);<br />     PORT_PIN_CLR(HWPIN_HVSP_SCI);<br />     return r;<br /> }<p>Statistics: Posted by Guest — Tue Mar 24, 2009 11:27 pm</p><hr />
]]></content>
	</entry>
	</feed>
