John Ward wrote : > the rs485 is coming in via the sortware uart (receive only) interrupt. > the pwm interrupt runs on an interrupt too. OK. You seems to have a valid reason not to use the HW PWM. But why not use the HW USART ? To high speed ? Odd speed ? (You did not say so in your earlier mails, which would have been helpfull, so I based my earlier replies on the assumption that the serial interface used the HW USART...) Anyway, even with a SW (bit-bang) serial interface, it whould be possible to separate the actual receving of the data (in an ISR) from the processing of the messages (in the main code). Or just live with the flickering... Regards, Jan-Erik. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads