<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Program Assembler untuk ngetest LCD 2&#215;16</title>
	<atom:link href="http://sahir.web.id/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/feed/" rel="self" type="application/rss+xml" />
	<link>http://sahir.web.id/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/</link>
	<description>cachak weblog</description>
	<lastBuildDate>Wed, 07 Jul 2010 09:11:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ricxzone</title>
		<link>http://sahir.web.id/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/comment-page-1/#comment-93671</link>
		<dc:creator>Ricxzone</dc:creator>
		<pubDate>Wed, 07 Jul 2010 09:11:07 +0000</pubDate>
		<guid isPermaLink="false">http://sahir.dozer.or.id/wp/index.php/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/#comment-93671</guid>
		<description>wah thx bgt bro buat infonya..
berguna bgt neh buat kuliah gw ^^..</description>
		<content:encoded><![CDATA[<p>wah thx bgt bro buat infonya..<br />
berguna bgt neh buat kuliah gw ^^..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: willy</title>
		<link>http://sahir.web.id/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/comment-page-1/#comment-93673</link>
		<dc:creator>willy</dc:creator>
		<pubDate>Wed, 07 Jul 2010 09:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://sahir.dozer.or.id/wp/index.php/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/#comment-93673</guid>
		<description>thanks bro buat infonya..</description>
		<content:encoded><![CDATA[<p>thanks bro buat infonya..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ifan</title>
		<link>http://sahir.web.id/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/comment-page-1/#comment-93734</link>
		<dc:creator>ifan</dc:creator>
		<pubDate>Wed, 07 Jul 2010 09:10:53 +0000</pubDate>
		<guid isPermaLink="false">http://sahir.dozer.or.id/wp/index.php/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/#comment-93734</guid>
		<description>mas tolong bantu saya untuk ambil data 2 sensor(sensor gas&amp;suhu) menngunakan adc 0808 dan,AT8051  dengan tampilan 7 segmen 4 digit bantuin saya untuk program nya mas. 
 
yang di  bawah ini contoh yang saya buat tapi lum bisa .

org 0h
ratusan equ 30h
puluhan equ 31h
satuan equ 32h
;                    
org 0h
start: call ADC
call Bin2Dec
call Display2SevenSegmen
sjmp start
;  
;========================================
;Subrutin ini digunakan untuk mengambil data ADC
;========================================  
PROGRAM:               
adc_a                   bit           p2.0
adc_b                   bit           p2.1
adc_c                   bit           p2.2
adc_start               bit           p2.3
adc_ale                 bit           p2.4
adc_OE                  bit           P2.5 
adc_EOC			bit           P2.6  
;
ADC: 	
	ORG 0H
	CLR  p2.3	;adc_start
	CLR  p2.4	;adc_ale 
	CLR  p2.5	;adc_OE
	SETB  p2.6	;adc_EOC	
INIT:	
	SETB	p2.0	;adc_a
	SETB	p2.1	;adc_b
	CLR	p2.2	;adc_c 
		CALL DELAY
	SETB  p2.3	;adc_start
		CALL DELAY
	SETB  p2.4	;adc_ale
		CALL DELAY
	CLR  p2.3	;adc_start
	CLR  p2.4	;adc_ale 
			
EOC:	JNB P2.6,EOC
	SETB P2.5 
	CALL DELAY
	MOV A,P0
	MOV P1,A
	SJMP INIT
	RET	


;=================================================
;Subrutin ini untuk menampilkan data ke 7 Segmen
;dalam bentuk: ratusan, puluhan, and satuan
;data desimal diubah ke segmen dengan menggunakan
;Look up table Data7segmen
;=================================================
Display2SevenSegmen:
mov A, ratusan ;Copy data Ratusan ke A
mov DPTR,#Data7segmen ;Copy Address #Data7segmen ke DPTR
movc A,@A+DPTR ;Copy Isi A+DPTR ke A
mov P1,A ;Copy A ke P0
Setb P3.5 ;Decoder, A=1,
clr P3.6 ;B=0
Setb P3.7 ; dan C=1
call delay ;Panggil waktu tunda
;
mov A,puluhan
mov DPTR,#Data7segmen
movc A,@A+DPTR
mov P1,A
clr P3.5 ;
Setb P3.6
Setb P3.7
call delay
;
mov A,satuan
mov DPTR,#Data7segmen
movc A,@A+DPTR
mov P1,A
Setb P3.5 ;
Setb P3.6
Setb P3.7
call delay
ret
;
delay: mov R0,#0
delay1:mov R2,#0fh
djnz R2,$
djnz R0,delay1
ret
;
;========================================
;Subrutin ini untuk merubah data biner ke desimal
;menjadi 3 digit = ratusan-puluhan-satuan
;=========================================
Bin2Dec:
mov b,#100d
div ab
mov ratusan,a
mov a,b
mov b,#10d
div ab
mov puluhan,a
mov satuan,b
ret
;
Data7segmen:
db 11000000b,11111001b,10100100b,10110000b,10011001b
db 10010010b,10000010b,11111000b,10000000b,10010000b
;
end</description>
		<content:encoded><![CDATA[<p>mas tolong bantu saya untuk ambil data 2 sensor(sensor gas&amp;suhu) menngunakan adc 0808 dan,AT8051  dengan tampilan 7 segmen 4 digit bantuin saya untuk program nya mas. </p>
<p>yang di  bawah ini contoh yang saya buat tapi lum bisa .</p>
<p>org 0h<br />
ratusan equ 30h<br />
puluhan equ 31h<br />
satuan equ 32h<br />
;<br />
org 0h<br />
start: call ADC<br />
call Bin2Dec<br />
call Display2SevenSegmen<br />
sjmp start<br />
;<br />
;========================================<br />
;Subrutin ini digunakan untuk mengambil data ADC<br />
;========================================<br />
PROGRAM:<br />
adc_a                   bit           p2.0<br />
adc_b                   bit           p2.1<br />
adc_c                   bit           p2.2<br />
adc_start               bit           p2.3<br />
adc_ale                 bit           p2.4<br />
adc_OE                  bit           P2.5<br />
adc_EOC			bit           P2.6<br />
;<br />
ADC:<br />
	ORG 0H<br />
	CLR  p2.3	;adc_start<br />
	CLR  p2.4	;adc_ale<br />
	CLR  p2.5	;adc_OE<br />
	SETB  p2.6	;adc_EOC<br />
INIT:<br />
	SETB	p2.0	;adc_a<br />
	SETB	p2.1	;adc_b<br />
	CLR	p2.2	;adc_c<br />
		CALL DELAY<br />
	SETB  p2.3	;adc_start<br />
		CALL DELAY<br />
	SETB  p2.4	;adc_ale<br />
		CALL DELAY<br />
	CLR  p2.3	;adc_start<br />
	CLR  p2.4	;adc_ale </p>
<p>EOC:	JNB P2.6,EOC<br />
	SETB P2.5<br />
	CALL DELAY<br />
	MOV A,P0<br />
	MOV P1,A<br />
	SJMP INIT<br />
	RET	</p>
<p>;=================================================<br />
;Subrutin ini untuk menampilkan data ke 7 Segmen<br />
;dalam bentuk: ratusan, puluhan, and satuan<br />
;data desimal diubah ke segmen dengan menggunakan<br />
;Look up table Data7segmen<br />
;=================================================<br />
Display2SevenSegmen:<br />
mov A, ratusan ;Copy data Ratusan ke A<br />
mov DPTR,#Data7segmen ;Copy Address #Data7segmen ke DPTR<br />
movc A,@A+DPTR ;Copy Isi A+DPTR ke A<br />
mov P1,A ;Copy A ke P0<br />
Setb P3.5 ;Decoder, A=1,<br />
clr P3.6 ;B=0<br />
Setb P3.7 ; dan C=1<br />
call delay ;Panggil waktu tunda<br />
;<br />
mov A,puluhan<br />
mov DPTR,#Data7segmen<br />
movc A,@A+DPTR<br />
mov P1,A<br />
clr P3.5 ;<br />
Setb P3.6<br />
Setb P3.7<br />
call delay<br />
;<br />
mov A,satuan<br />
mov DPTR,#Data7segmen<br />
movc A,@A+DPTR<br />
mov P1,A<br />
Setb P3.5 ;<br />
Setb P3.6<br />
Setb P3.7<br />
call delay<br />
ret<br />
;<br />
delay: mov R0,#0<br />
delay1:mov R2,#0fh<br />
djnz R2,$<br />
djnz R0,delay1<br />
ret<br />
;<br />
;========================================<br />
;Subrutin ini untuk merubah data biner ke desimal<br />
;menjadi 3 digit = ratusan-puluhan-satuan<br />
;=========================================<br />
Bin2Dec:<br />
mov b,#100d<br />
div ab<br />
mov ratusan,a<br />
mov a,b<br />
mov b,#10d<br />
div ab<br />
mov puluhan,a<br />
mov satuan,b<br />
ret<br />
;<br />
Data7segmen:<br />
db 11000000b,11111001b,10100100b,10110000b,10011001b<br />
db 10010010b,10000010b,11111000b,10000000b,10010000b<br />
;<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cim'cmot</title>
		<link>http://sahir.web.id/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/comment-page-1/#comment-93789</link>
		<dc:creator>cim'cmot</dc:creator>
		<pubDate>Wed, 07 Jul 2010 09:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://sahir.dozer.or.id/wp/index.php/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/#comment-93789</guid>
		<description>tolong frend2 bantu aq untuk program lcd 16x2..untuk menampilkn tulisan ketika ada inputan low 5 x dari mkro at89s51.....tlong ya......makasih buat semuanya</description>
		<content:encoded><![CDATA[<p>tolong frend2 bantu aq untuk program lcd 16&#215;2..untuk menampilkn tulisan ketika ada inputan low 5 x dari mkro at89s51&#8230;..tlong ya&#8230;&#8230;makasih buat semuanya</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cim'cmot</title>
		<link>http://sahir.web.id/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/comment-page-1/#comment-93792</link>
		<dc:creator>cim'cmot</dc:creator>
		<pubDate>Wed, 07 Jul 2010 09:10:22 +0000</pubDate>
		<guid isPermaLink="false">http://sahir.dozer.or.id/wp/index.php/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/#comment-93792</guid>
		<description>&lt;a href=&quot;#comment-74&quot; rel=&quot;nofollow&quot;&gt;@irawan &lt;/a&gt; 
sama frend.....aq jg pnya masalah dgn itu,,,,</description>
		<content:encoded><![CDATA[<p><a href="#comment-74" rel="nofollow">@irawan </a><br />
sama frend&#8230;..aq jg pnya masalah dgn itu,,,,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicky</title>
		<link>http://sahir.web.id/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/comment-page-1/#comment-93908</link>
		<dc:creator>nicky</dc:creator>
		<pubDate>Wed, 07 Jul 2010 09:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://sahir.dozer.or.id/wp/index.php/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/#comment-93908</guid>
		<description>mohon saya diberikan listing program untuk hasil input ADC 0804 dikeluarkan melalui DAC 0808 yg outputnya berupa tegangan</description>
		<content:encoded><![CDATA[<p>mohon saya diberikan listing program untuk hasil input ADC 0804 dikeluarkan melalui DAC 0808 yg outputnya berupa tegangan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ninja</title>
		<link>http://sahir.web.id/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/comment-page-1/#comment-94461</link>
		<dc:creator>Ninja</dc:creator>
		<pubDate>Wed, 07 Jul 2010 09:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://sahir.dozer.or.id/wp/index.php/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/#comment-94461</guid>
		<description>halo 
ini hebat thx assembler cool</description>
		<content:encoded><![CDATA[<p>halo<br />
ini hebat thx assembler cool</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andra</title>
		<link>http://sahir.web.id/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/comment-page-1/#comment-94463</link>
		<dc:creator>andra</dc:creator>
		<pubDate>Wed, 07 Jul 2010 09:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://sahir.dozer.or.id/wp/index.php/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/#comment-94463</guid>
		<description>hi,,

boleh bisa minta contoh program assembler?
klo bisa minta kirimin ke email saya ya.. thanks</description>
		<content:encoded><![CDATA[<p>hi,,</p>
<p>boleh bisa minta contoh program assembler?<br />
klo bisa minta kirimin ke email saya ya.. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fortuna</title>
		<link>http://sahir.web.id/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/comment-page-1/#comment-92995</link>
		<dc:creator>fortuna</dc:creator>
		<pubDate>Fri, 25 Dec 2009 02:16:34 +0000</pubDate>
		<guid isPermaLink="false">http://sahir.dozer.or.id/wp/index.php/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/#comment-92995</guid>
		<description>butuh bantuan desain hardware dan program hun 0888 0276 7057</description>
		<content:encoded><![CDATA[<p>butuh bantuan desain hardware dan program hun 0888 0276 7057</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tarsud</title>
		<link>http://sahir.web.id/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/comment-page-1/#comment-92977</link>
		<dc:creator>tarsud</dc:creator>
		<pubDate>Tue, 22 Dec 2009 14:49:18 +0000</pubDate>
		<guid isPermaLink="false">http://sahir.dozer.or.id/wp/index.php/2005/04/25/program-assembler-untuk-ngetest-lcd-2x16/#comment-92977</guid>
		<description>mohon bantuanya saya sedang membuat tugas akhir mengenai inisialisasi lcd karakter 16x2 pada single chip, tolong bantuanya kirimin aku program asm inisialisasi lcd untuk single chip AT89c51.terimakasih atas bantuannya.............</description>
		<content:encoded><![CDATA[<p>mohon bantuanya saya sedang membuat tugas akhir mengenai inisialisasi lcd karakter 16&#215;2 pada single chip, tolong bantuanya kirimin aku program asm inisialisasi lcd untuk single chip AT89c51.terimakasih atas bantuannya&#8230;&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
