#10040 - Daniel Andersen - Mon Aug 25, 2003 11:51 am
I've been trying to implement multiplayer link with interrupts. What I've done is basicly this: in my interrupt handler I've handled incoming data and setting up outgoing data for the next send. Then, at the very last, I've toggled the start-bit of the link. The link should'nt be busy, so this should work... but it doesn't; it doesn't send anything.
I've come to the conclusion that one cannot initialize a send from within a interrupt... is that right? What I've done is moving the send away from the interrupt rutine and that is working perfectly fine, but the other method is surely much nicer!
I've come to the conclusion that one cannot initialize a send from within a interrupt... is that right? What I've done is moving the send away from the interrupt rutine and that is working perfectly fine, but the other method is surely much nicer!