This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28379D: Hall Effect

Part Number: TMS320F28379D
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();
}

  • Hi,

    Are you referring to any example in C2000ware? Can you please give the details of the example?
    Also, please check GPIO/pin configuration and make sure the inputs are configured properly.
    You can also debug with a simpler code before running your application, by removing all interrupts and other dependencies and focus on the Read function alone.
    Please provide more details of the exact failure you are observing.