??? 04/05/09 18:31 Read: times |
#164361 - Not sure, whether I got you... Responding to: ???'s previous message |
Benny said:
As timer interrupt occurs, it interrupts the serial communication. I am now looking for any suggestion.. Hhm, if you poll the RI flag of UART in the stepping routine at least every 1msec (10bit at 9600 Bds) without using a serial transmission interrupt and allow the stepping routine to be interrupted by the timer interrupt only for outputting the phase control bits, then no transmitted byte should get lost. Keep the ISR much shorter than 1msec, though. Well, whether this works depends also on the rest of code, of course. Take care that the motor timing for the 4 phases per step isn't corrupted, because this can result in an ugly sound... Kai |