Jump to content

Codevision C for AVR - interrupt driven TX serial


Recommended Posts

I have been working on a little project using the Codevision AVR version 1.23.7 standard and have a number of interrupts running. I have found that I can run the RX under interrupt, but not the TX. I get into all sorts of trouble with the TX running under interrupt. As the code was all set up using the project, and I wait till the TX buffer is empty before sending any more data, I don't think that I am doing anything wrong. I think that I can live with running it polled, but would be nice to know the answer.
Link to comment
Share on other sites

OK, found that the problem was tied up with the interrupts being enabled incorrectly during the transmit serial routine. Thanks to Ed for the advice and help.


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...