Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hi,
i am using timer interrupt in Delfino79D and in ISR function i call two functions (EQEP_READ, HallEffect_READ) noting that EQEP use the pins installed internally for encoder module and Hall Effect use the gpio pins the read number of pulses per revolution, the ISR is executed every 1 second, what is happened is that when calling both the two functions only we see changes in hall effect user structure but not encoder one and when calling only encoder function the readings in encoder structure appear correctly, i traced the code step by step and see that EQEP_READ function already executed but there is finally no readings.
i do not understand what is happening and why interrupt did not work with both functions together, keep in your mind the same algorithm worked before in TivaC123 controller with the sequence.
//.................... the function ISR IS here........................................//
void CPUInterrupt_EQEP_HallEffect_Read()
{
EQEP_Signal_Read();
HallEffect_Signal_Read();
EQEP_Calculation();
HallEffect_Calculation();
}