| ??? 09/27/00 04:21 Read: times |
#5342 - RE: how to have 1 sec delay |
Yes, you can. Go to the "Tutorials" section on this site and select the tutorial that talks about a "RTC". Use the same ideas, just don't worry about incrementing the second, minute, and hour counters. But the concept is the same.
Clear a flag. Use the code described in the RTC tutorial. In your code, instead of incrementing a second counter, just set the flag. When your main code detects that the flag has been set, a second has passed. The code in the RTC tutorial assumes an 11.0592 MHZ crystal, so even the reload values are all ready for you. Craig Steiner |
| Topic | Author | Date |
| how to have 1 sec delay | 01/01/70 00:00 | |
| RE: how to have 1 sec delay | 01/01/70 00:00 | |
| RE: how to have 1 sec delay | 01/01/70 00:00 | |
RE: how to have 1 sec delay | 01/01/70 00:00 |



