Thông báo

Collapse
No announcement yet.

Ai đã thất bại trong việc làm led matrix ....

Collapse
X
 
  • Lọc
  • Giờ
  • Show
Clear All
new posts

  • Cảm ơn bồ nhiều nhá, đây là món lâu rồi mình đang cần. Bồ thật giỏi đấy, chúc bạn luôn thành công hơn nữa. byyee

    Comment


    • Nguyên văn bởi hoangphat Xem bài viết
      theo 2 pác em đã tiếp và nói chuyện 1 thời gia thì 2 pác ấy nhờ em giải giúp cách chạy nhìu dòng chữ khác nhau mã font khác nhau để nó đẹp và đa dụng hơn
      thời gian em rất bận nên ko giúp dc ,chìu này em rãnh ngồi xem và cố chỉnh lại thì chạy ok nên up lên 2 pác cùng ae tham khảo
      mạch thì ko thay đổi j chỉ chỉnh lại code thôi
      Code:
      ;********************************************************************************
      ;**************//////------------ MATRIX 16x128 ----------\\\\\\******************
      ;**------------------------------------------------------------------------------
      ;**////////////////__ Chuong trinh chay chu tren bo led ___\\\\\\\\\\\\\\\\\\\\\\
      ;**///////////////__ ma tran 8x8 loai 1 mau ________________\\\\\\\\\\\\\\\\\\\\\
      ;**//////////////___ Su dung vi dieu khien 89S52 cua ATMEL __\\\\\\\\\\\\\\\\\\\\
      ;**<<<<<<<<<<<<<---------------------------------------------->>>>>>>>>>>>>>>>>>>
      ;**\\\\\\\\\\\\\\\ ---------- PhanKey_Electric  ---------- ////////////////////
      ;********************************************************************************
      ;*****
      ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      ;@@@ CAC TEN BIT DUNG TRONG CHUONG TRINH @@@
      ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      INCLUDE 89C52.MC
      E				BIT		p0.3
      DATA_OUT		BIT 	P0.4
      SH 				BIT 	P0.5
      GREEN 			BIT 	P0.6
      RED 			BIT 	P0.7
      f_run			BIT		7FH
      
      ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      ;@@@ CAC TEN BYTE DUNG TRONG CHUONG TRINH @@@
      ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      data_row			equ	p2
      index_byte_row		equ	30h
      num_row				EQU	16
      num_byte_collum		EQU	16
      index_point			equ	31h
      index_reg1			equ	32h
      index_reg2			equ	33h
      num_bit				equ	34h
      width_byte			equ	35h
      buffer_dptrh		equ	36h
      buffer_dptrl		equ	37h
      buffer_dptrh1		equ	38h
      buffer_dptrl1		equ	39h
      ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      ;@@@ start@@@
      ;@@@ OSC 12Mhz@@@
      ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      
      org 	0000h
      	ljmp 	main
      org	000bh
      	ljmp	ngat_timer0
      org 	0030h
      main:
      LJMP	main1
      ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ;#######################################################################################
      ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      main1:
      	clr	f_run
      	mov	num_bit,#0
      	
      	mov 	dptr,#string_code+2	
      	mov	a,#0
      	movc	a,@a+dptr
      	mov	width_byte,a
      	mov 	dptr,#string_code-6
      	lcall 	set_index_dptr
      	mov	buffer_dptrh1,dph
      	mov	buffer_dptrl1,dpl
      	mov 	dptr,#string_code+3
      	mov	buffer_dptrh,dph
      	mov	buffer_dptrl,dpl
      	mov 	index_point,#0
      	mov	index_byte_row,#0
      	LCALL	init_interrupt
      	MOV R0,#90
      ___here:
      	mov	ie,#82h
      	jnb	f_run,___here
      	mov	ie,#0
      	clr	f_run
      	inc 	num_bit
      	mov	a,num_bit
      	CJNE	A,#9,___here
      	mov	num_bit,#0
      	mov	a,dpl
      	cjne	a,buffer_dptrl1,___skip3
      	mov	a,dph
      	cjne	a,buffer_dptrh1,___skip3
      	mov	dptr,#string_code+3
      	mov	buffer_dptrh,dph
      	mov	buffer_dptrl,dpl
      	mov	index_byte_row,#0
      	DJNZ R0,___here
      ___skip3:
      	inc 	dptr
      	mov	buffer_dptrh,dph
      	MOV	buffer_dptrl,dpl
      	DJNZ R0,___here
      	clr	f_run
      	mov	num_bit,#0
      	
      	MOV 	DPTR,#string_code2+2	
      	mov	a,#0
      	movc	a,@a+dptr
      	mov	width_byte,a
      	MOV 	DPTR,#string_code2-6
      	lcall 	set_index_dptr
      	mov	buffer_dptrh1,dph
      	mov	buffer_dptrl1,dpl
      	MOV 	DPTR,#string_code2+3
      	mov	buffer_dptrh,dph
      	mov	buffer_dptrl,dpl
      	mov 	index_point,#0
      	mov	index_byte_row,#0
      	LCALL	init_interrupt	
      	MOV R0,#75	
      ___here1:
      	mov	ie,#82h
      	JNB	f_run,___here1
      	mov	ie,#0
      	clr	f_run
      	inc 	num_bit
      	mov	a,num_bit
      	CJNE	A,#9,___here1
      	MOV	num_bit,#0
      	mov	a,dpl
      	CJNE	A,buffer_dptrl1,___skip4
      	mov	a,dph
      	CJNE	A,buffer_dptrh1,___skip4
      	MOV	DPTR,#string_code2+3
      	mov	buffer_dptrh,dph
      	mov	buffer_dptrl,dpl
      	mov	index_byte_row,#0
      	DJNZ R0,___here1
      ___skip4:
      	inc 	dptr
      	mov	buffer_dptrh,dph
      	MOV	buffer_dptrl,dpl
      	DJNZ R0,___here1
      	clr	f_run
      	mov	num_bit,#0	
      	MOV 	DPTR,#string_code3+2	
      	mov	a,#0
      	movc	a,@a+dptr
      	mov	width_byte,a
      	MOV 	DPTR,#string_code3-6
      	lcall 	set_index_dptr
      	mov	buffer_dptrh1,dph
      	mov	buffer_dptrl1,dpl
      	MOV 	DPTR,#string_code3+3
      	mov	buffer_dptrh,dph
      	mov	buffer_dptrl,dpl
      	mov 	index_point,#0
      	mov	index_byte_row,#0
      	LCALL	init_interrupt	
      	MOV R0,#60	
      ___here2:
      	mov	ie,#82h
      	JNB	f_run,___here2
      	mov	ie,#0
      	clr	f_run
      	inc 	num_bit
      	mov	a,num_bit
      	CJNE	A,#9,___here2
      	MOV	num_bit,#0
      	mov	a,dpl
      	CJNE	A,buffer_dptrl1,___skip5
      	mov	a,dph
      	CJNE	A,buffer_dptrh1,___skip5
      	MOV	DPTR,#string_code3+3
      	mov	buffer_dptrh,dph
      	mov	buffer_dptrl,dpl
      	mov	index_byte_row,#0
      	DJNZ R0,___here2
      	LJMP MAIN1
      ___skip5:
      	inc 	dptr
      	mov	buffer_dptrh,dph
      	MOV	buffer_dptrl,dpl
      	DJNZ R0,___here2
      	LJMP MAIN1
      ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ;#######################################################################################
      ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      init_interrupt:
      	mov 	tmod,#01h
      	setb	tr0
      	setb	tf0
      	mov	ie,#82h
      	ret
      ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ;#######################################################################################
      ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ngat_timer0:
      	mov	th0,#0f3h
      	mov	tl0,#0a8h		;12^6/12/50hz/16 = 1250(fb1e) 
      	lcall 	shift_data
      	lcall	set_index_dptr
      	inc	index_byte_row
      	mov	a,index_byte_row
      	cjne	a,#num_row,___exit
      	mov	index_byte_row,#0
      	mov	dph,buffer_dptrh
      	mov	dpl,buffer_dptrl
      	setb	f_run				
      ___exit:
      	reti
      ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ;#######################################################################################
      ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      shift_data:
      	setb	E	;ta't ma`ng hi`nh de^? cho^'ng lem led
      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
      	mov 	index_reg1,#num_byte_collum	
      ___loop1: 	
      	mov 	index_reg2,#8
      	mov 	a,index_point
      	movc 	a,@a+dptr ;LAY DU LIEU TRONG BO NHO CT
      ___loop2: 	
      	clr 	c
      	rlc 	a
      	mov 	DATA_OUT,c
      	clr 	SH
      	setb 	SH
      	djnz 	index_reg2,___loop2	;dich du 8 bit
      	inc 	index_point
      	djnz 	index_reg1,___loop1	;dich du 8 byte
      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
      	mov	a,num_bit		;de kiem tra co zero
      	jz	___skip1
      	mov 	index_reg2,num_bit	
      	mov 	a,index_point		
      	movc 	a,@a+dptr ;LAY DU LIEU TRONG BO NHO CT
      ___loop3: 	
      	clr 	c
      	rlc 	a
      	mov 	DATA_OUT,c
      	clr 	SH
      	setb 	SH
      	djnz 	index_reg2,___loop3	;dich du 8 bit
      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
      ___skip1:
      	clr 	GREEN
      	setb 	GREEN
      	mov	data_row,index_byte_row	;chon hang va tich cuc hc154
      	clr	E
      	mov	index_point,#0
      	ret
      
      ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ;#######################################################################################
      ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      set_index_dptr:
      	mov	a,dpl
      	add	a,width_byte
      	mov	dpl,a
      	jnc	___skip2
      	inc 	dph
      ___skip2:
      	ret
      ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ;#######################################################################################
      ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      string_code:
      
      ;-------------------------------------------------------------------------------
      ; If font display distortion, please check Fonts format of setup.
      ; Source file / text :HoangPhat Kính Chào ae                              chúc ae vui ve và thành công Project này                                             
      ; Width x Height (pixels) :1000X16
      ;  Font Format/Size : Monochrome LCD Fonts ,Horizontal scan ,Big endian order/2000Byte
      ;  Font make date  : 9/27/2010 11:35:20 AM
      ;-------------------------------------------------------------------------------
      DB 0E8H,010H,07DH,;Width pixels,Height pixels,Width bytes
      DB 01FH,01FH,000H,000H,000H,000H,000H,03FH,0C1H,080H,000H,008H,00FH,0BEH,038H,000H,
      DB 030H,000H,00FH,023H,000H,0E0H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,0C0H,01CH,
      DB 000H,000H,000H,000H,000H,000H,000H,007H,000H,000H,000H,000H,001H,0C0H,001H,018H,
      DB 007H,000H,000H,030H,000H,000H,06CH,000H,000H,000H,01FH,0E0H,000H,001H,0C0H,000H,
      DB 002H,000H,000H,038H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,00EH,00EH,000H,
      DB 000H,000H,000H,000H,01CH,0E7H,080H,000H,018H,007H,018H,030H,000H,0F0H,000H,078H,
      DB 0EFH,000H,060H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,003H,0C0H,018H,000H,000H,000H,
      DB 000H,000H,000H,000H,007H,000H,000H,000H,000H,000H,0C0H,003H,078H,003H,000H,000H,
      DB 0F0H,000H,000H,0C4H,000H,000H,000H,00EH,070H,000H,001H,0C0H,000H,006H,000H,000H,
      DB 018H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,01CH,01CH,000H,000H,000H,000H,
      DB 000H,038H,0E3H,080H,000H,070H,006H,020H,000H,000H,070H,000H,0E0H,047H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,001H,0C0H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,00EH,038H,000H,000H,000H,070H,000H,000H,
      DB 000H,000H,000H,000H,01CH,070H,000H,000H,000H,000H,01CH,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,01CH,01CH,01EH,00DH,0C6H,060H,0F0H,038H,0E7H,
      DB 030H,06EH,0FCH,00EH,040H,063H,030H,0E6H,001H,0C0H,04EH,060H,0DCH,03CH,000H,0DCH,
      DB 03CH,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,0F3H,098H,067H,007H,080H,037H,00FH,001H,09CH,067H,00EH,003H,
      DB 038H,078H,00CH,0E1H,0B8H,01FH,0F3H,006H,0E3H,030H,0E6H,000H,078H,078H,066H,00FH,
      DB 000H,01CH,071H,0B1H,0E1H,087H,087H,0BFH,003H,030H,037H,067H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,01CH,01CH,077H,01BH,09EH,0F1H,0DEH,038H,0E7H,078H,0DCH,070H,
      DB 00EH,0C1H,0EFH,078H,0EFH,001H,0C0H,00EH,0F1H,0B8H,0EEH,001H,0B8H,05CH,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 003H,0B3H,0BDH,0E7H,01DH,080H,06EH,017H,007H,09DH,0E7H,03CH,00FH,038H,0B8H,03CH,
      DB 0E3H,070H,00EH,077H,08DH,0CFH,078H,0EFH,001H,0D9H,0DDH,0EFH,01DH,0E0H,01CH,077H,
      DB 0B7H,077H,08BH,09DH,09CH,00FH,078H,06EH,0F7H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,01FH,0FCH,0E7H,033H,08FH,073H,09CH,039H,0C7H,0B9H,09CH,0F0H,00FH,0C0H,0E7H,
      DB 0B8H,0F7H,003H,080H,00FH,073H,039H,0CEH,003H,038H,0DCH,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,007H,073H,0DCH,
      DB 0EEH,03BH,080H,0CEH,037H,003H,0CCH,0EEH,01CH,007H,099H,0B8H,01EH,066H,070H,01EH,
      DB 07BH,099H,0C7H,0B8H,0F7H,003H,0BBH,09CH,0F7H,039H,0C0H,01CH,0E3H,0FEH,073H,09BH,
      DB 0BBH,0BCH,007H,0B8H,0CEH,073H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,038H,038H,
      DB 0E7H,073H,08EH,0F3H,09CH,07FH,087H,073H,09CH,0E0H,00DH,0C1H,0C7H,078H,0EEH,003H,
      DB 080H,00EH,0E7H,039H,0CEH,007H,039H,0B8H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,006H,003H,0B8H,0EEH,030H,001H,
      DB 0CEH,06EH,003H,0C8H,0EEH,01CH,007H,093H,070H,01EH,04EH,070H,01CH,077H,039H,0C7H,
      DB 078H,0EEH,003H,003H,09CH,0EFH,039H,0C0H,03FH,0C3H,08EH,073H,0B7H,030H,038H,007H,
      DB 079H,0CEH,072H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,038H,039H,0C7H,063H,09EH,
      DB 0E3H,0B8H,070H,00EH,073H,01CH,0E0H,01DH,0E1H,0CFH,071H,0CEH,003H,080H,01CH,0E6H,
      DB 03BH,08EH,006H,03BH,0E0H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,00EH,007H,039H,0CEH,070H,001H,08EH,0F8H,001H,
      DB 0C9H,0CEH,038H,003H,097H,0C0H,00EH,04CH,070H,01CH,0E7H,031H,0CFH,071H,0CEH,007H,
      DB 007H,01DH,0EEH,03BH,080H,038H,007H,09CH,073H,07CH,070H,038H,00FH,071H,08EH,072H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,038H,039H,0CEH,0E7H,01CH,0E1H,0F0H,070H,
      DB 00EH,077H,038H,0E0H,01CH,0E1H,0CEH,071H,0CEH,003H,080H,01CH,0EEH,073H,09CH,00EH,
      DB 073H,080H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,00EH,007H,039H,0DEH,070H,003H,09CH,0E0H,001H,0D1H,0DEH,038H,
      DB 003H,0A7H,000H,00EH,09CH,0E0H,01CH,0E7H,073H,08EH,071H,0CEH,007H,007H,039H,0CEH,
      DB 01FH,000H,038H,007H,01CH,0E7H,070H,070H,038H,00EH,073H,09CH,074H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,038H,039H,0CEH,0E7H,05CH,0E3H,000H,070H,00EH,0E7H,03BH,
      DB 0E0H,01CH,0E1H,0CEH,071H,0DCH,003H,080H,09DH,0CEH,077H,09CH,00EH,077H,088H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,00EH,027H,071H,0FCH,071H,003H,09DH,0E2H,001H,0E1H,0FCH,038H,003H,0C7H,010H,
      DB 00FH,01CH,0E8H,03CH,0EEH,073H,0AEH,071H,0DCH,007H,017H,039H,0CEH,030H,000H,038H,
      DB 007H,01CH,0E7H,071H,071H,078H,00EH,073H,09DH,078H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,070H,071H,0DCH,0FFH,0B9H,0D3H,080H,0E0H,01CH,0EFH,0FDH,0D0H,03CH,0F3H,
      DB 0BCH,0EBH,09DH,001H,0C3H,039H,0DFH,0FBH,0B8H,00FH,0FBH,090H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,00EH,04EH,
      DB 077H,0DDH,072H,003H,0FEH,0E4H,001H,0C3H,0DDH,074H,003H,087H,020H,00EH,01FH,0F0H,
      DB 03BH,0CEH,0FFH,0DCH,0EBH,09DH,007H,027H,073H,09DH,038H,000H,070H,00EH,01DH,0C7H,
      DB 072H,072H,074H,01CH,0EBH,0FEH,078H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,0F8H,
      DB 0F8H,0F0H,067H,039H,0E3H,0F1H,0F8H,01CH,0F3H,039H,0E0H,07FH,0FBH,0DCH,0F3H,09EH,
      DB 000H,07CH,039H,0E6H,071H,0E0H,006H,071H,0E0H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,007H,08EH,079H,09EH,03CH,
      DB 001H,09CH,078H,001H,001H,09EH,078H,002H,003H,0C0H,008H,00CH,0E0H,03DH,0CFH,033H,
      DB 09CH,0F3H,09EH,003H,0C3H,0C3H,09EH,03FH,000H,0FCH,00EH,00FH,00EH,03CH,03CH,078H,
      DB 01CH,0F1H,09CH,070H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,006H,0F8H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,06FH,080H,000H,000H,000H,00EH,000H,000H,000H,000H,000H,000H,
      DB 060H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,00CH,078H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,0C7H,080H,000H,000H,000H,06EH,000H,000H,000H,000H,000H,006H,040H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,00CH,038H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,0C3H,080H,
      DB 000H,000H,000H,0ECH,000H,000H,000H,000H,000H,006H,080H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,007H,0E0H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,07EH,000H,000H,000H,000H,
      DB 070H,000H,000H,000H,000H,000H,007H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      
      string_code2:
      ;-------------------------------------------------------------------------------
      ; If font display distortion, please check Fonts format of setup.
      ; Source file / text :                     chay dong thu 2 mong cac pac tiep tuc ung ho                            
      ; Width x Height (pixels) :777X16
      ;  Font Format/Size : Monochrome LCD Fonts ,Horizontal scan ,Big endian order/1568Byte
      ;  Font make date  : 10/30/2010 5:33:52 PM
      ;-------------------------------------------------------------------------------
      DB 009H,010H,062H,;Width pixels,Height pixels,Width bytes
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,001H,0F0H,000H,000H,000H,000H,000H,00FH,080H,000H,000H,000H,000H,000H,000H,
      DB 0F8H,000H,000H,000H,031H,0E0H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,00FH,080H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,07CH,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,001H,0F0H,000H,000H,000H,000H,000H,00FH,000H,000H,000H,000H,007H,
      DB 000H,010H,0F8H,000H,000H,000H,079H,0F0H,000H,000H,000H,000H,000H,000H,000H,038H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,001H,00FH,080H,000H,000H,
      DB 000H,002H,000H,000H,000H,000H,000H,000H,000H,000H,003H,080H,07CH,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,001H,0F0H,000H,000H,000H,000H,000H,00FH,000H,000H,000H,
      DB 000H,00EH,000H,030H,0F8H,000H,000H,000H,079H,0F0H,000H,000H,000H,000H,000H,000H,
      DB 000H,070H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,003H,00FH,000H,
      DB 000H,000H,000H,006H,000H,000H,000H,000H,000H,000H,000H,000H,007H,000H,07CH,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,003H,0E0H,000H,000H,000H,000H,000H,01FH,000H,
      DB 000H,000H,000H,010H,000H,0E1H,0F0H,000H,000H,000H,073H,0F0H,000H,000H,000H,000H,
      DB 000H,000H,000H,080H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,00EH,
      DB 003H,000H,000H,000H,000H,01CH,000H,000H,000H,000H,000H,000H,000H,000H,008H,000H,
      DB 0F8H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,00FH,0C3H,0FFH,007H,0F0H,0FFH,038H,003H,
      DB 0FEH,00FH,0C3H,0F7H,083H,0E0H,003H,0FDH,0FFH,08FH,0DFH,000H,003H,0E0H,01FH,07DH,
      DB 0E0H,07EH,01FH,0BCH,01FH,000H,003H,0F0H,07FH,001H,0F8H,003H,0FFH,007H,0F0H,01FH,
      DB 080H,03FH,0FFH,00FH,0C3H,0FFH,000H,07FH,0FEH,0F8H,03FH,000H,07EH,0F9H,0FBH,0C1H,
      DB 0F0H,000H,0FFH,0C0H,0FCH,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,03CH,0E3H,0EFH,01EH,0F8H,07CH,
      DB 020H,00FH,0BEH,03DH,0E1H,0FFH,08FH,0B8H,001H,0E1H,0F7H,087H,0CFH,000H,007H,0C0H,
      DB 00FH,0BFH,0F1H,0EFH,00FH,0FCH,07DH,0C0H,00FH,039H,0EFH,087H,09CH,001H,0FFH,09EH,
      DB 0F8H,079H,0C0H,01EH,01FH,03DH,0E1H,0FFH,080H,03CH,03EH,078H,0F3H,080H,03EH,078H,
      DB 0FFH,0C7H,0DCH,000H,0FBH,0C3H,0DEH,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,079H,0E7H,0CFH,01EH,
      DB 0F8H,03CH,040H,00FH,03EH,079H,0F3H,0E7H,09FH,038H,003H,0C3H,0E7H,08FH,09EH,000H,
      DB 01EH,000H,01FH,039H,0F3H,0CFH,09FH,03CH,0F9H,0C0H,01EH,079H,0EFH,08FH,03CH,003H,
      DB 0CFH,09EH,0F8H,0F3H,0C0H,03CH,03EH,079H,0F3H,0CFH,080H,078H,07CH,0F1H,0E7H,080H,
      DB 07CH,0F1H,0F3H,0CFH,09CH,001H,0F3H,0C7H,09FH,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,0F9H,0C7H,
      DB 0CFH,00EH,0F8H,03EH,080H,01FH,03CH,0F9H,0F3H,0E7H,09FH,038H,003H,0C3H,0E7H,08FH,
      DB 09EH,000H,030H,000H,01FH,039H,0E7H,0CFH,09FH,03CH,0F9H,0C0H,03EH,070H,0EFH,09FH,
      DB 038H,003H,0CFH,08EH,0F9H,0F3H,080H,03CH,03EH,0F9H,0F3H,0CFH,080H,078H,07CH,0F3H,
      DB 0E7H,000H,07CH,0F1H,0F3H,0CFH,09CH,001H,0F3H,0CFH,09FH,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 0F8H,007H,0CFH,03FH,0F0H,03FH,000H,01FH,03CH,0F9H,0F3H,0E7H,08FH,070H,003H,0C3H,
      DB 0E7H,08FH,09EH,000H,040H,000H,01FH,039H,0E7H,0CFH,09FH,03CH,07BH,080H,03EH,003H,
      DB 0FFH,01FH,000H,003H,0CFH,0BFH,0F1H,0F0H,000H,03CH,03EH,0FFH,0F3H,0CFH,080H,078H,
      DB 07CH,0F3H,0E0H,000H,07CH,0F1H,0F3H,0C7H,0B8H,001H,0F3H,0CFH,09FH,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,001H,0F0H,00FH,09EH,079H,0F0H,01EH,000H,03EH,07DH,0F3H,0E7H,0CFH,01FH,0E0H,
      DB 007H,087H,0CFH,01FH,03CH,001H,0FCH,040H,03EH,073H,0EFH,09FH,03EH,078H,0FFH,000H,
      DB 07CH,007H,09FH,03EH,000H,007H,09FH,0F9H,0F3H,0E0H,000H,078H,07DH,0F0H,007H,09FH,
      DB 080H,0F0H,0F9H,0E7H,0C0H,000H,0F9H,0E3H,0E7H,08FH,0F0H,003H,0E7H,09FH,03EH,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,001H,0F0H,04FH,09EH,079H,0F0H,01EH,000H,01EH,078H,0F3H,0E7H,0CFH,
      DB 030H,000H,007H,097H,0CFH,01FH,03CH,003H,0FFH,080H,03EH,073H,0C7H,09FH,03EH,079H,
      DB 080H,000H,07CH,017H,09FH,03EH,008H,007H,09FH,079H,0F3H,0E0H,080H,079H,07CH,0F0H,
      DB 007H,09FH,000H,0F2H,0F9H,0E7H,0C1H,000H,0F9H,0E3H,0E7H,098H,000H,003H,0E7H,08FH,
      DB 03EH,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,0F1H,08FH,09EH,07BH,0F0H,01CH,000H,01EH,0F8H,0F7H,
      DB 087H,0CEH,03FH,0E0H,007H,0A7H,0CFH,01FH,078H,003H,0FFH,000H,03EH,073H,0C7H,0BCH,
      DB 03EH,071H,0FFH,000H,03CH,067H,0BFH,01EH,030H,007H,0BEH,07BH,0F1H,0E3H,000H,07AH,
      DB 07CH,0F0H,0C7H,0BEH,000H,0F4H,0FBH,0C3H,0C6H,000H,0FBH,0C3H,0E7H,01FH,0F0H,003H,
      DB 0E7H,08FH,078H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,07EH,03FH,0FEH,07DH,0F0H,008H,000H,00FH,
      DB 0FCH,07EH,01FH,0FFH,03FH,0F0H,007H,0DFH,0FFH,00FH,0FCH,004H,07EH,000H,0FFH,0FFH,
      DB 0E3H,0F0H,0FFH,0F9H,0FFH,080H,01FH,087H,0DFH,00FH,0C0H,00FH,0FCH,07DH,0F0H,0FCH,
      DB 000H,07DH,0FCH,07FH,00FH,0FCH,000H,0F8H,07FH,0E1H,0F8H,000H,07FH,0EFH,0FFH,09FH,
      DB 0F8H,00FH,0FFH,087H,0E0H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,010H,
      DB 000H,000H,0E0H,000H,000H,000H,03FH,0F0H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,001H,0FFH,080H,000H,000H,000H,000H,000H,00FH,078H,000H,
      DB 000H,000H,000H,000H,000H,000H,00FH,078H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,01FH,0F8H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 007H,020H,000H,000H,000H,000H,000H,000H,060H,060H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,003H,003H,000H,000H,000H,000H,000H,000H,00EH,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,00EH,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,030H,030H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,00FH,040H,000H,000H,000H,000H,000H,000H,0C0H,0E0H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,006H,007H,000H,000H,000H,000H,000H,
      DB 000H,01EH,000H,000H,000H,000H,000H,000H,000H,000H,01EH,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,060H,070H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      
      
      string_code3:
      ;-------------------------------------------------------------------------------
      ; If font display distortion, please check Fonts format of setup.
      ; Source file / text :                     chay dong thu 3 ok nhe con can j nua lien he sau                           
      ; Width x Height (pixels) :596X16
      ;  Font Format/Size : Monochrome LCD Fonts ,Horizontal scan ,Big endian order/1200Byte
      ;  Font make date  : 10/30/2010 4:49:48 PM
      ;-------------------------------------------------------------------------------
      DB 054H,010H,04BH,;Width pixels,Height pixels,Width bytes
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,018H,000H,
      DB 000H,000H,000H,0C0H,000H,000H,000H,000H,030H,000H,000H,000H,000H,000H,060H,000H,
      DB 000H,0C0H,000H,000H,000H,000H,000H,000H,000H,000H,000H,003H,000H,000H,000H,000H,
      DB 003H,030H,000H,000H,00CH,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,038H,000H,000H,000H,001H,0C0H,000H,
      DB 000H,000H,002H,070H,000H,000H,03CH,000H,000H,0E0H,000H,001H,0C0H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,003H,000H,000H,000H,000H,007H,030H,000H,000H,01CH,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,018H,000H,000H,000H,000H,0C0H,000H,000H,000H,006H,030H,000H,
      DB 000H,0CEH,000H,000H,060H,000H,000H,0C0H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,003H,000H,000H,000H,00CH,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,018H,
      DB 000H,000H,000H,000H,0C0H,000H,000H,000H,006H,030H,000H,000H,086H,000H,000H,060H,
      DB 000H,000H,0C0H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,003H,000H,000H,000H,00CH,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,00FH,01BH,087H,0BEH,070H,00EH,0C3H,
      DB 0C3H,070H,0F0H,00FH,0B7H,039H,0C0H,006H,000H,078H,067H,081H,0B8H,0DCH,01CH,000H,
      DB 0F0H,078H,06EH,000H,078H,078H,0DCH,003H,001H,0B9H,0CEH,03CH,003H,030H,0E3H,070H,
      DB 00DH,0C1H,0C0H,01DH,01EH,073H,080H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,019H,09CH,0CCH,0CCH,020H,019H,0C6H,067H,099H,09EH,006H,039H,
      DB 098H,0C0H,00CH,000H,0CCH,062H,003H,0CCH,0E6H,032H,001H,098H,0CCH,0F3H,000H,0CCH,
      DB 0CDH,0E6H,007H,003H,0CCH,0C6H,066H,003H,071H,097H,098H,00EH,063H,020H,023H,033H,
      DB 031H,080H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,030H,
      DB 098H,0CCH,0CCH,020H,030H,0CCH,033H,019H,08CH,006H,031H,098H,0C0H,01EH,001H,086H,
      DB 064H,001H,08CH,0C6H,063H,003H,009H,086H,063H,001H,084H,0CCH,0C6H,003H,001H,08CH,
      DB 0C6H,066H,003H,033H,01BH,018H,00CH,066H,030H,021H,033H,031H,080H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,030H,018H,0C1H,0C6H,040H,030H,
      DB 0CCH,033H,019H,08CH,006H,031H,098H,0C0H,007H,001H,086H,068H,001H,08CH,0C6H,07FH,
      DB 003H,001H,086H,063H,001H,080H,01CH,0C6H,003H,001H,08CH,0C6H,00EH,003H,033H,0FBH,
      DB 018H,00CH,067H,0F0H,038H,007H,031H,080H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,030H,018H,0C6H,0C6H,040H,030H,0CCH,033H,018H,0CCH,006H,
      DB 031H,098H,0C0H,003H,001H,086H,078H,001H,08CH,0C6H,060H,003H,001H,086H,063H,001H,
      DB 080H,06CH,0C6H,003H,001H,08CH,0C6H,036H,003H,033H,003H,018H,00CH,066H,000H,01EH,
      DB 01BH,031H,080H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 030H,018H,0CCH,0C3H,080H,030H,0CCH,033H,018H,0F8H,006H,031H,098H,0C0H,003H,001H,
      DB 086H,06CH,001H,08CH,0C6H,060H,003H,001H,086H,063H,001H,080H,0CCH,0C6H,003H,001H,
      DB 08CH,0C6H,066H,003H,033H,003H,018H,00CH,066H,000H,007H,033H,031H,080H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,038H,098H,0CCH,0C3H,080H,
      DB 030H,0CCH,033H,019H,000H,006H,031H,098H,0C0H,003H,001H,086H,066H,001H,08CH,0C6H,
      DB 071H,003H,089H,086H,063H,001H,0C4H,0CCH,0C6H,003H,001H,08CH,0C6H,066H,003H,033H,
      DB 08BH,018H,00CH,067H,010H,021H,033H,031H,080H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,01FH,018H,0CCH,0C1H,080H,019H,0E6H,063H,019H,0FCH,
      DB 006H,0B1H,099H,0E0H,0C6H,000H,0CCH,063H,001H,08CH,0C6H,03EH,001H,0F0H,0CCH,063H,
      DB 000H,0F8H,0CCH,0C6H,003H,001H,08CH,0CFH,066H,003H,031H,0F3H,018H,00CH,063H,0E0H,
      DB 031H,033H,033H,0C0H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,00EH,03DH,0E7H,0E1H,000H,00EH,0C3H,0C7H,0BCH,0FEH,007H,07BH,0CEH,0C0H,0F8H,
      DB 000H,078H,0F7H,083H,0DFH,0EFH,01CH,000H,0E0H,078H,0F7H,080H,070H,07FH,0EFH,003H,
      DB 003H,0DEH,076H,03FH,007H,0F8H,0E7H,0BCH,01EH,0F1H,0C0H,02EH,01FH,09DH,080H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,001H,
      DB 000H,000H,000H,000H,001H,002H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,003H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,002H,000H,000H,000H,000H,002H,
      DB 002H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,003H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,01EH,000H,000H,000H,000H,003H,004H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 01AH,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
      
      
      end
      [ATTACH]25571[/ATTACH]
      khá dài vì cai mã font em làm dài để test cho chuẩn lun
      thank bác nhiều đây cái thật sự mình cân không riêng gi mình đâu các bác khác thấy bài này rát ý nghĩa bác cố gắng nhé chúc thành công

      Comment


      • xin hoi ban hoangphat dung chuong trinh gi dich ASM sang HEX vay, vi minh lay file code ASM cua ban dich sang HEX thi no chi dich ra file co dung luong co 1k va khong chay duoc, hay co phai file code ma ban cho co loi gi khong. mong ban tra loi giup , cam on ban.

        Comment


        • Nguyên văn bởi danh Xem bài viết
          xin hoi ban hoangphat dung chuong trinh gi dich ASM sang HEX vay, vi minh lay file code ASM cua ban dich sang HEX thi no chi dich ra file co dung luong co 1k va khong chay duoc, hay co phai file code ma ban cho co loi gi khong. mong ban tra loi giup , cam on ban.
          pác dịch ko dc rồi bài này dịch ra 3k pác lên mạng down phân mềm Batronix Pro-Studio về viết ct nhá nó là phân mềm chuyên nghiệp nên dịch nó sẽ loại bỏ giúp file dịch ra nhẹ hơn
          8051 là con em viết thành thạo. em sẵn sàng giúp đỡ các pác nếu em có thể
          liên lạc với em qua địa chi email: Mob: 01882.076.989

          Comment


          • gửi hoangphat, mình dùng Reads-51, MSC-51IDE, VIETNAM 8051, ASEM ... các chương trình này mình dùng và dịch thử các file ASM led matrix 16x64 rất tốt nhưng chỉ có file ASM 16x128 của bạn là các chương trình này báo rất nhiều lỗi ở phần code data và không dịch được, không biết mấy pác khác có dịch thử file ASM của bạn hoangphat chưa hay chỉ dùng file HEX của bạn hoangphat để mô phỏng thôi.
            Bạn hoangphat ơi sao các chương trình của bạn (http://my.opera.com/Phankeyelectronic/links/) mình không download được mong bạn hướng dẫn nếu không thể công khai ở đây thì bạn gửi vào mail cho mình danh2304@yahoo.com.
            mình nghĩ không phải riêng mình mà tất cả mọi người vào đây đều muốn nói lời cảm ơn bạn rất nhiều vì chủ đề của bạn mở ra giúp cho rất nhiều người đam mê lĩnh vực này nhưng không có điều kiện được trao đổi học hỏi thêm rất nhiều, rất tiếc là mình vẫn chưa dịch đc và làm thử, một lần nữa "thanhkiu vina miêu"

            Comment


            • mình gửi lại cho hoangphat đ/c mail của mình vì đ/c thiếu đuôi .vn đây là đ/c đúng danh2304@yahoo.com.vn

              Comment


              • Cám ơn Bạn đã bỏ t.gian .Mình cung có biết chut ít về đề tài này ,Hy vong giúp đươc ít nhiều !

                Comment


                • Nguyên văn bởi danh Xem bài viết
                  gửi hoangphat, mình dùng Reads-51, MSC-51IDE, VIETNAM 8051, ASEM ... các chương trình này mình dùng và dịch thử các file ASM led matrix 16x64 rất tốt nhưng chỉ có file ASM 16x128 của bạn là các chương trình này báo rất nhiều lỗi ở phần code data và không dịch được, không biết mấy pác khác có dịch thử file ASM của bạn hoangphat chưa hay chỉ dùng file HEX của bạn hoangphat để mô phỏng thôi.
                  Bạn hoangphat ơi sao các chương trình của bạn (http://my.opera.com/Phankeyelectronic/links/) mình không download được mong bạn hướng dẫn nếu không thể công khai ở đây thì bạn gửi vào mail cho mình danh2304@yahoo.com.
                  mình nghĩ không phải riêng mình mà tất cả mọi người vào đây đều muốn nói lời cảm ơn bạn rất nhiều vì chủ đề của bạn mở ra giúp cho rất nhiều người đam mê lĩnh vực này nhưng không có điều kiện được trao đổi học hỏi thêm rất nhiều, rất tiếc là mình vẫn chưa dịch đc và làm thử, một lần nữa "thanhkiu vina miêu"
                  ah bít lỗi j rồi ko nói rõ tưởng lỗi phân mềm dịch
                  pác có chút kiên nhẫn ngồi xóa hết mấy dấu phẩy cuối mỗi dòng data để dịch tốt hơn
                  xóa xong dịch ok rồi ct trên ko lỗi j hết
                  :d lỗi nhỏ quên lưu ý cho ae để ae chờ câu trả lời lâu quá cũng ngại
                  8051 là con em viết thành thạo. em sẵn sàng giúp đỡ các pác nếu em có thể
                  liên lạc với em qua địa chi email: Mob: 01882.076.989

                  Comment


                  • chào pác hoangphat không hiểu sao mình không gửi file trên này được nên gửi vào mail cho pác file ASM của pác sau khi đã bỏ hết dấu phẩy sau mỗi dòng data và file HEX dịch được nhưng chạy chỉ hiển thi mấy sọc và file text các lỗi báo khi dịch sang HEX mong pac xem giúp. Pác gửi giúp chương trình Batronix Pro-Studio (vì không download được) vào địa chỉ danh2304@yahoo.com.vn để mình dùng nó dịch thử nha , thank pác nhiều

                    Comment


                    • down batronix tại đây
                      http://www.megafileupload.com/en/fil...tudio-rar.html
                      chúc thành công
                      8051 là con em viết thành thạo. em sẵn sàng giúp đỡ các pác nếu em có thể
                      liên lạc với em qua địa chi email: Mob: 01882.076.989

                      Comment


                      • To HoangPhat:
                        Nều làm bảng 32x128 hay dài hơn và bảng 64X64 với 89 có khả thi không bạn!
                        Phải thêm hay làm thêm mạch gì để chạy được bảng lớn cỡ đó!
                        Để hiển thị hình ảnh thì phải làm thế nào nhỉ!
                        chúc cả nhà vui!

                        Comment


                        • Nguyên văn bởi hoangphat Xem bài viết
                          down batronix tại đây
                          http://www.megafileupload.com/en/fil...tudio-rar.html
                          chúc thành công
                          Bạn vui lòng cho xin Password để giải nén.

                          Thank you.
                          PCT COMPUTER
                          (Để không làm ảnh hưởng đến thời gian và công việc cá nhân. Xin vui lòng không nhắn tin và điện thoại)

                          Comment


                          • để làm bảng lớn hơn thì thêm ram để để tốc độ xử lý của 89 dc cải thiện
                            để hiển thị hình ảnh thì đâu có j khó pác vào LCD Font Maker vẽ hình thay vì tạo Font chữ để hiển thị pác thik vẽ hươu vẽ vượn j thì vẽ.
                            chúc vui
                            >PCTCOM
                            pass đây: 6565487412134654 PK
                            good luck!!
                            8051 là con em viết thành thạo. em sẵn sàng giúp đỡ các pác nếu em có thể
                            liên lạc với em qua địa chi email: Mob: 01882.076.989

                            Comment


                            • bác úp lại file nangcap.asm down mãi dơn mãi mà ko dc. thanks

                              Comment


                              • ok đây là code mạch matrix chạy nhìu hịu ứng
                                Code:
                                DATAI BIT p2.4
                                SHW BIT p2.6
                                CLK BIT p2.7
                                Resetc BIT p2.5
                                
                                dv equ 20h
                                chuc equ 21h
                                dcdv equ 24h
                                dcchuc equ 25h
                                
                                ORG 00h
                                SJMP mAin
                                ;oRg 01bh
                                ;SJMP ngAt
                                oRg 30h
                                
                                MAIN:
                                LCALL RUNTORIGHT
                                LCALL RUNDOWN
                                LCALL RUNTOLEFT
                                LCALL RUNTEXT
                                LCALL TEXT1
                                LCALL TEXT2
                                ;LCALL DEM
                                LJMP MAIN
                                ;////////////////////////dem tu 0- > 9//////////////////////
                                DEM:
                                MOV tmod,#10h 
                                SETB EA 
                                SETB ET1 
                                MOV TH1,#high(-50000) 
                                MOV TL1,#low(-50000) 
                                SETB TR1 
                                MOV R7,#00h 
                                MOV 20h,#00h 
                                MOV 21h,#00h 
                                CLR SHW 
                                CLR CLK 
                                
                                
                                td2:
                                
                                
                                LCALL TANG 
                                MOV R4,#20 
                                
                                xoAy20lAn1:
                                
                                MOV DPTR,#600h 
                                MOV R2,#32 
                                CLR DATAI 
                                
                                xoAy32bit1:
                                
                                MOV A,R2 
                                CJNE A,#24,htd 
                                MOV A,24h 
                                ADD A,#7 
                                MOV dpl,A 
                                LCALL quet2 
                                
                                htd:
                                
                                MOV A,R2 
                                CJNE A,#14,htc 
                                MOV A,25h 
                                ADD A,#7 
                                MOV dpl,A 
                                LCALL quet2 
                                
                                htc:
                                
                                SETB SHW 
                                CLR SHW 
                                MOV P0,#0FFh
                                SETB CLK 
                                CLR CLK 
                                MOV 70H,#50 
                                LCALL DELAY 
                                SETB DATAI 
                                DJNZ R2,xoAy32bit1 
                                DJNZ R4,xoAy20lAn1 
                                MOV A,chuc 
                                CJNE A,#1,td2 
                                CLR tR1 
                                SJMP RUNTEXT
                                
                                quet2:;hien thi so tAi diA chi duoc nAp vAo dpl
                                MOV R6,#8 
                                X1X11:
                                SETB SHW 
                                CLR SHW 
                                MOV P0,#0FFh 
                                SETB CLK 
                                CLR CLK 
                                MOV A,#00h 
                                MOVC A,@A+DPTR  
                                MOV P0,A 
                                MOV 70H,#50  
                                LCALL DELAY 
                                MOV A,dpl 
                                DEC A 
                                MOV dpl,A  
                                DEC R2  
                                DJNZ R6,X1X11 
                                RET  
                                
                                ngAt:;sAu 1s TANG hAng dv len 1
                                
                                PUSH 0e0h 
                                CLR tR1 
                                MOV th1,#high(-50000) 
                                MOV tl1,#low(-50000) 
                                INC R7 
                                MOV P1,20h 
                                MOV A,R7  
                                CJNE A,#20,exit 
                                MOV R7,#00h 
                                INC 20h 
                                exit:
                                POP 0e0h 
                                SETB tR1 
                                RETI  
                                
                                TANG:;neu hAng dv = 10 thi hAngdv = 0 hAng chuc TANG1
                                MOV A,20h 
                                CJNE A,#10,cd 
                                INC 21h 
                                MOV 20h,#00h 
                                MOV A,21h 
                                CJNE A,#10,cd 
                                MOV 21h,#0 
                                cd:
                                MOV B,#8 
                                MOV A,21h 
                                MUL Ab 
                                MOV 25h,A
                                MOV B,#8 
                                MOV A,20h 
                                MUL Ab 
                                MOV 24h,A 
                                RET  
                                ;_________________________________________________________________
                                RUNTOLEFT:
                                ;////////////////////////////chAy tu phAi quA tRAi///////////////
                                MOV DPTR,#500h 
                                MOV R4,#32 
                                X3X: MOV R5,#30h 
                                X2X: CLR DATAI
                                MOV R2,#32 
                                MOV dpl,R4 
                                X1X: SETB SHW 
                                CLR SHW
                                MOV P0,#0FFh 
                                SETB CLK 
                                CLR CLK 
                                MOV A,#0 
                                MOVC A,@A+DPTR  
                                MOV P0,A 
                                MOV 70H,#10
                                LCALL DELAY 
                                SETB DATAI
                                MOV A,dpl 
                                DEC A  
                                MOV dpl,A   
                                DJNZ R2,X1X  
                                DJNZ R5,X2X  
                                INC R4  
                                CJNE R4,#60h,X3X   
                                RET
                                ;_________________________________________________________________
                                RUNTORIGHT:
                                ;/////////tu phAi quA tRAi///////////////////
                                MOV DPTR,#500h  
                                MOV R4,#89  
                                X6X: MOV R5,#30h  
                                X5X: CLR DATAI
                                MOV R2,#32 
                                MOV dpl,R4 
                                X4X: SETB SHW   
                                CLR SHW  
                                MOV P0,#0FFh  
                                SETB CLK  
                                CLR CLK  
                                MOV A,#0  
                                MOVC A,@A+DPTR     
                                MOV P0,A 
                                MOV 70H,#10 
                                LCALL DELAY   
                                SETB DATAI 
                                MOV A,dpl  
                                DEC A  
                                MOV dpl,A   
                                DJNZ R2,X4X  
                                DJNZ R5,X5X  
                                DEC R4  
                                CJNE R4,#32,X6X 
                                CLR Resetc 
                                SETB Resetc
                                RET
                                ;_________________________________________________________________
                                RUNDOWN:
                                ;//////////////sAng tu tRen xuong//////////////////////////
                                MOV R0,#1 
                                MOV 23h,#1 
                                X9X: MOV 22h,#20 
                                X8X:
                                MOV DPTR,#500h 
                                MOV R2,#32
                                MOV dpl,#58  
                                CLR DATAI  
                                X7X: SETB SHW  
                                CLR SHW  
                                
                                MOV A,#00h
                                MOVc A,@A+dptR
                                MOV 21h,A
                                
                                CLR c
                                MOV 20h,R0
                                MOV R1,#0FFh
                                
                                s1: MOV A,21h; xoAy A voi R1 R0 lAn
                                Rlc A
                                MOV 21h,A
                                MOV A,R1
                                RLC A 
                                MOV R1,A
                                DJNZ 20h,s1
                                MOV P0,#0FFh
                                
                                SETB CLK
                                CLR CLK
                                
                                MOV P0,R1
                                MOV 70H,#90
                                
                                LCALL DELAY 
                                SETB DATAI
                                
                                MOV A,dpl
                                DEC A
                                MOV dpl,A
                                
                                DJNZ R2,X7X
                                
                                
                                DJNZ 22h,X8X
                                INC R0
                                CJNE R0,#17,X9X
                                MOV R0,#1
                                DJNZ 23h,X9X
                                RET
                                ;_________________________________________________________________
                                RUNTEXT:
                                ;//////////////////sAng lAn luot t > d > c/////////////////////////////
                                
                                MOV 20h,#1
                                MOV 21h,#1
                                MOV 22h,#1
                                MOV R5,#5
                                ADH:
                                MOV R4,#20
                                xoAy20lAn:
                                MOV dptR,#500h
                                MOV R2,#32
                                CLR DATAI
                                xoAy32bit:
                                
                                MOV A,R2
                                CJNE A,20h,TEXTS1
                                MOV dpl,#55
                                LCALL quet1
                                
                                TEXTS1:
                                MOV A,20h
                                CJNE A,#31,TEXTS2
                                MOV A,R2
                                CJNE A,21h,TEXTS2
                                MOV dpl,#47
                                LCALL quet1
                                
                                TEXTS2:
                                MOV A,21h
                                CJNE A,#23,TEXTS3
                                MOV A,R2
                                CJNE A,22h,TEXTS3
                                MOV dpl,#39
                                LCALL quet1
                                
                                TEXTS3:
                                MOV A,21h
                                CJNE A,#15,TEXTSN
                                MOV A,R2
                                CJNE A,22h,TEXTSN
                                MOV dpl,#31
                                LCALL quet1
                                
                                ;TEXTS4:
                                ;MOV A,22h
                                ;CJNE A,#07,TEXTSN
                                ;MOV A,R2
                                ;CJNE A,26h,TEXTSN
                                ;MOV dpl,#31
                                ;LCALL quet1
                                
                                TEXTSN:
                                CJNE R2,#0,jump
                                SJMP jump1
                                jump:
                                SETB SHW
                                CLR SHW
                                MOV P0,#0FFh
                                SETB CLK
                                CLR CLK
                                MOV 70H,#20
                                LCALL DELAY 
                                SETB DATAI
                                
                                DJNZ R2,xoAy32bit
                                jump1:
                                DJNZ R4,xoAy20lAn
                                
                                ;TANG 20h len 28 thi dung Roi TANG 21h len 20 thi dung Roi TANG 22h len 12 thi dung//
                                
                                MOV A,20h
                                CJNE A,#31,INC0
                                SJMP NOINC0
                                INC0:
                                INC 20h
                                SJMP ADH
                                
                                NOINC0:
                                MOV A,21H
                                CJNE A,#23,INC1
                                SJMP NOINC1
                                INC1:
                                INC 21H 
                                SJMP ADH
                                
                                NOINC1:
                                MOV A,22h
                                CJNE A,#15,INC2
                                SJMP NOINC2
                                INC2:
                                INC 22h
                                SJMP ADH
                                
                                ;NOINC2:
                                ;MOV A,26h
                                ;CJNE A,#07,INC3
                                ;SJMP NOINC3
                                ;INC3:
                                ;INC 26h
                                ;SJMP ADH
                                
                                NOINC2:
                                ;////
                                DJNZ R5,ADH
                                RET
                                
                                
                                quet1:
                                MOV R6,#8
                                X1X1:
                                SETB SHW
                                CLR SHW
                                MOV P0,#0FFh
                                SETB CLK
                                CLR CLK
                                MOV A,#00h
                                MOVc A,@A+dptR
                                MOV P0,A
                                MOV 70H,#50
                                LCALL DELAY 
                                MOV A,dpl
                                DEC A
                                MOV dpl,A
                                DJNZ R2,exit1
                                Ret
                                exit1:
                                DJNZ R6,X1X1
                                Ret
                                ;_________________________________________________________________
                                TEXT1:
                                ;///////////////sAngdontu tRen xuong/////////////////////
                                MOV R5,#1
                                MOV R1,#00h
                                MOV 24h,#8
                                
                                X1X01: MOV R4,#1
                                X9X1: MOV R3,#20
                                X8X1: MOV R0,60h
                                MOV dptR,#500h
                                MOV R2,#32
                                MOV dpl,#58
                                CLR DATAI
                                
                                X7X1: SETB SHW
                                CLR SHW
                                
                                MOV A,#00h
                                MOVc A,@A+dptR
                                Anl A,R1
                                MOV 21h,A
                                MOV 25h,R5; lAy bit thu R5
                                MOV 20h,R4
                                MOV A,#00h
                                MOVc A,@A+dptR
                                z31:
                                RRc A
                                DJNZ 25h,z31
                                ;(lAy 1bit vAo co c)
                                MOV A,#00h
                                z21: RRC A
                                DJNZ 20h,z21
                                MOV 22h,A
                                ;(xoAy R4 lAn)
                                ;xuAt RA
                                
                                MOV A,22h
                                ORL A,21h
                                MOV P0,#0FFH
                                SETB CLK
                                CLR CLK
                                MOV P0,A
                                MOV 70H,#50
                                LCALL DELAY 
                                SETB DATAI
                                MOV A,dpl
                                DEC A
                                MOV dpl,A
                                DJNZ R2,X7X1
                                DJNZ R3,X8X1
                                MOV A,24h
                                CJNE A,#1,z41
                                SJMP z51
                                z41: INC R4 
                                MOV A,R4
                                CJNE A,24h,X9X1
                                ;//////////////////////////////
                                z51: SETB c ;khi R4 = 0 hAng thi TANG 1hAng vA giAm so lAn xoAy di 1
                                MOV A,R1
                                Rlc A
                                MOV R1,A
                                INC R5 ;lAy bit thu R5 TANG
                                DJNZ 24h,X1X01 ;giAm so lAn xoAy di 1
                                RET
                                ;_________________________________________________________________
                                TEXT2:
                                ;///////////////sAng don tu duoi len///////////////////
                                MOV R5,#1
                                MOV R1,#00h
                                MOV 24h,#8
                                
                                X1X02: MOV R4,#1
                                X9X2: MOV R3,#20
                                X8X2: MOV R0,60h
                                MOV dptR,#500h
                                MOV R2,#32
                                MOV dpl,#58
                                CLR DATAI
                                
                                X7X2: 
                                SETB SHW
                                CLR SHW
                                
                                MOV A,#00h
                                MOVc A,@A+dptR
                                Anl A,R1
                                MOV 21h,A
                                ;////////////////////////////////////////////////////////////
                                MOV 25h,R5; lAy bit thu R5
                                MOV 20h,R4
                                MOV A,#00h
                                MOVc A,@A+dptR
                                z32:
                                Rlc A
                                DJNZ 25h,z32
                                ;(lAy 1bit vAo co c)
                                MOV A,#00h
                                z22: Rlc A
                                DJNZ 20h,z22
                                MOV 22h,A
                                ;(xoAy R4 lAn)
                                ;///////xuAt RA///////////////////////////////////
                                
                                MOV A,22h
                                oRl A,21h
                                MOV P0,#0FFH
                                SETB CLK
                                CLR CLK
                                MOV P0,A
                                MOV 70H,#50
                                LCALL DELAY 
                                SETB DATAI
                                MOV A,dpl
                                DEC A
                                MOV dpl,A
                                DJNZ R2,X7X2
                                DJNZ R3,X8X2
                                MOV A,24h
                                CJNE A,#1,z42
                                SJMP z52
                                z42: INC R4
                                MOV A,R4
                                CJNE A,24h,X9X2
                                ;///////////////////////////////////////
                                z52: SETB C ;khi R4 = 0 hAng thi TANG 1hAng vA giAm so lAn xoAy di 1
                                MOV A,R1
                                RRc A
                                MOV R1,A
                                INC R5 ;lAy bit thu R5 TANG
                                DJNZ 24h,X1X02 ;giAm so lAn xoAy di 1
                                RET
                                
                                
                                
                                DELAY: 
                                DJNZ 70h,$
                                RET  
                                ORG 500h
                                DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
                                DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
                                DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
                                DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
                                ;db 7eh,0ffh,0ffh,0c3h,0e7h,0e7h,66h,00h
                                ;db 0ffh,0ffh,0dbh,0c3h,0ffh,0ffh,7eh,00h
                                ;db 07h,03h,0ffh,0ffh,0ffh,03h,07h,00h
                                ;DB     7H,3H,0DDH,0DEH,0DDH,3H,7H,0FFH 
                                DB     7H,3H,0DDH,0DEH,0DDH,3H,7H,0FFH 
                                DB     0H,0H,76H,76H,76H,1H,89H,0FFH 
                                DB     81H,0H,7EH,7EH,7EH,3CH,0BDH,0FFH 
                                DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH 
                                DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH 
                                DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
                                DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
                                DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
                                DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
                                DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
                                DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
                                
                                oRg 600h ;so 0
                                DB     0FFH,83H,1H,7DH,1H,83H,0FFH    
                                ;oRg 608h ;so 1
                                DB     0FFH,7DH,0H,0H,7FH,0FFH,0FFH
                                ;oRg 610h ;so2
                                DB     0FFH,3DH,1CH,4EH,66H,71H,0FFH 
                                ;oRg 618h ;so 3
                                DB     0FFH,0BBH,39H,6DH,1H,93H,0FFH  
                                ;oRg 620h ;so4
                                DB     0CFH,0C7H,0D3H,0D9H,5H,7H,0FFH  
                                ;oRg 628h ;so 5
                                DB     0FFH,0B1H,21H,6DH,0DH,9DH,0FFH  
                                ;oRg 630h ;so6
                                DB     0FFH,83H,1H,6DH,0DH,9BH,0FFH  
                                ;oRg 638h ;so7
                                DB     0FFH,3DH,1DH,0CDH,0E1H,0F1H,0FFH  
                                ;oRg 640h ;so8
                                DB     0FFH,93H,1H,6DH,1H,93H,0FFH  
                                ;oRg 648h ;so9
                                DB     0FFH,0B3H,21H,6DH,1H,83H,0FFH
                                chúc các pác thành công
                                8051 là con em viết thành thạo. em sẵn sàng giúp đỡ các pác nếu em có thể
                                liên lạc với em qua địa chi email: Mob: 01882.076.989

                                Comment

                                Về tác giả

                                Collapse

                                hoangphat đam mê về ngành điện tử Tìm hiểu thêm về hoangphat

                                Bài viết mới nhất

                                Collapse

                                Đang tải...
                                X