Stewart Abel wrote : > I have put my code below. Can anybody see where I have > gone wrong or suggest anything I can try please? First, there is not a single comment in the code so one can verify what you *think* you are doing. Then, please explain what this code does : > clear_PORTC_bit > movwf R_BIT > movfw PORTC > movwf RAM_PORTC > bcf RAM_PORTC, R_BIT > movfw RAM_PORTC > movwf PORTC > > return In particular how the BCF works... Regards, Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist