<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Program-Programku</title>
	<atom:link href="http://ayamid.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ayamid.wordpress.com</link>
	<description>My Experience programming RabbitCore 2200. By Prasaja Wikanta.</description>
	<lastBuildDate>Thu, 16 Apr 2009 14:15:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ayamid.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Program-Programku</title>
		<link>http://ayamid.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ayamid.wordpress.com/osd.xml" title="Program-Programku" />
	<atom:link rel='hub' href='http://ayamid.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Mengatasi Out of Memory di RabbitCore 2200</title>
		<link>http://ayamid.wordpress.com/2008/02/21/mengatasi-out-of-memory-di-rabbitcore-2200/</link>
		<comments>http://ayamid.wordpress.com/2008/02/21/mengatasi-out-of-memory-di-rabbitcore-2200/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 08:06:06 +0000</pubDate>
		<dc:creator>ayamid</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[rabbit]]></category>

		<guid isPermaLink="false">http://ayamid.wordpress.com/?p=17</guid>
		<description><![CDATA[Kadangkala kita membutuhkan array yang besar. Namun ketika di-compile, ternyata muncul pesan ukuran array terlalu besar. Cara paling sederhana untuk mengatasinya adalah masuk ke file menu Options &#62; Project Options. Klik tab Compiler, kemudian aktifkan Enable Separate Instruction and Dataspaces. Beberapa cara lain ada di http://www.rabbit.com/support/bb/messages/14/737.html?1015263495 dan di http://www.rabbit.com/documentation/docs/refs/TN219/TN219.htm<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=17&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Kadangkala kita membutuhkan array yang besar. Namun ketika di-compile, ternyata muncul pesan ukuran array terlalu besar.</p>
<p>Cara paling sederhana untuk mengatasinya adalah masuk ke file menu Options &gt; Project Options. Klik tab Compiler, kemudian aktifkan Enable Separate Instruction and Dataspaces.</p>
<p><a href="http://ayamid.files.wordpress.com/2008/02/separate_instruction.png" title="RabbitTambahMemory"><img src="http://ayamid.files.wordpress.com/2008/02/separate_instruction.png?w=500" alt="RabbitTambahMemory" /></a></p>
<p>Beberapa cara lain ada di <a href="http://www.rabbit.com/support/bb/messages/14/737.html?1015263495"><br />
http://www.rabbit.com/support/bb/messages/14/737.html?1015263495</a>   dan di <a href="http://www.rabbit.com/documentation/docs/refs/TN219/TN219.htm">http://www.rabbit.com/documentation/docs/refs/TN219/TN219.htm</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ayamid.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ayamid.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ayamid.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ayamid.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ayamid.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ayamid.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ayamid.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ayamid.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ayamid.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ayamid.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ayamid.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ayamid.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ayamid.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ayamid.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ayamid.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ayamid.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=17&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ayamid.wordpress.com/2008/02/21/mengatasi-out-of-memory-di-rabbitcore-2200/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd6eacacea77ac9ee88e2e47cb257fe6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Antok</media:title>
		</media:content>

		<media:content url="http://ayamid.files.wordpress.com/2008/02/separate_instruction.png" medium="image">
			<media:title type="html">RabbitTambahMemory</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Server di RabbitCore 2200</title>
		<link>http://ayamid.wordpress.com/2008/01/18/webserver-di-rabbitcore-2200/</link>
		<comments>http://ayamid.wordpress.com/2008/01/18/webserver-di-rabbitcore-2200/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 10:24:28 +0000</pubDate>
		<dc:creator>ayamid</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[rabbit]]></category>

		<guid isPermaLink="false">http://ayamid.wordpress.com/2008/01/18/webserver-di-rabbitcore-2200/</guid>
		<description><![CDATA[Untuk membuat web server paling sederhana di RabbitCore, anda dapat menggunakan program di bawah ini. IP Address dapat kita ganti di file lib/tcpip/tcp_config.lib Nah, ximport berfungsi untuk meng-include file-file html, atau file jenis lain yang disediakan oleh web server kita. Misalnya file gambar, file ssi, dll. Dalam program di bawah misalnya nama file html-nya adalah [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=15&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> Untuk membuat web server paling sederhana di RabbitCore, anda dapat menggunakan program di bawah ini. IP Address dapat kita ganti di file lib/tcpip/tcp_config.lib</p>
<p>Nah, ximport berfungsi untuk meng-include file-file html, atau file jenis lain yang disediakan oleh web server kita. Misalnya file gambar, file ssi, dll.  Dalam program di bawah misalnya nama file html-nya adalah static.html. Buat static.html dengan menggunakan notepad atau frontpage atau dreamweaver dll.<br />
<span id="more-15"></span></p>
<p>Koneksikan rabbit ke hub (straight through UTP cable) atau langsung ke komputer (crossover UTP cable). Akses rabbit dengan menggunakan web browser. Masukkan IP Address yang sudah anda set ke URL browser.</p>
<blockquote><p>#class auto</p>
<p>/*<br />
ganti ip address di lib/tcpip/tcp_config.lib.<br />
*/</p>
<p>#define TCPCONFIG 1<br />
#memmap xmem<br />
#use &#8220;dcrtcp.lib&#8221;<br />
#use &#8220;http.lib&#8221;</p>
<p>#ximport &#8220;static.html&#8221;    index_html</p>
<p>#define TCP_BUF_SIZE 2048</p>
<p>#define HTTP_MAXSERVERS 2<br />
#define MAX_TCP_SOCKET_BUFFERS 2</p>
<p>void main()<br />
{</p>
<p>sock_init();<br />
http_init();</p>
<p>tcp_reserveport(80);</p>
<p>while (1) {<br />
http_handler();<br />
}<br />
}</p></blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ayamid.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ayamid.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ayamid.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ayamid.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ayamid.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ayamid.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ayamid.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ayamid.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ayamid.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ayamid.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ayamid.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ayamid.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ayamid.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ayamid.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ayamid.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ayamid.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=15&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ayamid.wordpress.com/2008/01/18/webserver-di-rabbitcore-2200/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd6eacacea77ac9ee88e2e47cb257fe6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Antok</media:title>
		</media:content>
	</item>
		<item>
		<title>I2C di RabbitCore 2200</title>
		<link>http://ayamid.wordpress.com/2008/01/01/i2c-di-rabbitcore-2200/</link>
		<comments>http://ayamid.wordpress.com/2008/01/01/i2c-di-rabbitcore-2200/#comments</comments>
		<pubDate>Tue, 01 Jan 2008 02:45:37 +0000</pubDate>
		<dc:creator>ayamid</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[rabbit]]></category>
		<category><![CDATA[RabbitCore 2200]]></category>

		<guid isPermaLink="false">http://ayamid.wordpress.com/2008/01/01/i2c-di-rabbitcore-2200/</guid>
		<description><![CDATA[Jaman sekarang, semua IC penting sudah ada versi yang menggunakan I2C, karena lebih menghemat pin. Secara umum, kita hanya butuh 2 pin untuk SDA dan SCL.  Berikut adalah snippet fungsi-fungsi yang dapat digunakan untuk komunikasi I2C, dengan susunan koneksi SDA di PE5, SCL di PE4 : void i2cStart() { // kirim start (SDA high, SCL [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=14&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Jaman sekarang, semua IC penting sudah ada versi yang menggunakan <a title="I2C" href="http://www.nxp.com/products/interface_control/i2c/" target="_blank">I2C</a>, karena lebih menghemat pin. Secara umum, kita hanya butuh 2 pin untuk SDA dan SCL.  Berikut adalah snippet fungsi-fungsi yang dapat digunakan untuk komunikasi I2C, dengan susunan koneksi SDA di PE5, SCL di PE4 :</p>
<blockquote><p>void i2cStart() {<br />
// kirim start (SDA high, SCL high, SDA low, SCL low)<br />
int i;</p>
<p><span id="more-14"></span><br />
WrPortI(PEB5R, NULL, 0&#215;20);<br />
for(i=0;i&lt;1;i++) {}<br />
WrPortI(PEB4R, NULL, 0&#215;10);<br />
for(i=0;i&lt;1;i++) {}<br />
WrPortI(PEB5R, NULL, 0&#215;00);<br />
for(i=0;i&lt;1;i++) {}<br />
WrPortI(PEB4R, NULL, 0&#215;00);<br />
for(i=0;i&lt;1;i++) {}<br />
}</p>
<p>void i2cStop() {<br />
// kirim stop bit, SCL low, SDA low, SCL high, SDA high<br />
int i;<br />
WrPortI(PEB4R, NULL, 0&#215;00);<br />
for(i=0;i&lt;1;i++) {}<br />
WrPortI(PEB5R, NULL, 0&#215;00);<br />
for(i=0;i&lt;1;i++) {}<br />
WrPortI(PEB4R, NULL, 0&#215;10);<br />
for(i=0;i&lt;1;i++) {}<br />
WrPortI(PEB5R, NULL, 0&#215;20);<br />
for(i=0;i&lt;1;i++) {}<br />
}</p>
<p>void i2cKirim(int a) {<br />
int i;<br />
if(a) {<br />
WrPortI(PEB5R, NULL, 0&#215;20);<br />
for(i=0;i&lt;1;i++) {}<br />
WrPortI(PEB4R, NULL, 0&#215;10);<br />
for(i=0;i&lt;1;i++) {}<br />
WrPortI(PEB4R, NULL, 0&#215;00);<br />
for(i=0;i&lt;1;i++) {}<br />
} else {<br />
WrPortI(PEB5R, NULL, 0&#215;00);<br />
for(i=0;i&lt;1;i++) {}<br />
WrPortI(PEB4R, NULL, 0&#215;10);<br />
for(i=0;i&lt;1;i++) {}<br />
WrPortI(PEB4R, NULL, 0&#215;00);<br />
for(i=0;i&lt;1;i++) {}<br />
}<br />
}</p></blockquote>
<p>Penggunaan <em>for </em>di antara WrPortI tujuannya adalah untuk memberi jeda perubahan/transisi dari high low atau sebaliknya. <em>Tweaking </em>untuk jumlah perulangannya, karena ada beberapa IC yang membutuhkan jeda lebih lama. i2cStart dan i2Stop kita letakkan di awal dan akhir program, tentu saja. i2cKirim kita gunakan untuk mengirim per bit. Jadi parameter/argumen yang dipakai hanya 0 atau 1. Contoh pemakaian untuk <a title="CMP03 Magnetic Compass" href="http://www.robot-electronics.co.uk/acatalog/Compass.html">sensor kompas</a> (CMPS03 produk Devantech):</p>
<blockquote><p>WrPortI(PEDDR, &amp;PEDDRShadow, 0&#215;10 | PEDDRShadow); // PE4 sebagai Output, dipakai untuk SDL<br />
WrPortI(PEDDR, &amp;PEDDRShadow, 0&#215;20 | PEDDRShadow); // PE5 sebagai Output dulu, dipakai untuk SDA</p>
<p>// SDA high, SCL high<br />
WrPortI(PEB5R, NULL, 0&#215;20);<br />
WrPortI(PEB4R, NULL, 0&#215;10);</p>
<p>i2cStart();</p>
<p>// kirim alamat kompas, 0xC0, 11000000b<br />
i2cKirim(1);<br />
i2cKirim(1);<br />
i2cKirim(0);<br />
i2cKirim(0);<br />
i2cKirim(0);<br />
i2cKirim(0);<br />
i2cKirim(0);</p>
<p>// kirim R/W kemudian ACK<br />
i2cKirim(0);</p>
<p>WrPortI(PEDDR, &amp;PEDDRShadow, 0xdf &amp; PEDDRShadow);<br />
WrPortI(PEB4R, NULL, 0&#215;10);<br />
for(i=0;i&lt;1;i++) {}<br />
//          printf(&#8220;nunggu ACK \n&#8221;);<br />
k = 0;<br />
while(BitRdPortI(PEDR, 5)) {<br />
// CHECK UDAH KEBERAPA<br />
k++;<br />
if(k&gt;100) break;<br />
}<br />
if(k&gt;100) abort;<br />
WrPortI(PEB4R, NULL, 0&#215;00);<br />
for(i=0;i&lt;1;i++) {}<br />
//          printf(&#8220;ACK ok \n&#8221;);<br />
WrPortI(PEDDR, &amp;PEDDRShadow, 0&#215;20 | PEDDRShadow);</p>
<p>// kirim internal adress untuk arah, 00000001b<br />
i2cKirim(0);<br />
i2cKirim(0);<br />
i2cKirim(0);<br />
i2cKirim(0);<br />
i2cKirim(0);<br />
i2cKirim(0);<br />
i2cKirim(0);<br />
i2cKirim(1);</p>
<p>// tunggu ACK<br />
WrPortI(PEDDR, &amp;PEDDRShadow, 0xdf &amp; PEDDRShadow);<br />
WrPortI(PEB4R, NULL, 0&#215;10);<br />
for(i=0;i&lt;1;i++) {}<br />
//      printf(&#8220;nunggu ACK \n&#8221;);<br />
k = 0;<br />
while(BitRdPortI(PEDR, 5)) {<br />
// CHECK UDAH KEBERAPA<br />
k++;<br />
if(k&gt;100) break;<br />
}<br />
if(k&gt;100) abort;<br />
WrPortI(PEB4R, NULL, 0&#215;00);<br />
for(i=0;i&lt;1;i++) {}<br />
//      printf(&#8220;ACK ok \n&#8221;);<br />
WrPortI(PEDDR, &amp;PEDDRShadow, 0&#215;20 | PEDDRShadow);</p>
<p>// kirim start lagi (SDA high, SCL high, SDA low, SCL low)<br />
i2cStart();</p>
<p>// kirim alamat kompas, 0xC1, 11000001b<br />
i2cKirim(1);<br />
i2cKirim(1);<br />
i2cKirim(0);<br />
i2cKirim(0);<br />
i2cKirim(0);<br />
i2cKirim(0);<br />
i2cKirim(0);</p>
<p>// kirim R/W bit 1 kemudian ACK<br />
i2cKirim(1);<br />
// tunggu ACK<br />
WrPortI(PEDDR, &amp;PEDDRShadow, 0xdf &amp; PEDDRShadow);<br />
WrPortI(PEB4R, NULL, 0&#215;10);<br />
for(i=0;i&lt;1;i++) {}<br />
//      printf(&#8220;nunggu ACK \n&#8221;);<br />
k = 0;<br />
while(BitRdPortI(PEDR, 5)) {<br />
// CHECK UDAH KEBERAPA<br />
k++;<br />
if(k&gt;100) break;<br />
}<br />
if(k&gt;100) abort;<br />
WrPortI(PEB4R, NULL, 0&#215;00);<br />
for(i=0;i&lt;1;i++) {}<br />
//      printf(&#8220;ACK ok \n&#8221;);<br />
WrPortI(PEDDR, &amp;PEDDRShadow, 0&#215;20 | PEDDRShadow);</p>
<p>// ganti PE1 sebagai input<br />
WrPortI(PEDDR, &amp;PEDDRShadow, 0xdf &amp; PEDDRShadow);</p>
<p>for (j=0;j&lt;8;j++) {<br />
dataTerima = dataTerima &lt;&lt; 1;<br />
WrPortI(PEB4R, NULL, 0&#215;10);<br />
for(i=0;i&lt;1;i++) {}<br />
if (masuk[j] = BitRdPortI(PEDR, 5)) {<br />
dataTerima |= 0&#215;01;<br />
}<br />
WrPortI(PEB4R, NULL, 0&#215;00);<br />
for(i=0;i&lt;1;i++) {}<br />
}</p>
<p>// ganti PE1 sebagai output, kirim ACK<br />
WrPortI(PEDDR, &amp;PEDDRShadow, 0&#215;20 | PEDDRShadow);<br />
i2cKirim(0);</p>
<p>// kirim stop bit, SCL low, SDA low, SCL high, SDA high<br />
i2cStop();</p></blockquote>
<p>Program di atas adalah untuk membaca data arah kompas dalam 8 bit, yang disimpan di variabel dataTerima. Program mengikuti aturan I2C secara <em>strict</em>. Hanya saja saya ada masalah untuk waktu seberapa lama saya harus menunggu ACK dari <em>device </em>? Dalam program di atas, saya menggunakan <em>increment </em>variabel k mulai dari 1 s/d 100. Apabila tidak menerima ACK sampai hitungan 100, maka proses akan dimulai dari awal lagi, dari i2cStart.</p>
<p>Thanks,</p>
<p>- Prasaja Wikanta -</p>
<p>RabbitCore 2200 adalah produk <a title="Rabbit Semiconductor website" href="http://www.rabbitsemiconductor.com" target="_blank">Rabbit Semiconductor</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ayamid.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ayamid.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ayamid.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ayamid.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ayamid.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ayamid.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ayamid.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ayamid.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ayamid.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ayamid.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ayamid.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ayamid.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ayamid.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ayamid.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ayamid.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ayamid.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=14&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ayamid.wordpress.com/2008/01/01/i2c-di-rabbitcore-2200/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd6eacacea77ac9ee88e2e47cb257fe6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Antok</media:title>
		</media:content>
	</item>
		<item>
		<title>LCD di RabbitCore 2200</title>
		<link>http://ayamid.wordpress.com/2007/12/31/lcd-di-rabbitcore-2200/</link>
		<comments>http://ayamid.wordpress.com/2007/12/31/lcd-di-rabbitcore-2200/#comments</comments>
		<pubDate>Mon, 31 Dec 2007 09:03:22 +0000</pubDate>
		<dc:creator>ayamid</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[rabbit]]></category>
		<category><![CDATA[RabbitCore 2200]]></category>

		<guid isPermaLink="false">http://ayamid.wordpress.com/2007/12/31/lcd-di-rabbitcore-2200/</guid>
		<description><![CDATA[Dengan memanfaatkan Parallel Port A, kita bisa mengakses parallel LCD. Untuk menghemat kaki, selalu gunakan mode 4 bit. Atau gunakan serial LCD, yang sayangnya masih mahal. Koneksikan pin-pin LCD dengan pin-pin Port A sbb. : LCD JP5 4 3 5 4 6 2 11 5 12 6 13 7 14 8 15 1 Tentu saja, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=13&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Dengan memanfaatkan Parallel Port A, kita bisa mengakses parallel LCD. Untuk menghemat kaki, selalu gunakan mode 4 bit. Atau gunakan serial LCD, yang sayangnya masih mahal.</p>
<p>Koneksikan pin-pin LCD dengan pin-pin Port A sbb. :</p>
<table border="0" cellspacing="0" rules="none">
<tr>
<td style="border:1px solid #000000;" align="center" height="17" width="86"><b>LCD</b></td>
<td style="border:1px solid #000000;" align="center" width="86"><b>JP5</b></td>
</tr>
<tr>
<td style="border:1px solid #000000;" align="center" height="17">4</td>
<td style="border:1px solid #000000;" align="center">3</td>
</tr>
<tr>
<td style="border:1px solid #000000;" align="center" height="17">5</td>
<td style="border:1px solid #000000;" align="center">4</td>
</tr>
<tr>
<td style="border:1px solid #000000;" align="center" height="17">6</td>
<td style="border:1px solid #000000;" align="center">2</td>
</tr>
<tr>
<td style="border:1px solid #000000;" align="center" height="17">11</td>
<td style="border:1px solid #000000;" align="center">5</td>
</tr>
<tr>
<td style="border:1px solid #000000;" align="center" height="17">12</td>
<td style="border:1px solid #000000;" align="center">6</td>
</tr>
<tr>
<td style="border:1px solid #000000;" align="center" height="17">13</td>
<td style="border:1px solid #000000;" align="center">7</td>
</tr>
<tr>
<td style="border:1px solid #000000;" align="center" height="17">14</td>
<td style="border:1px solid #000000;" align="center">8</td>
</tr>
<tr>
<td style="border:1px solid #000000;" align="center" height="17">15</td>
<td style="border:1px solid #000000;" align="center">1</td>
</tr>
</table>
<p><span id="more-13"></span><br />
Tentu saja, beri power supply ke LCD-nya. Gunakan pula trimpot untuk mengatur <i>brightness</i> LCD. Agar led di LCD bisa kita atur nyala matinya, maka pin 15 LCD kita koneksikan Port A juga. Manfaatkan transistor agar nyalanya bisa terang, karena arus dari Port A tidak terlalu besar.</p>
<p>Untuk inisialisasi, saya menggunakan program berikut (sebenarnya masih bisa disederhanakan dengan menggunakan fungsi, tapi berhubung memori RabbitCore sangat besar, dan sekarang jaman copy-paste, programnya panjang juga gak masalah) :</p>
<blockquote><p>void delay(unsigned int    wDelay) // dalam 10 uS<br />
{<br />
for (;wDelay&gt;0;&#8211;wDelay);<br />
}</p>
<p>void lcd_init()<br />
{<br />
// inisialisasi LCD<br />
delay(1500);</p>
<p>WrPortI(PADR,&amp;PADRShadow,0&#215;32);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(410);</p>
<p>WrPortI(PADR,&amp;PADRShadow,0&#215;32);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(10);</p>
<p>WrPortI(PADR,&amp;PADRShadow,0&#215;32);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);</p>
<p>WrPortI(PADR,&amp;PADRShadow,0&#215;22);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);</p>
<p>// mulai 4 bit<br />
WrPortI(PADR,&amp;PADRShadow,0&#215;22);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);<br />
WrPortI(PADR,&amp;PADRShadow,0&#215;82);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);</p>
<p>WrPortI(PADR,&amp;PADRShadow,0&#215;02);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);<br />
WrPortI(PADR,&amp;PADRShadow,0&#215;82);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);</p>
<p>// set display, cursor, blink<br />
WrPortI(PADR,&amp;PADRShadow,0&#215;02);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);<br />
WrPortI(PADR,&amp;PADRShadow,0xc2);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);</p>
<p>// set entry mode<br />
WrPortI(PADR,&amp;PADRShadow,0&#215;02);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);<br />
WrPortI(PADR,&amp;PADRShadow,0&#215;62);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);</p>
<p>// ke address 0&#215;80<br />
WrPortI(PADR,&amp;PADRShadow,0&#215;82);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);<br />
WrPortI(PADR,&amp;PADRShadow,0&#215;02);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);</p>
<p>// hapus semua dulu<br />
WrPortI(PADR,&amp;PADRShadow,0&#215;02);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(400);<br />
WrPortI(PADR,&amp;PADRShadow,0&#215;12);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(400);<br />
}</p></blockquote>
<p>Fungsi-fungsi lain yang bisa kita manfaatkan adalah :</p>
<blockquote><p>void lcdgoto(int baris, int kolom) {<br />
const static char acPos[2] = { 0&#215;80,0xC0 };</p>
<p>if (!baris||!kolom) return;<br />
baris = baris &#8211; 1;<br />
kolom = kolom &#8211; 1;</p>
<p>if (( baris &lt; 2) &amp;&amp; (kolom &lt; 16)) {<br />
WrPortI(PADR,&amp;PADRShadow,(PADRShadow&amp;0&#215;01)|((acPos[baris]+kolom)&amp;0xf0)|0&#215;02);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);<br />
WrPortI(PADR,&amp;PADRShadow,(PADRShadow&amp;0&#215;01)|(((acPos[baris]+kolom)&lt;&lt;4)&amp;0xf0)|0&#215;02);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);<br />
}<br />
}</p>
<p>void lcdcetak(char huruf) {<br />
WrPortI(PADR,&amp;PADRShadow,(PADRShadow&amp;0&#215;01)|(huruf&amp;0xf0)|0&#215;06);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);<br />
WrPortI(PADR,&amp;PADRShadow,(PADRShadow&amp;0&#215;01)|((huruf&lt;&lt;4)&amp;0xf0)|0&#215;06);<br />
WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfd);<br />
delay(4);<br />
}</p>
<p>void lcdprintf    (char    *pcFormat,&#8230;)<br />
{<br />
doprnt ( lcdcetak,pcFormat,&amp;pcFormat+1,NULL, NULL, NULL );<br />
}</p></blockquote>
<p>Fungsi lcdgoto adalah untuk LCD 2 x 16. Silahkan ganti untuk LCD tipe lain.</p>
<p>Penggunaannya anda tinggal memanggil lcdinit() di awal program, kemudian lcdprintf untuk menulis kalimatnya.</p>
<blockquote><p>   WrPortI(SPCR,&amp;SPCRShadow,0&#215;84);  // parallel Port A = Outputs<br />
WrPortI(PADR,&amp;PADRShadow,0&#215;00);<br />
lcd_init();<br />
lcdprintf(&#8220;Halo Apa Kabar&#8221;);<br />
lcdgoto(2,1);<br />
lcdprintf(&#8221; by Antok &#8217;07 &#8220;);</p></blockquote>
<p>Untuk menyalakan atau mematikan led di LCD, gunakan perintah :</p>
<blockquote><p>WrPortI(PADR,&amp;PADRShadow,PADRShadow|0&#215;01); // nyalakan led</p>
<p>WrPortI(PADR,&amp;PADRShadow,PADRShadow&amp;0xfe); // mematikan led</p></blockquote>
<p>Thanks,</p>
<p>- Prasaja Wikanta -</p>
<p>RabbitCore 2200 adalah produk <a href="http://www.rabbitsemiconductor.com" title="Rabbit Semiconductor website" target="_blank">Rabbit Semiconductor</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ayamid.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ayamid.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ayamid.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ayamid.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ayamid.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ayamid.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ayamid.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ayamid.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ayamid.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ayamid.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ayamid.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ayamid.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ayamid.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ayamid.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ayamid.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ayamid.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=13&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ayamid.wordpress.com/2007/12/31/lcd-di-rabbitcore-2200/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd6eacacea77ac9ee88e2e47cb257fe6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Antok</media:title>
		</media:content>
	</item>
		<item>
		<title>Parallel Port di RabbitCore 2200</title>
		<link>http://ayamid.wordpress.com/2007/12/10/parallel-port-di-rabbitcore-2200/</link>
		<comments>http://ayamid.wordpress.com/2007/12/10/parallel-port-di-rabbitcore-2200/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 08:00:13 +0000</pubDate>
		<dc:creator>ayamid</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[rabbit]]></category>
		<category><![CDATA[RabbitCore 2200]]></category>

		<guid isPermaLink="false">http://ayamid.wordpress.com/2007/12/10/parallel-port-di-rabbitcore-2200/</guid>
		<description><![CDATA[RabbitCore 2200 memiliki 5 parallel port 8 bit, yang telah dikurangi beberapa untuk kebutuhan lain. Misalnya untuk interface ke Realtek 8019, RAM, Flash, programming interface dll. Parallel Port A (PA). Terletak di J5 pin nomor 1 s/d 8. Dapat berfungsi sebagai Input maupun Output. Secara default, PA adalah sebagai input. Untuk mengeset sebagai input, set [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=12&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>RabbitCore 2200 memiliki 5 parallel port 8 bit, yang telah dikurangi beberapa untuk kebutuhan lain. Misalnya untuk interface ke Realtek 8019, RAM, Flash, programming interface dll.</p>
<ol>
<li>Parallel Port A (PA).<br />
Terletak di J5 pin nomor 1 s/d 8. Dapat berfungsi sebagai Input maupun Output. Secara default, PA adalah sebagai input. Untuk mengeset sebagai input, set SPCR dengan nilai 080h. Untuk mengeset sebagai output, set SPCR dengan nilai 084h.<br />
<span id="more-12"></span> Contoh program :</p>
<blockquote><p>#class auto</p>
<p>void main() {<br />
// set supaya port A jadi Output<br />
WrPortI(SPCR, &amp; SPCRShadow, 0&#215;84);</p>
<p>// port A bit 7 s/d 4 high, bit 3 s/d 0 low.<br />
WrPortI(PADR, &amp; PADRShadow, 0xf0);</p>
<p>while(1) {}</p>
<p>}</p></blockquote>
<p>Contoh program :</p>
<blockquote><p>#class auto</p>
<p>void main() {<br />
// set supaya port A jadi Input<br />
WrPortI(SPCR, &amp; SPCRShadow, 0&#215;80);</p>
<p>while(1) {<br />
// cek truss port A bit 0 (PA0)<br />
costate {<br />
if (!BitRdPortI(PADR, 0)) {<br />
printf(&#8220;ok\n&#8221;);<br />
}<br />
}<br />
}<br />
}</p></blockquote>
</li>
<li>Parallel Port B (PB).<br />
Terletak di J5 pin nomor 10 s/d 15 dengan urutan dan fungsi sbb. :</p>
<table border="1" cellspacing="3" cellpadding="5" width="384">
<tbody>
<tr>
<td width="35" bgcolor="#cccccc">
<p align="center"><a title="931238" name="931238"></a><a title="932326" name="932326"></a><a title="931222" name="931222"></a> <span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				7</strong></span></span></span></p>
</td>
<td width="52" bgcolor="#cccccc">
<p align="center"><a title="931240" name="931240"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				6</strong></span></span></span></p>
</td>
<td width="27" bgcolor="#cccccc">
<p align="center"><a title="931242" name="931242"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				5</strong></span></span></span></p>
</td>
<td width="27" bgcolor="#cccccc">
<p align="center"><a title="931244" name="931244"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				4</strong></span></span></span></p>
</td>
<td width="27" bgcolor="#cccccc">
<p align="center"><a title="931246" name="931246"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				3</strong></span></span></span></p>
</td>
<td width="27" bgcolor="#cccccc">
<p align="center"><a title="931248" name="931248"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				2</strong></span></span></span></p>
</td>
<td width="52" bgcolor="#cccccc">
<p align="center"><a title="931250" name="931250"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				1</strong></span></span></span></p>
</td>
<td width="27" bgcolor="#cccccc">
<p align="center"><a title="931252" name="931252"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				0</strong></span></span></span></p>
</td>
</tr>
<tr>
<td width="35"><a title="931254" name="931254"></a><a title="932328" name="932328"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">15</span></span></span></td>
<td width="52"><a title="931256" name="931256"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Tidak 				ada</span></span></span></td>
<td width="27"><a title="931258" name="931258"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">14</span></span></span></td>
<td width="27"><a title="931260" name="931260"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">13</span></span></span></td>
<td width="27"><a title="931262" name="931262"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">12</span></span></span></td>
<td width="27"><a title="931264" name="931264"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">11</span></span></span></td>
<td width="52"><a title="931266" name="931266"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Tidak 				ada</span></span></span></td>
<td width="27"><a title="931268" name="931268"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">10</span></span></span></td>
</tr>
<tr>
<td width="35"><a title="931270" name="931270"></a><a title="932330" name="932330"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Output</span></span></span></td>
<td width="52"><a title="931272" name="931272"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Tidak 				ada</span></span></span></td>
<td width="27"><a title="931274" name="931274"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Input</span></span></span></td>
<td width="27"><a title="931276" name="931276"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Input</span></span></span></td>
<td width="27"><a title="931278" name="931278"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Input</span></span></span></td>
<td width="27"><a title="931280" name="931280"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Input</span></span></span></td>
<td width="52"><a title="931282" name="931282"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Tidak 				ada</span></span></span></td>
<td width="27"><a title="931284" name="931284"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Input</span></span></span></td>
</tr>
</tbody>
</table>
<p style="margin-left:.25in;margin-bottom:0;">Contoh program:</p>
<blockquote><p>#class auto</p>
<p>void main() {</p>
<p>while(1) {<br />
// port B bit 7 jadi low<br />
BitWrPortI(PBDR, &amp; PBDRShadow, 0, 7);<br />
}<br />
}</p></blockquote>
<p>Contoh program:</p>
<blockquote><p>#class auto</p>
<p>void main() {</p>
<p>while(1) {<br />
// cek truss port B bit 0 (PB0)<br />
costate {<br />
if (!BitRdPortI(PBDR, 0)) {<br />
printf(&#8220;ok\n&#8221;);<br />
}<br />
}<br />
}<br />
}</p></blockquote>
</li>
<li> Parallel Port C (PC).<br />
Terletak di J4 pin nomor 3 s/d 6. Memiliki 4 input dan 4 output, namun di RabbitCore2200 yang bisa terpakai hanya PC1 s/d PC3 dengan susunan sbb.:</p>
<table border="1" cellspacing="3" cellpadding="5" width="182">
<tbody>
<tr>
<td width="25" bgcolor="#cccccc">
<p align="center"><a title="935363" name="935363"></a><a title="935353" name="935353"></a><a title="935346" name="935346"></a> <span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				3</strong></span></span></span></p>
</td>
<td width="33" bgcolor="#cccccc">
<p align="center"><a title="935365" name="935365"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				2</strong></span></span></span></p>
</td>
<td width="27" bgcolor="#cccccc">
<p align="center"><a title="935367" name="935367"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				1</strong></span></span></span></p>
</td>
<td width="39" bgcolor="#cccccc">
<p align="center"><a title="935369" name="935369"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				0</strong></span></span></span></p>
</td>
</tr>
<tr>
<td width="25"><a title="935462" name="935462"></a><a title="935451" name="935451"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">6</span></span></span></td>
<td width="33"><a title="935464" name="935464"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">5</span></span></span></td>
<td width="27"><a title="935466" name="935466"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">4</span></span></span></td>
<td width="39"><a title="935468" name="935468"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">3</span></span></span></td>
</tr>
<tr>
<td width="25"><a title="935481" name="935481"></a><a title="935470" name="935470"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">input</span></span></span></td>
<td width="33"><a title="935483" name="935483"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">output</span></span></span></td>
<td width="27"><a title="935485" name="935485"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">input</span></span></span></td>
<td width="39"><a title="935487" name="935487"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">output</span></span></span></td>
</tr>
<tr>
<td width="25"><a title="935500" name="935500"></a><a title="935489" name="935489"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">RXC</span></span></span></td>
<td width="33"><a title="935503" name="935503"></a><a title="935502" name="935502"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">TXC</span></span></span></td>
<td width="27"><a title="935505" name="935505"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">RXD</span></span></span></td>
<td width="39"><a title="935507" name="935507"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">TXD</span></span></span></td>
</tr>
</tbody>
</table>
<p>Port C sering digunakan untuk komunikasi serial.</p>
<p>Contoh program :</p>
<blockquote><p>#class auto</p>
<p>void main() {</p>
<p>while(1) {<br />
// set bit 0 port C menjadi high<br />
BitWrPortI(PCDR, &amp; PCDRShadow, 1, 0);<br />
}<br />
}</p></blockquote>
<p>Contoh program :</p>
<blockquote><p>#class auto</p>
<p>void main() {</p>
<p>while(1) {<br />
// cek truss port C bit 3<br />
costate {<br />
if (!BitRdPortI(PCDR, 3)) {<br />
printf(&#8220;ok\n&#8221;);<br />
}<br />
}<br />
}<br />
}</p></blockquote>
</li>
<li> Parallel Port D (PD).<br />
Di RabbitCore2200 hanya tersisa 3, yaitu PD3 di header J4 pin 10, PD4 di pin 11, PD5 di pin 12. Bisa sebagai Input/Output.</li>
<li> Parallel Port E (PE).<br />
Bisa untuk input/output. Sering juga dipakai sebagai Interrupt.</p>
<table border="1" cellspacing="3" cellpadding="5" width="313">
<tbody>
<tr>
<td width="63" bgcolor="#cccccc">
<p align="center"><a title="937715" name="937715"></a><a title="937697" name="937697"></a></p>
</td>
<td width="33" bgcolor="#cccccc">
<p align="center"><a title="937717" name="937717"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				7</strong></span></span></span></p>
</td>
<td width="33" bgcolor="#cccccc">
<p align="center"><a title="937721" name="937721"></a><a title="937719" name="937719"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				5</strong></span></span></span></p>
</td>
<td width="33" bgcolor="#cccccc">
<p align="center"><a title="937723" name="937723"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				4</strong></span></span></span></p>
</td>
<td width="33" bgcolor="#cccccc">
<p align="center"><a title="937729" name="937729"></a><a title="937725" name="937725"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				1</strong></span></span></span></p>
</td>
<td width="33" bgcolor="#cccccc">
<p align="center"><a title="937731" name="937731"></a><span style="color:#003366;"><span style="font-family:Times,serif;"><span style="font-size:x-small;"><strong>Bit 				0</strong></span></span></span></p>
</td>
</tr>
<tr>
<td width="63"><a title="937789" name="937789"></a><a title="937771" name="937771"></a><a title="937752" name="937752"></a><a title="937733" name="937733"></a><a title="937790" name="937790"></a> <span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">PEB0R 				(W)<br />
adr = 078h</span></span></span></td>
<td width="33"><a title="937792" name="937792"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937796" name="937796"></a><a title="937794" name="937794"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937798" name="937798"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937804" name="937804"></a><a title="937800" name="937800"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937806" name="937806"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Pin 				15</span></span></span></td>
</tr>
<tr>
<td width="63"><a title="937808" name="937808"></a><a title="937809" name="937809"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">PEB1R 				(W)<br />
adr = 079h</span></span></span></td>
<td width="33"><a title="937811" name="937811"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937815" name="937815"></a><a title="937813" name="937813"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937817" name="937817"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937823" name="937823"></a><a title="937819" name="937819"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Pin 				16</span></span></span></td>
<td width="33"><a title="937825" name="937825"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
</tr>
<tr>
<td width="63"><a title="937865" name="937865"></a><a title="937827" name="937827"></a><a title="937866" name="937866"></a> <span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">PEB4R 				(W)<br />
adr = 07Ch</span></span></span></td>
<td width="33"><a title="937868" name="937868"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937872" name="937872"></a><a title="937870" name="937870"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937874" name="937874"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Pin 				19</span></span></span></td>
<td width="33"><a title="937880" name="937880"></a><a title="937876" name="937876"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937882" name="937882"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
</tr>
<tr>
<td width="63"><a title="937884" name="937884"></a><a title="937885" name="937885"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">PEB5R 				(W)<br />
adr = 07Dh</span></span></span></td>
<td width="33"><a title="937887" name="937887"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937891" name="937891"></a><a title="937889" name="937889"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Pin 				20</span></span></span></td>
<td width="33"><a title="937893" name="937893"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937899" name="937899"></a><a title="937895" name="937895"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937901" name="937901"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
</tr>
<tr>
<td width="63"><a title="937922" name="937922"></a><a title="937903" name="937903"></a><a title="937923" name="937923"></a> <span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">PEB7R 				(W)<br />
adr = 07Fh</span></span></span></td>
<td width="33"><a title="937925" name="937925"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">Pin 				22</span></span></span></td>
<td width="33"><a title="937929" name="937929"></a><a title="937927" name="937927"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937931" name="937931"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937937" name="937937"></a><a title="937933" name="937933"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
<td width="33"><a title="937939" name="937939"></a><span style="color:#000000;"><span style="font-family:Times,serif;"><span style="font-size:x-small;">x</span></span></span></td>
</tr>
</tbody>
</table>
<p>Contoh program :</p>
<p align="left">
<blockquote><p>#class auto</p>
<p>void main() {<br />
// inisialisasi dulu sebagai Output</p>
<p align="left">WrPortI(PEDDR, &amp;PEDDRShadow, 0xb3 | PEDDRShadow);</p>
<p>while(1) {<br />
WrPortI(PEB7R, NULL, 0&#215;80);<br />
WrPortI(PEB4R, NULL, 0&#215;10);<br />
}<br />
}</p></blockquote>
<p>Contoh program :</p>
<p align="left">
<blockquote><p>#class auto</p>
<p>void main() {<br />
// inisialisasi dulu sebagai Input</p>
<p align="left">WrPortI(PEDDR, &amp;PEDDRShadow, 0x4c &amp; PEDDRShadow);</p>
<p>while(1) {<br />
costate {<br />
if (!BitRdPortI(PEDR, 0)) {<br />
printf(&#8220;ok\n&#8221;);<br />
}<br />
}<br />
}<br />
}</p></blockquote>
</li>
</ol>
<p>Thanks,</p>
<p>- Prasaja Wikanta -</p>
<p>RabbitCore 2200 adalah produk <a title="Rabbit Semiconductor website" href="http://www.rabbitsemiconductor.com" target="_blank">Rabbit Semiconductor</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ayamid.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ayamid.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ayamid.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ayamid.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ayamid.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ayamid.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ayamid.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ayamid.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ayamid.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ayamid.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ayamid.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ayamid.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ayamid.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ayamid.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ayamid.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ayamid.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=12&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ayamid.wordpress.com/2007/12/10/parallel-port-di-rabbitcore-2200/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd6eacacea77ac9ee88e2e47cb257fe6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Antok</media:title>
		</media:content>
	</item>
		<item>
		<title>Serial Communication di RabbitCore2200</title>
		<link>http://ayamid.wordpress.com/2007/12/10/serial-communication-di-rabbitcore2200/</link>
		<comments>http://ayamid.wordpress.com/2007/12/10/serial-communication-di-rabbitcore2200/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 07:27:21 +0000</pubDate>
		<dc:creator>ayamid</dc:creator>
				<category><![CDATA[rabbit]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[RabbitCore 2200]]></category>

		<guid isPermaLink="false">http://ayamid.wordpress.com/2007/12/10/serial-communication-di-rabbitcore2200/</guid>
		<description><![CDATA[Baru saja mencoba serial port di RCM2200. Mula-mula saya melihat dahulu sample program puts.c yang ada di direktori samples/serial. Setelah melihat sample, disana diinstruksikan untuk menyambungkan serial B (TXB dan RXB) dengan Tx dan Rx di komputer. Ketika saya cek di poster Rabbit 2000 Easy Reference, ternyata yang B tidak ada pinnya di RCM2200. Maka [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=11&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Baru saja mencoba serial port di <a class="tiddlyLink tiddlyLinkExisting" title="RCM2200 - antok, Monday, August 28, 2006 12:44:00 PM" href="http://www.rabbitsemiconductor.com/products/rcm2200/index.shtml">RCM2200</a>. Mula-mula saya melihat dahulu sample program <span style="font-family:courier new;">puts.c</span> yang ada di direktori samples/serial. Setelah melihat sample, disana diinstruksikan untuk menyambungkan serial B (TXB dan RXB) dengan Tx dan Rx di komputer. Ketika saya cek di poster <span style="font-style:italic;">Rabbit 2000 Easy Reference</span>, ternyata yang B tidak ada pinnya di <span class="tiddlyLink tiddlyLinkExisting">RCM2200</span>. Maka saya coba pindahkan ke serial C, tentunya dengan sedikit mengganti source code <span style="font-family:courier new;">puts.c</span>. Serial C ada di pin <span class="tiddlyLink tiddlyLinkNonExisting">PC3</span> (untuk RXC) dan di pin <span class="tiddlyLink tiddlyLinkNonExisting">PC2</span> (untuk TXC). Sedangkan serial D di pin <span class="tiddlyLink tiddlyLinkNonExisting">PC1</span> dan <span class="tiddlyLink tiddlyLinkNonExisting">PC0</span>. <span class="tiddlyLink tiddlyLinkNonExisting">PC7</span> dan <span class="tiddlyLink tiddlyLinkNonExisting">PC6</span> untuk serial A, <span class="tiddlyLink tiddlyLinkNonExisting">PC5</span> dan <span class="tiddlyLink tiddlyLinkNonExisting">PC4</span> untuk serial B.</p>
<p><span id="more-11"></span></p>
<p>Program untuk mengirim melalui serial adalah sbb. :</p>
<blockquote>
<pre style="font-family:courier new;"><span style="font-size:100%;">#class auto

#define BINBUFSIZE 15
#define BOUTBUFSIZE 15

void main()
{
static const char s[] = "Hello Z-World\r\n";

serCopen(19200);
serCputs(s);

// first, wait until the serial buffer is empty
while (serCwrFree() != BOUTBUFSIZE);

// then, wait until the Tx data register and the Tx shift register
//  are both empty
while (BitRdPortI(SCSR, 3) || BitRdPortI(SCSR, 2));

// now we can close the serial port without cutting off Tx data
serCclose();
}</span></pre>
</blockquote>
<p>Thanks,</p>
<p>- Prasaja Wikanta -</p>
<p>RabbitCore 2200 adalah produk <a title="Rabbit Semiconductor website" href="http://www.rabbitsemiconductor.com" target="_blank">Rabbit Semiconductor</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ayamid.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ayamid.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ayamid.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ayamid.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ayamid.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ayamid.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ayamid.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ayamid.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ayamid.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ayamid.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ayamid.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ayamid.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ayamid.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ayamid.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ayamid.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ayamid.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=11&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ayamid.wordpress.com/2007/12/10/serial-communication-di-rabbitcore2200/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd6eacacea77ac9ee88e2e47cb257fe6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Antok</media:title>
		</media:content>
	</item>
		<item>
		<title>Membuat m3u dengan php</title>
		<link>http://ayamid.wordpress.com/2007/11/21/membuat-m3u-dengan-php/</link>
		<comments>http://ayamid.wordpress.com/2007/11/21/membuat-m3u-dengan-php/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 09:52:46 +0000</pubDate>
		<dc:creator>ayamid</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[mp3search]]></category>

		<guid isPermaLink="false">http://ayamid.wordpress.com/2007/11/21/membuat-m3u-dengan-php/</guid>
		<description><![CDATA[Program ini kubuat untuk mencari mp3 yang disimpan mahasiswa di server students. Program ini juga sekaligus akan membuatkan m3u untuk hasil search kita. Cari MP3<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=9&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Program ini kubuat untuk mencari mp3 yang disimpan mahasiswa di server students. Program ini juga sekaligus akan membuatkan m3u untuk hasil search kita.</p>
<p><a href="http://ayamid.files.wordpress.com/2007/11/carimp3.txt" title="Cari MP3">Cari MP3</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ayamid.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ayamid.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ayamid.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ayamid.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ayamid.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ayamid.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ayamid.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ayamid.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ayamid.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ayamid.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ayamid.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ayamid.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ayamid.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ayamid.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ayamid.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ayamid.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=9&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ayamid.wordpress.com/2007/11/21/membuat-m3u-dengan-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd6eacacea77ac9ee88e2e47cb257fe6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Antok</media:title>
		</media:content>
	</item>
		<item>
		<title>Dasar PHP MySQL</title>
		<link>http://ayamid.wordpress.com/2007/11/21/dasar-php-mysql/</link>
		<comments>http://ayamid.wordpress.com/2007/11/21/dasar-php-mysql/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 09:47:46 +0000</pubDate>
		<dc:creator>ayamid</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://ayamid.wordpress.com/2007/11/21/dasar-php-mysql/</guid>
		<description><![CDATA[Pernah bikin tutorial php, sudah kuno sekali. Gak tau masih relevan atau tidak. Dasar PHP MySQL<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=8&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Pernah bikin tutorial php, sudah kuno sekali. Gak tau masih relevan atau tidak.</p>
<p><a href="http://ayamid.files.wordpress.com/2007/11/dasar-php-mysql.pdf" title="Dasar PHP MySQL">Dasar PHP MySQL</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ayamid.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ayamid.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ayamid.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ayamid.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ayamid.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ayamid.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ayamid.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ayamid.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ayamid.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ayamid.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ayamid.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ayamid.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ayamid.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ayamid.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ayamid.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ayamid.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=8&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ayamid.wordpress.com/2007/11/21/dasar-php-mysql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd6eacacea77ac9ee88e2e47cb257fe6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Antok</media:title>
		</media:content>
	</item>
		<item>
		<title>Dasar CGI Perl</title>
		<link>http://ayamid.wordpress.com/2007/11/21/dasar-cgi-perl/</link>
		<comments>http://ayamid.wordpress.com/2007/11/21/dasar-cgi-perl/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 09:46:35 +0000</pubDate>
		<dc:creator>ayamid</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://ayamid.wordpress.com/2007/11/21/dasar-cgi-perl/</guid>
		<description><![CDATA[Dulu pernah buat tutorial buat program Perl. Jadi sekarang kutaruh di sini aja biar gak ilang. Dasar CGI Perl<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=5&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Dulu pernah buat tutorial buat program Perl. Jadi sekarang kutaruh di sini aja biar gak ilang.</p>
<p><a href="http://ayamid.files.wordpress.com/2007/11/dasar-cgi-perl.pdf" title="Dasar CGI Perl">Dasar CGI Perl</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ayamid.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ayamid.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ayamid.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ayamid.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ayamid.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ayamid.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ayamid.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ayamid.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ayamid.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ayamid.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ayamid.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ayamid.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ayamid.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ayamid.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ayamid.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ayamid.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=5&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ayamid.wordpress.com/2007/11/21/dasar-cgi-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd6eacacea77ac9ee88e2e47cb257fe6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Antok</media:title>
		</media:content>
	</item>
		<item>
		<title>Program Upload</title>
		<link>http://ayamid.wordpress.com/2007/11/21/tes/</link>
		<comments>http://ayamid.wordpress.com/2007/11/21/tes/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 09:29:47 +0000</pubDate>
		<dc:creator>ayamid</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ayamid.wordpress.com/2007/11/21/tes/</guid>
		<description><![CDATA[Ini adalah snippet (file-upload.txt) program upload yang kupakai buat upload tugas mahasiswa. Ganti ***** dengan direktori tempat anda mengumpulkan file hasil upload. &#60;?php &#160; /* tugas upload */ &#160; if ($_POST["upload"]) { $uploaddir = &#8216;*****&#8217;; $uploadfile = $uploaddir . $_FILES['file_upload']['name']; $inputOK = TRUE; if ($inputOK) { if (move_uploaded_file($_FILES['file_upload']['tmp_name'], $uploadfile)) { $pesan .= &#8220;OK. &#8220;.$_FILES['file_upload']['name'].&#8221; telah [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=3&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p align="left">Ini adalah snippet <a href="http://ayamid.files.wordpress.com/2007/11/file-upload.txt" title="file-upload.txt">(file-upload.txt</a>) program upload yang kupakai buat upload tugas mahasiswa. Ganti ***** dengan direktori tempat anda mengumpulkan file hasil upload.</p>
<blockquote>
<p align="left">&lt;?php</p>
<p align="left">&nbsp;</p>
<p align="left">/* tugas upload */</p>
<p align="left">&nbsp;</p>
<p align="left">if ($_POST["upload"]) {<br />
$uploaddir = &#8216;*****&#8217;;<br />
$uploadfile = $uploaddir . $_FILES['file_upload']['name'];<br />
$inputOK = TRUE;<br />
if ($inputOK) {<br />
if (move_uploaded_file($_FILES['file_upload']['tmp_name'], $uploadfile)) {<br />
$pesan .= &#8220;OK. &#8220;.$_FILES['file_upload']['name'].&#8221; telah diupload.&lt;br/&gt;&lt;br/&gt;&#8221;;<br />
} else {<br />
$pesan .= &#8220;Gagal.&lt;br/&gt;&#8221;;<br />
}<br />
}<br />
}</p>
<p align="left">&nbsp;</p>
<p align="left">?&gt;<br />
&lt;html&gt;<br />
&lt;body&gt;<br />
Upload Tugas : &lt;br/&gt;&lt;br/&gt;<br />
&lt;?=$pesan?&gt;<br />
&lt;form enctype=&#8221;multipart/form-data&#8221; action=&#8221;&lt;?=$PHP_SELF?&gt;&#8221; method=&#8221;POST&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;MAX_FILE_SIZE&#8221; value=&#8221;2000001&#8243;/&gt;<br />
&lt;table border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243;&gt;<br />
&lt;tr&gt;&lt;td&gt;File &lt;/td&gt;&lt;td&gt;&lt;input name=&#8221;file_upload&#8221; type=&#8221;file&#8221;/&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;Upload&#8221; name=&#8221;upload&#8221;/&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ayamid.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ayamid.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ayamid.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ayamid.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ayamid.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ayamid.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ayamid.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ayamid.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ayamid.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ayamid.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ayamid.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ayamid.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ayamid.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ayamid.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ayamid.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ayamid.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ayamid.wordpress.com&amp;blog=2170416&amp;post=3&amp;subd=ayamid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ayamid.wordpress.com/2007/11/21/tes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd6eacacea77ac9ee88e2e47cb257fe6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Antok</media:title>
		</media:content>
	</item>
	</channel>
</rss>
