Hi, if you set TMR0 to 255, it will overflow in the NEXT cycle! On the other hand, it is not wise to try to load W register with a 10-bit constant. Is it what you intend? Regards, Imre On Thu, 16 Mar 2000, Muqtar Mohamed Usuf wrote: > Thanks for some of the hints, but couldn't get it to working after > some more reading. Any done and dusted examples at some > > Environmet MPBLAB > PIC16F84 > prescaler 1:64 see bellow > pure asssembly code used > > ROUTINE WAIT > MOVLW .255 > MOVWF TMR0 > > DELAY1SECOND > CLRWF > XORWF TMRO,W > BTFSS STATUS,Z > GOTO DELAY1SECOND > RETLW 0X0 > > > in main > MOVLW B '1101010101' ; enable internal tmro 1:64 > > > Bad Boy from ell > >