| ??? 06/27/05 10:57 Modified: 06/27/05 11:07 Read: times |
#96005 - Another trick Responding to: ???'s previous message |
Unless you are showing seconds on a display, there is no advantage in counting down in BCD mode. But if you would keep it, I have a little "trick" to add to Oleg's program:
MOV A,R1 ADD A,#99H DA A MOV R1,A JC OVER MOV R1,#59H DEC R2 CJNE R2,#0,... ... CJNE R2,#3,... OVER: Carry always appears - except - when it is time to decrement minutes ... Slobodan |
| 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 |



