-------------------------------------------------- From: "Jan-Erik Soderholm" Sent: Thursday, July 29, 2010 10:49 AM To: "Microcontroller discussion list - Public." Subject: Re: [PIC] 16F747 UART errors >> Does it finish sending the byte normally? Reason being, >> this is a servo driver/current monitor for my lonelybot.com project - th= e >> TMR0 interrupt is used to generate the 20ms "off" time for the servo's=20 >> PWM >> input; when the 20ms is up, the interrupt holds control for the 1-2ms=20 >> servo >> pulse. > > That might not be a good solution. Just set some timer and return from > the interrupt as soon as possible. Are you also using interrupts to read > the incomming USART data ? Yes, I'm thinking there are probably better ways to do this. Unless I'm=20 misunderstanding what is needed - what about using the PWM peripheral for=20 the servo input? Then you can just load the registers and let it run=20 independently. > 4800 baud means that my data strings collide with the interrupt >> frequently - my testing shows that, at 4800 baud almost 70% of my string= s >> collide with the interrupt in this way, which is unacceptable because I= =20 >> have >> to repeat the request 5 or 10 times which is really going to flood the=20 >> data >> bus on my boat. Can I ignore these interrupts in my data? Am I=20 >> guaranteed >> that the data is still good, just delayed? Do you mean the USART data sending is interrupted somewhere by the TMR0=20 interrupt? Receiving or sending? What do you mean exactly by ignoring the=20 interrupts/data being good? Can you give a bit more explanation? =20 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .