Go to Post Waiting for the kick off is like studing the molecular structure of grass while being hit on the head by a frying pan - infinitydex [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2006, 12:02
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
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
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #2   Spotlight this post!  
Unread 17-02-2006, 12:35
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
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!
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 02:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi