Hello guys, I have a code : decrementLedTimer movf Ledtimer,f btfss status,Z decf Ledtimer,Z return how can I define Ledtimer ? is it Ledtimer EQU 0x01 ? thanks On 29/06/2013 2:24 PM, Tamas Rudnai wrote: > Not this one, but you can certainly use timer interrupt for this. You may > also can use WDT if you do not need high precise timing and you do not wa= nt > external circuit for keeping your PIC in sleep mode. > > Check out PIClist's Techref: > http://www.piclist.com/techref/microchip/time.htm > > Tamas > > > On 28 June 2013 23:13, Electronic Consultation < > electronic.consultation.au@gmail.com> wrote: > >> can I use it on background timer interrupt ? >> >> On 29/06/2013 1:45 PM, eCHIP wrote: >>> If you need a 100 mS delay with a 4 MHz PICmicro, below is the code. >>> >>> delay1mS movlw .250 >>> movwf temp1 >>> clrwdt >>> decfsz temp1,f >>> goto $-2 >>> retlw 00 >>> >>> >>> delay100ms movlw .100 >>> movwf temp >>> call delay1ms >>> decfsz temp,f >>> goto $-2 >>> retlw 00 >>> >>> Cheers >>> >>> Ravi >>> >>> >>>> Hi, when you post to the Piclist you need to put an appropriate topic >>>> tag in the subject line. This time I have added one to your message. B= ob >>>> >>>> On Fri, Jun 28, 2013, at 10:04 PM, Electronic Consultation wrote: >>>>> Guys, >>>>> >>>>> Am I creating a right counter for PIC ? >>>>> >>>>> timer100ms >>>>> movlw 0x64 >>>>> movwf COUNT1 >>>>> decfsz COUNT1 >>>>> return >>>>> >>>>> thanks >> -- >> http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist >> > > --=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 .