Codevision C for AVR - interrupt driven TX serial |
![]() ![]() |
Codevision C for AVR - interrupt driven TX serial |
Jan 2 2003, 04:58 AM
Post
#1
|
|
|
Posting Freak ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 2,099 Joined: 24-April 02 From: Christchurch, New Zealand Member No.: 1 |
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.
-------------------- Mark Empson administrator
Skype Contact = markempson | phone +64 274 363 067 LMPForum | LMP Tech Warehouse | L M Photonics Ltd | Empson family | Advanced Motor Control Ltd | LMP Software | Mark Empson Website |
|
|
|
Jan 5 2003, 06:41 PM
Post
#2
|
|
|
Posting Freak ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 2,099 Joined: 24-April 02 From: Christchurch, New Zealand Member No.: 1 |
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, -------------------- Mark Empson administrator
Skype Contact = markempson | phone +64 274 363 067 LMPForum | LMP Tech Warehouse | L M Photonics Ltd | Empson family | Advanced Motor Control Ltd | LMP Software | Mark Empson Website |
|
|
|
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
0 | BigMax | 1,313 | 9th October 2002 - 03:10 AM Last post by: BigMax |
|||
![]() |
1 | BrianKRogers | 825 | 2nd November 2002 - 09:05 AM Last post by: marke |
|||
![]() |
1 | andrie | 1,424 | 6th February 2004 - 06:02 AM Last post by: marke |
|||
![]() |
1 | chrisnejm | 4,694 | 23rd March 2004 - 07:24 PM Last post by: marke |
|||
![]() |
0 | homerjay | 1,323 | 21st July 2004 - 12:07 PM Last post by: homerjay |
|||
|
Lo-Fi Version | Time is now: 1st December 2008 - 09:21 PM |