??? 06/26/05 21:17 Read: times |
#95972 - "The" code... Responding to: ???'s previous message |
Here you go.
This is the part that counts. It works if I use ADD instead of SUBB and I remove the comment ; from the DA instruction but, of course it counts from 0 to 9. I need to count from 9 to 0 Any idea? MOV A, R1 SUBB A, #01H ;DA A MOV R1, A CJNE R1, #000H, END_T0_INT ; Check if 1 min has passed. MOV R1, #59H ; Reset Seconds to 59 MOV A, R2 SUBB A, #01H ;DA A MOV R2, A CJNE R2, #060H, END_T0_INT Thanks, Alex |
Topic | Author | Date |
Countdown with 8051 | 01/01/70 00:00 | |
No Code ,,, But an Idea | 01/01/70 00:00 | |
Tutorials | 01/01/70 00:00 | |
Hi. | 01/01/70 00:00 | |
Third way | 01/01/70 00:00 | |
I have a part of code... | 01/01/70 00:00 | |
Delays..... | 01/01/70 00:00 | |
Countdown | 01/01/70 00:00 | |
Show us the code ! | 01/01/70 00:00 | |
"The" code... | 01/01/70 00:00 | |
What ? | 01/01/70 00:00 | |
R1 and R2 | 01/01/70 00:00 | |
binary-decimal | 01/01/70 00:00 | |
Another trick | 01/01/70 00:00 | |
It's working... | 01/01/70 00:00 | |
Start your count decimal | 01/01/70 00:00 | |
count down with 8051![]() | 01/01/70 00:00 |