Hi everyone,
I'm new in the world of DPSs and I'm trying to make a guitar tuner with a TMS320C6711 DSK.
The program is based on a finite-state machine topology, where:
- in the first state It acquires all the samples with a interrupt routine, then, it turn off the interrupts and it proceeds with the rest of the elaborations.
The question is: I don't know why, it works only the first time, and then there's no way to let the interrupts work again.
I'm turning on the interrupts in the first state of the FSM with a function composed by two instructions:
IRQ_globalEnable();
IRQ_enable(IRQ_EVT_RINT0);
and then I disable them out, when the correct number of samples is been reached, in the interrupt routine with a simple: IRQ_globalDisable();
I also tried to insert the IRQ_reset(IRQ_EVT_RINT0) but no way.
Every kind of answer will be appreciated! Thank you everyone.
Andrea Bodini