| ??? 02/24/03 22:19 Read: times |
#39967 - to peter dannegar and waqar Responding to: ???'s previous message |
Peter Dannegger wrote:
------------------------------- To build a clock without interrupts looks not fully impossible, but can only be solved from experts. I disagree, I have done this, and I'm no expert... it's easy, but it's a lousy code... You can have a clock, but not an alarm clock, since you can't adjust the alarm time without stopping the clock counter. I didn't finished it yet, I'm studing for a ccda exam and had no spare time. For now it's just a "elapsed time counter", since the time starts always at 00h00m00s. The adjust time routine will be made in the near future, whatever it means :-) the code is at http://sites.uol.com.br/jorlando/.../clock.a51 the clock comments are in english, the comments in portuguese are note related to the clock code (they are for my 8051 kit, routines for LCD, ADC... that kind of stuff) look at it and have fun :-) I commented it to waqar, but seems that he didn't read it, I think he wants some guidance and don't want to reuse code from other people. |



