Yes this the first time I used assembly for PIC, most of the time I used C. if I want 1 ms on 20 Mhz processor with 1:64 prescaler ? Something like this ? *on init :* clrf TMR0 ;Set timer 0 to 0 - may not be needed clrwdt ;Clear watchdog timer bsf STATUS, RP0 ;SELECT BANK 1 ; Set up timer interrupt movlw b'10010110' ;weak portb pullups disabled -=20 1ms interrupt movwf OPTION_REG ;select tmr0, 64d prescal, clock sourc= e bcf STATUS, RP0 ;Select bank 0 bcf INTCON,RBIE ; port B interrupt on change disabl= e ;movlw b'1010000' ;enable global/timer0 interrupt movlw b'10100000' ;enable global/timer0 interrupt movwf INTCON ; *for 1ms:* LedTimer EQU 0x0A clrf TMR0 ;Clear TMR0 and prescaler banksel TMR0 movlw 0xB2 ;Count=3DB2 movwf TMR0 timer1ms movf LedTimer,f btfsc STATUS,Z decf LedTimer,Z return --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .