10 years ago.

Serial Interrupts issue??

Hi

I am using a single serial interrupt in my program. The scenario is i am using a RF radio to receive data in main() in a while(1) loop and in the meanwhile if i get some serial input from user , i transmit the data based on that serial input. Now what happens is if i do not interrupt the infinite while loop, the transmission goes fine (both TX,RX) but i need to interrupt based on user desired action, after the interrupt the program does not return to main() again.

I have tried using MODSERIAL as well but the problem remained the same :(

Any help will be more than welcome

Thanks

1 Answer

10 years ago.

The most likely reason is that you are trying to do something invalid in your interrupt routine and the program crashes.

Without seeing the code it's hard to say how to fix anything. If you post it with <<code>> and <</code>> on their own lines before and after the code it will format correctly on this site.

No the program does not crash . after accepting the first serial interrupt it is still accepting other serial interrupts and performs accordingly but does not go to the main loop again.

posted by Syed Aftab 23 Apr 2014