|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Number of lines of code in user_routines.c | teh_pwnerer795 | Programming | 12 | 01-01-2007 09:10 |
| Strength difference between aluminum | sdcantrell56 | Technical Discussion | 3 | 21-01-2006 10:07 |
| What is the Difference between Parker and Bimba | generalachoo | Pneumatics | 3 | 23-01-2005 16:58 |
| Difference Between Motors | shyra1353 | Motors | 4 | 13-01-2004 10:12 |
| Difference in aluminum | archiver | 2001 | 1 | 23-06-2002 23:49 |