|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: timers in user_routines_fast
Stephan,
In user routines, you are counting loops timed by the master uP communicating with the OI. Each loop takes about 26 milliseconds so your counter should take about a half second to "trip". In user routines fast, there is no such delay and the loop is timing as fast as it can, With a 40 MHz clock (and ignoring other code which you may have in the fast loop) your timer will "trip" in about 1 microsecond (maybe less). Regards, Mike |
|
#2
|
|||
|
|||
|
Re: timers in user_routines_fast
It's highly recommended to use one of the hardware timers instead of counting loops. There's been extensive discussion on these guys and they aren't very difficult to use - you'll love them!
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The Five Great Timers | CronosPrime1 | Programming | 2 | 12-02-2006 12:46 |
| Using Timers | psquared | Programming | 9 | 30-01-2006 10:29 |
| Timers | MarkVH | Programming | 1 | 13-02-2005 11:30 |
| Securing interrupt-driven timers | Orborde | Programming | 3 | 10-02-2005 15:52 |
| How do you program timers? | roberthan | Programming | 5 | 04-02-2004 02:18 |