2011-03-04 06:15 AM
usart and timer interrupt
2011-05-17 05:26 AM
Hi!
I think, the main problem in your program is a bad programming style. For instance, in the TIM3 ISR:
First:// if(TIM3->SR && 0x01)flag = 1; should look like if (TIM3->SR & 0x01) flag = 1; Yes, I see, the line is commented out, but at the same time is a clear demonstration of potential mistakes.Second: The assignmentnum_bytes = i; - where is ''i'' declared and/or initialized? And so on.