Tool/software: Code Composer Studio
hi, I have problem in using timer.
I'd like to get a ADC data when PWM pulse is occurred.
so, I used OUTMOD7(Reset/set) of Timer B1 to make PWM pulse( 668kHz, 30%duty rate) and ADC data reading time is 60us(16.7kHz).
However, There is problem that program is reset when ADC data reading period in ISR was longer than PWM period.
As far as I know "COV" register make software reset when capture overflow is occured but I do not use capture but compare.
One more thing... Is there are way to use timer interrupt flag's change without using ISR?
This is my code. I'd like to use this code without ISR, but program was stacking in "JMP __TI_ISR_TRAP" during debug.
please help me.
if((TB1CCTL1 &= CCIFG) == 1) { TB1CCTL0 &= ~CCIFG; __delay_cycles(10); ADC_OSC_SamplingConversion(); }