Hi Ravi, Try putting nops in like this: bsf portc,scl nop bsf portc,sda goto $+1 bcf portc,scl nop bcf portc,sda goto $-5 If it works then it is probably a read-write-modify issue, which occurs when a pin hasn't changed enough before the next bcf or bsf happens. Cheerful regards, Bob -- http://www.fastmail.fm - Access all of your messages and folders wherever you are -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist