|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Real time clocks, out of the question?
Here is the code we used for a "clock". It uses Timer 2 and has a number of options for flexibility. It is not a "real time clock" in the sense that it doesn't compute hour/minute/second but works off clock "ticks", which for a 2 minute match, or a 15 second autonomous, works fine for us. By default, it's configured to count milliseconds (1 tick = 1 millisecond), but has 2 other predefined options for increased accuracy.
Mike |
|
#2
|
|||||
|
|||||
|
Re: Real time clocks, out of the question?
In teaching timers I use a demonstration program to calculate all the possible timer prescaler/postscaler combinations for a given Hertz or time period. It's an easy beginner exercise to write such a program for the PIC (or VB), and also can be used to teach them about maintaining the Master processor communication leading to an easy elimination of the Master handshake.
Here's a sample output calculating 2400 Hz used with an LCD display off a digital output. Last edited by Mark McLeod : 27-02-2007 at 13:11. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Networkable real-time game simulation for 'Aim High'! test it out now | Bongle | General Forum | 11 | 19-03-2006 23:10 |
| Real time photos from the buckeye regional | Greg Needel | Regional Competitions | 4 | 25-03-2004 12:46 |
| Robot motion after the time has run out. | Randy Ai | Rules/Strategy | 1 | 06-01-2003 17:17 |
| Real Time Scoring | archiver | 2000 | 2 | 24-06-2002 00:09 |
| real time chat | SharkBite | CD Forum Support | 4 | 07-02-2002 21:22 |