What is the difference between user_routines.c and user_routines_fast.c?
Also, how do I generate hex files in FusionEdit?
What is the difference between user_routines.c and user_routines_fast.c?
Also, how do I generate hex files in FusionEdit?
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.
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.