I have two 16F628s, one sending commands to the other over the USART with the baud rate at 31250. It's working almost flawlessly and I'm trying to finetune the receiving code to eliminate a couple of annoying behaviors. The main loop of the receiving program is doing PWM on 5 pins, each connected to LEDs. I'm collecting bytes from the serial port at interrupt time and thought it would be fruitful to experiment with disabling interrupts during some iterations of the main loop to see if the interrupt handler is interacting badly with the main loop at certain points. I can't seem to get this to work properly. I've tried to disable/enable just the RX interrupt with: bcf PIE1,RCIE (some code) bsf PIE1,RCIE and I've tried to disable/reenable all interrupts with: clrf INTCON (some code) movelw B'11000000' movwf INTCON In one case, it works very briefly 3-10 seconds and then the receiving PIC goes into a coma and stops responding completely, in the other case I appear to be getting serial port errors and it never works at all.. Is there some specific incantation for disabling/enabling rx interrupts while the port is continuously getting data? I don't care if I lose a few commands, I just want to ignore the incoming data briefly and then start paying attention again. thanks for any ideas! darren -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.