Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   CPU loop speed (http://www.chiefdelphi.com/forums/showthread.php?t=41854)

Windward 14-01-2006 15:17

CPU loop speed
 
Last year 1 loop on through the code on the CPU was about 1.36 secs (depending on amount of code). Now that the processor is faster is the time any different?

Windward 14-01-2006 17:44

Re: CPU loop speed
 
Is it changed at all?

Alan Anderson 14-01-2006 18:02

Re: CPU loop speed
 
(I don't have a copy of the code handy, so please forgive small errors in function names.)

The "fast" loop, process_data_from_local_IO(), is essentially called again as soon as it returns, so it runs more often if it takes less time. Ours two years ago was quick enough to deal with polling digital sensors that changed every couple of milliseconds. The "slow" loop, Default_Routine(), is called every time there is a new communication packet available from the OI, approximately 39 times per second.

I have no idea where your "1.36 seconds" came from.

Salik Syed 14-01-2006 20:53

Re: CPU loop speed
 
1.36!!!! that is VERY slow... lol... i think the Default routine is called every 26.2 ms ... but the actual loop time of other functions varies based on a lot of other factrs.

jdong 14-01-2006 21:03

Re: CPU loop speed
 
Sounds like the "other end" that you're using to "measure" the "loop speed" isn't accurate -- note that serial ports don't magically report data back in realtime...

The new controller (PIC18F8722) just boasts more storage all around, and does not improve on speed.

last_decesion 06-02-2007 14:25

Re: Cam Program
 
Who here has the latest progamming for the CPU Cam2?

shawger 07-02-2007 15:22

Re: Cam Program
 
Quote:

Originally Posted by last_decesion (Post 573007)
Who here has the latest progamming for the CPU Cam2?

Do you mean Kevin Watson's code? You can find the latest version at his website www.kevin.org/frc


All times are GMT -5. The time now is 04:32.

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