Jump to content


Photo

Codevision C for AVR - interrupt driven TX serial


  • Please log in to reply
1 reply to this topic

#1 marke

marke

    Posting Freak

  • Moderator
  • PipPipPipPipPipPip
  • 2,642 posts
  • Gender:Male
  • Location:Christchurch, New Zealand

Posted 02 January 2003 - 04:58 AM

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.

#2 marke

marke

    Posting Freak

  • Moderator
  • PipPipPipPipPipPip
  • 2,642 posts
  • Gender:Male
  • Location:Christchurch, New Zealand

Posted 05 January 2003 - 06:41 PM

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.
Regards,




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users