| ??? 05/30/02 03:44 Read: times |
#23627 - RE: rtc example decrementing variables |
Hello Craig:
Your problem is actually pretty simple. There is a real time clock example at the following site, http://members.aol.com/cpu8052/modem1.html which manipulates memory variables ( ie int256). It shows a real time clock which decrements memory variables as time is advanced. When p2.0 goes low your code could set a variable equal to three hundred (5 minutes), which will decrement down as the real time clock advances. You could monitor this memory variable (here: mov a, int256, jnz here) and when it reach zero you could set p0.0 low, p0.1 goes high, set memory variable int256 to two hundred forty (4 minutes) and monitor it until it goes low. Good luck, Charles Banister Ps. Real name is required on this board. |
| Topic | Author | Date |
| Need some expert help on a timing issue | 01/01/70 00:00 | |
| RE: Need some expert help on a timing issue | 01/01/70 00:00 | |
| RE: rtc example decrementing variables | 01/01/70 00:00 | |
| RE: Need some expert help on a timing is | 01/01/70 00:00 | |
RE: Need some expert help on a timing issue | 01/01/70 00:00 |



