This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Serial interrupt behaviour?

Hi everyone!

I'm a n00b to microcontroller programming so have patience with me :)

The mission is to handle some uart (rs232) communication, both rx and tx. My part is a small module going into a rest of the software already developed.

The issue is the following: When I use serial ISR it seems to not go into the "main while loop" (which is required).

(I've also tried to poll my self but reliability seems somewhat unstable, loosing a byte here and there)

I've tried the simplest demo/test programs and if I for instance use a printf in the while loop, it will not reach it as soon as ES = 1.

Is it just that any printf will not issue an interrupt and hence no output to my terminal? At the moment I can not test my module with the rest of the software so I'm a bit in the blind here, well could of course try to blink a led or something... but I reacon a answer from here is faster and more reliable :)

Thanks in advance

/Mike

Parents
  • Ahhh ok, tnx guys. Well my hunch was not too far from the target at least :).

    In the "real world" no printf (even or stdio.h) will be allowed.

    The only thing to put my head around is how all the previous debug code will be possible to execute... I just have to develop code that does not need debugging ;)

    Thanks again.

    /Mike

Reply
  • Ahhh ok, tnx guys. Well my hunch was not too far from the target at least :).

    In the "real world" no printf (even or stdio.h) will be allowed.

    The only thing to put my head around is how all the previous debug code will be possible to execute... I just have to develop code that does not need debugging ;)

    Thanks again.

    /Mike

Children