> setb PORTB,0 > setb PORTB,1 > nop > clrb PORTB,0 > clrb PORTB,1 > > Pin 0 is set then goes low while pin 1 goes high, then pin 1 goes > low - so it looks like the second "setb" doesn't occur until pin 0 > is cleared. The pulses don't overlap at all. Do you know what > the problem is? As you've realised, r-m-w can produce some peculiar effects. Sometimes the pins output the complete opposite of what was intended http://www.piclist.com/techref/scenix/sxrmw.htm -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist