<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tobi's Corner &#187; T6963</title>
	<atom:link href="http://tobiscorner.floery.net/tag/t6963/feed" rel="self" type="application/rss+xml" />
	<link>http://tobiscorner.floery.net</link>
	<description>... the electronix portal</description>
	<lastBuildDate>Tue, 22 Jun 2010 06:54:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>About wait states</title>
		<link>http://tobiscorner.floery.net/projects/openwrt/about-wait-states/99</link>
		<comments>http://tobiscorner.floery.net/projects/openwrt/about-wait-states/99#comments</comments>
		<pubDate>Mon, 19 Mar 2007 22:30:16 +0000</pubDate>
		<dc:creator>theFloe</dc:creator>
				<category><![CDATA[OpenWRT]]></category>
		<category><![CDATA[Asus]]></category>
		<category><![CDATA[T6963]]></category>

		<guid isPermaLink="false">http://tobiscorner.floery.net/?p=99</guid>
		<description><![CDATA[For some time I&#8217;m struggling with the external Interface of ASUS WL-HDD Router models. I&#8217;m now trying to connect a T6963 based LCD. This failed because of the speed of the external bus. So I searched the linux code and found the initialization in sbmips.c under linux/arch/mips32/bcm47xxx/sbmips.c. I copied the code to my module and [...]]]></description>
			<content:encoded><![CDATA[<p>For some time I&#8217;m struggling with the external Interface of ASUS WL-HDD Router models.</p>
<p>I&#8217;m now trying to connect a T6963 based LCD. This failed because of the speed of the external bus. So I searched the linux code and found the initialization in sbmips.c under linux/arch/mips32/bcm47xxx/sbmips.c.<span id="more-99"></span></p>
<p>I copied  the code to my module and build a function to slow down the speed:</p>
<pre>static void extif_slowDown()  {
ulong hz,ns,tmp;
extifregs_t *eir;

if ((hz = sb_clock(sbh)) == 0)
hz = 100000000;
ns = 1000000000 / hz;

if ((eir = sb_setcore(sbh, SB_EXTIF, 0))) {
tmp = CEIL(1, ns) &lt; &lt; FW_W3_SHIFT;
tmp = tmp | (CEIL(1,ns) &lt;&lt; FW_W2_SHIFT);
tmp = tmp | (CEIL(200, ns) &lt;&lt; FW_W1_SHIFT);
tmp = tmp | CEIL(240, ns);
W_REG(&amp;eir-&gt;prog_waitcount, tmp);
}
}</pre>
<p>I had no clue what those parameters are for. For a first test the old values where doubled. Using a oscilloscope I could figure out 2 values:</p>
<table border="0">
<tbody>
<tr>
<td><a title="bild1.png" rel="attachment wp-att-100" href="http://tobiscorner.floery.net/projects/openwrt/about-wait-states/99/bild1png/"><img src="http://tobiscorner.floery.net/wp-content/bild1.thumbnail.png" border="0" alt="bild1.png" /></a></td>
<td><a title="bild2.png" rel="attachment wp-att-101" href="http://tobiscorner.floery.net/projects/openwrt/about-wait-states/99/bild2png/"><img src="http://tobiscorner.floery.net/wp-content/bild2.thumbnail.png" border="0" alt="bild2.png" /></a></td>
<td><a title="bild3.png" rel="attachment wp-att-102" href="http://tobiscorner.floery.net/projects/openwrt/about-wait-states/99/bild3png/"><img src="http://tobiscorner.floery.net/wp-content/bild3.thumbnail.png" border="0" alt="bild3.png" /></a></td>
</tr>
<tr>
<td>W3 = 40ns<br />
W2 = 40ns<br />
W1 = 100ns<br />
W0 = 200ns</td>
<td>W3 = 100ns<br />
W2 = 40ns<br />
W1 = 100ns<br />
W0 = 200ns</td>
<td>W3 = 40ns<br />
W2 = 100ns<br />
W1 = 100ns<br />
W0 = 200ns</td>
</tr>
</tbody>
</table>
<p>The upper signal is the /CS line and the lower the /WR line.  As you can see W3 defines the time from /WR high to /CS high, while W2 defines the time from /CS low to /RD low. What W1 and W0 are for I can only guess. The total low time of /CS increases with W0 but for W1 I coudn&#8217;t find a change (maybe it&#8217;s a timing value for reading from the interface).</p>
<p>I&#8217;m now playing with the timing parameters and looking what the LCD will display. Sometimes I can ge something on it and sometimes not.  I think I got the writing timing correct but reading to check the status bits is not in time&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://tobiscorner.floery.net/projects/openwrt/about-wait-states/99/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>avrTer</title>
		<link>http://tobiscorner.floery.net/projects/avr/misc-avr/avrter/48</link>
		<comments>http://tobiscorner.floery.net/projects/avr/misc-avr/avrter/48#comments</comments>
		<pubDate>Sun, 12 Nov 2006 10:40:25 +0000</pubDate>
		<dc:creator>theFloe</dc:creator>
				<category><![CDATA[misc AVR]]></category>
		<category><![CDATA[AVR]]></category>
		<category><![CDATA[LCD]]></category>
		<category><![CDATA[T6963]]></category>

		<guid isPermaLink="false">http://www.floery.net/tobiscorner/?p=48</guid>
		<description><![CDATA[AVRTer is not only a Terminal Emulation for AVR, it&#8217;s a Terminal build with an AVR. The Terminal is build with an ATMega8 and a 640x240px GLCD. The Terminal can be used as a RS232 debugger.The Display Routines are from Holger Klabunde. Have a look at his Webpage: http://www.holger-klabunde.de/ The Keyboard routines are based on [...]]]></description>
			<content:encoded><![CDATA[<p>AVRTer is not only a Terminal Emulation for AVR, it&#8217;s a Terminal build with an AVR.</p>
<p style="text-align: center"><img id="image45" src="http://www.floery.net/tobiscorner/wp-content/avrter1.jpg" alt="avrTer 1" width="400" /></p>
<p style="text-align: center"><img id="image46" src="http://www.floery.net/tobiscorner/wp-content/avrter2.jpg" alt="avrTer 2" width="400" /></p>
<p style="text-align: center"><img id="image47" src="http://www.floery.net/tobiscorner/wp-content/avrter3.jpg" alt="avrTer 3" width="400" /></p>
<p>The Terminal is build with an ATMega8 and a 640x240px GLCD. The Terminal can be used as a RS232 debugger.The Display Routines are from Holger Klabunde. Have a look at his Webpage: <a title="http://www.holger-klabunde.de/" href="http://www.holger-klabunde.de/" target="_blank">http://www.holger-klabunde.de/</a></p>
<p>The Keyboard routines are based on the ATMEL Application Note AVR313 and written by V. Brajer.</p>
<p>The ascii logo has been generated using this <a href="http://www.network-science.de/ascii/" target="_blank">online ascii-generator</a>.</p>
<p><strong>Downloads:</strong></p>
<ul>
<li><a id="p44" href="http://www.floery.net/tobiscorner/wp-content/avrter.zip">avrTer Sourcecode</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tobiscorner.floery.net/projects/avr/misc-avr/avrter/48/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
