Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Difference between user_routines (http://www.chiefdelphi.com/forums/showthread.php?t=51253)

brennerator 08-01-2007 13:07

Difference between user_routines
 
What is the difference between user_routines.c and user_routines_fast.c?

Also, how do I generate hex files in FusionEdit?

Matt Krass 08-01-2007 13:19

Re: Difference between user_routines
 
Generally speaking the functions you would edit in user_routines.c (Such as default routines) loop at a specific rate (26.2 ms) where as functions such at Process_Data_From_Local_IO in user_routines_fast.c run as fast as the chip can process them, while managing everything else.

Davx 08-01-2007 15:22

Re: Difference between user_routines
 
brennerator : Read the comments in main.c, user_routines.c, and user_routines_fast.c. Know that statusflag.NEW_SPI_DATA will equal 1 once every 26.2ms. The functions in user_routines_fast are generally for interrupt handling and fast loops. Understand how the structure works before you start programming, otherwise you'll end up with some strange problems that are completely avoidable.


All times are GMT -5. The time now is 10:21.

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