belzebuth
Junior Member level 1
hi,
Does someone know how to generate reentrant interrupt code in C with code composer 2.2 or 4.12 on EZDSP2407 and how to write the code. i would like to do this because during a 40kHz interrupt i have to make calculus that are longer than the interrupt period and to sample some analog signal at this frequency, the long calculus are made every four inyterrupt in order to have a frequency of 10kHz and are about 2.5 interrupt long. I use timer1 to generate PWM and timer2 to make this sampling and calculus. perhaps i can split the sampling and calculus in two parts and use a third timer (timer3 for sampling and timer2 for calculations because it is necessary that sampling have an approximatively constant frequency, so because timer3 interrupts have a higher priority than timer2 interrupts, i suppose that it would work) but i prefer to have something reentrant, in the same interrupt.
is possible do that with code composer ?
Tanks for any help.
Belzebuth
Does someone know how to generate reentrant interrupt code in C with code composer 2.2 or 4.12 on EZDSP2407 and how to write the code. i would like to do this because during a 40kHz interrupt i have to make calculus that are longer than the interrupt period and to sample some analog signal at this frequency, the long calculus are made every four inyterrupt in order to have a frequency of 10kHz and are about 2.5 interrupt long. I use timer1 to generate PWM and timer2 to make this sampling and calculus. perhaps i can split the sampling and calculus in two parts and use a third timer (timer3 for sampling and timer2 for calculations because it is necessary that sampling have an approximatively constant frequency, so because timer3 interrupts have a higher priority than timer2 interrupts, i suppose that it would work) but i prefer to have something reentrant, in the same interrupt.
is possible do that with code composer ?
Tanks for any help.
Belzebuth