Andrew Blair
12-02-2006, 21:18
How long does it take a single loop to execute when called in user_routines.c?
Basically, in Process_Data_From_Master_uP, I am calling a function that multiplies my interrupts by 38, to get interrupts a second, and eventually, revolutions per second. If I call this important function in Process_Data_From_Master_uP, will it execute at a consistent 38 Hz? Or do I need to put it in User_routines_fast.c? And How would I do that? Thanks much.
unsigned int Get_Wheel_Speed(void)
{
return((Get_Interrupt1()*38));
}
Basically, in Process_Data_From_Master_uP, I am calling a function that multiplies my interrupts by 38, to get interrupts a second, and eventually, revolutions per second. If I call this important function in Process_Data_From_Master_uP, will it execute at a consistent 38 Hz? Or do I need to put it in User_routines_fast.c? And How would I do that? Thanks much.
unsigned int Get_Wheel_Speed(void)
{
return((Get_Interrupt1()*38));
}