??? 10/03/05 00:40 Read: times |
#101835 - Try This MO Betta. Responding to: ???'s previous message |
Hello Jeff,
I made some changes to your program. Hope you don't mind. Regards, Charles Bannister ORG 0x00 RESET1: LJMP MAIN ORG 0x30 MAIN: MOV A, #0 ; Use A as your variable MOV R0, #10 ; Set R0 to use as your loop, loop 9 times COUNTDOWNLOOP: ; Beginning of your loop MOV P0, A ; Outputs on Port 0 the value of Acc ADD A, #1 ; Adds 1 to Acc for next loop timedelay: ; Time delay loop(138ms@11.059mhz) MOV R1, #50 ; These two values set your time MOV R2, #250 ; delay, increase them for more delay loop: djnz r1, loop djnz r2, loop DJNZ R0, COUNTDOWNLOOP ; Subtract 1 from R0, and loop ; if its not 0 ; Once zero, the program passes ; this line and ends. HERE: SJMP HERE END :03000000020030CB :100030007400780AF580240179327AFAD9FEDAFC64 :04004000D8F280FE74 :00000001FF |
Topic | Author | Date |
Please help to generate sequence | 01/01/70 00:00 | |
I don't understand | 01/01/70 00:00 | |
Azam - two questions to clarify. | 01/01/70 00:00 | |
try this | 01/01/70 00:00 | |
Try This MO Betta. | 01/01/70 00:00 | |
na | 01/01/70 00:00 | |
Be precise!![]() | 01/01/70 00:00 | |
yeeah | 01/01/70 00:00 |