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.
I have 2 questions on IS for Timer A and ADC
1, I am using ADC and TimerA at the same time.But the program stay in the void main(void) and timer A0 interrupt, and I can't get values from ADC.
2, Follow is the definition of timerA0 interrupt service program I am using, which is working.
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=TIMERA0_VECTOR
__interrupt void Timer_A (void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(TIMERA0_VECTOR))) Timer_A (void)
#else
#error Compiler not supported!
#endif
Follow is the definition of timerA0 interrupt service program I used before, but it is not working now.
#pragma vector=TIMERA0_VECTOR
__interrupt void Timer_A (void)
What is the difference?
Thanks for any help reply to me.
Are you able to access the ADC ISR independent of TimerA? Please refer to the TI code examples for further assistance. There is no difference between the two ISR definitions if the TI or IAR compilers are used and you have not included any of the surrounding if statements.
Regards,
Ryan
Hi, thanks for your reply. I have figure it out.
I deleted one statement that was used to calculate. Maybe it took too long to do the float calculation.
**Attention** This is a public forum