Looking a lot more organised Sean - that's good progress for a day Just a couple of things. As you get to know the registers better you could cut down on the BANKSELs. For example PortA, PortC and TMR0 are all in bank0 so BANKSEL PORTA CLRF PORTA CLRF PORTC CLRF TMR0 is sufficient instead of BANKSEL PORTA CLRF PORTA BANKSEL PORTC CLRF PORTC BANKSEL TMR0 CLRF TMR0 ================== You can define a name for a bit in a register (such as a pin) #define led porta,1 would allow you to use the expression BCF LED instead of BCF PORTA,1 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist