I am from Syria somewhere near IRAQ
Now I am study micro controller ATMEL & PIC
Just start learning.
I have another question in the attached there is another project.
I think there is some think messing in assembly code.
Also you have wrote the following code
;+++++++++By DUCTDH2+++++++++++++
ORG 0000H
LJMP MAIN
ORG 0030H
MAIN:
MOV DPTR,#MYLOVE
HIENTHI:
MOV R4,#65
MOV R5,#40
PLAY:
MOV R3,#0
MOV R2,#0
LOOP:
MOV A,R3
MOVC A,@A+DPTR
MOV P2,A
MOV P0,R2
ACALL DELAY
MOV P0,#00000000B
ACALL DELAY1
INC R3
INC r2
CJNE R3,#96,LOOP
DJNZ R5,PLAY
INC DPTR
MOV R5,#40
DJNZ R4,PLAY
NOP
STOP_2:
MOV P2,#00000000B
MOV P0,#00000000B
ACALL DELAY
LJMP MAIN
DELAY:
MOV R7,#2
LOOP1:
MOV R6,#127
LOOP2:
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
DJNZ R6,LOOP2
DJNZ R7,LOOP1
RET
DELAY1:
MOV R7,#4
DJNZ R7,$
RET
;$$$$$$$$$$$ DU LIEU $$$$$$$$$$$$
MYLOVE:
DB 11111111B,11111111B,11111111B,11111111B,11111111B; NOT
DB 11100000B,11101110B,11101110B,11101110B,11110001B
DB 11111111B
DB 11100001B,11111110B,11111110B,11111110B,11100001B
DB 11111111B
DB 11110001B,11101110B,11101110B,11101110B,11110101B
DB 11111111B
DB 11100110B,11111010B,11111010B,11111010B,11100001B
DB 11111111B
DB 11100000B,11101010B,11101010B,11101010B,11101010B
DB 11111111B
DB 11100001B,11111110B,11111110B,11111110B,11100001B
DB 11111111B
DB 11100000B,11110111B,11111011B,11111101B,11100000B
DB 11111111B
DB 11110001B,11101110B,11101110B,11101010B,11101000B
DB 11111111B
DB 11111100B,11110011B,11101011B,11110011B,11111100B
DB 11111111B
DB 11100000B,11110111B,11111011B,11111101B,11100000B
DB 11111111B
END
What about hard wear as you told used 74138 I am asking if the drawing available.
At last many thanks.
SAMER
Now I am study micro controller ATMEL & PIC
Just start learning.
I have another question in the attached there is another project.
I think there is some think messing in assembly code.
Also you have wrote the following code
;+++++++++By DUCTDH2+++++++++++++
ORG 0000H
LJMP MAIN
ORG 0030H
MAIN:
MOV DPTR,#MYLOVE
HIENTHI:
MOV R4,#65
MOV R5,#40
PLAY:
MOV R3,#0
MOV R2,#0
LOOP:
MOV A,R3
MOVC A,@A+DPTR
MOV P2,A
MOV P0,R2
ACALL DELAY
MOV P0,#00000000B
ACALL DELAY1
INC R3
INC r2
CJNE R3,#96,LOOP
DJNZ R5,PLAY
INC DPTR
MOV R5,#40
DJNZ R4,PLAY
NOP
STOP_2:
MOV P2,#00000000B
MOV P0,#00000000B
ACALL DELAY
LJMP MAIN
DELAY:
MOV R7,#2
LOOP1:
MOV R6,#127
LOOP2:
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
DJNZ R6,LOOP2
DJNZ R7,LOOP1
RET
DELAY1:
MOV R7,#4
DJNZ R7,$
RET
;$$$$$$$$$$$ DU LIEU $$$$$$$$$$$$
MYLOVE:
DB 11111111B,11111111B,11111111B,11111111B,11111111B; NOT
DB 11100000B,11101110B,11101110B,11101110B,11110001B
DB 11111111B
DB 11100001B,11111110B,11111110B,11111110B,11100001B
DB 11111111B
DB 11110001B,11101110B,11101110B,11101110B,11110101B
DB 11111111B
DB 11100110B,11111010B,11111010B,11111010B,11100001B
DB 11111111B
DB 11100000B,11101010B,11101010B,11101010B,11101010B
DB 11111111B
DB 11100001B,11111110B,11111110B,11111110B,11100001B
DB 11111111B
DB 11100000B,11110111B,11111011B,11111101B,11100000B
DB 11111111B
DB 11110001B,11101110B,11101110B,11101010B,11101000B
DB 11111111B
DB 11111100B,11110011B,11101011B,11110011B,11111100B
DB 11111111B
DB 11100000B,11110111B,11111011B,11111101B,11100000B
DB 11111111B
END
What about hard wear as you told used 74138 I am asking if the drawing available.
At last many thanks.
SAMER
Comment