how to set the relay dont turn on all the time?

Status
Not open for further replies.
20Mhz lo,is that can use??
Can you try this for 50 sec delay
I got it from picloops2 program.


Code:
;PIC Time Delay = 50.00000440 s with Osc = 20000000 Hz
		movlw	D'5'
		movwf	d4
		movlw	D'245'
		movwf	d3
		movlw	D'65'
		movwf	d2
		movlw	D'7'
		movwf	d1
loop		decfsz	d1,1
		goto	loop
		decfsz	d2,1
		goto	loop
		decfsz	d3,1
		goto	loop
		decfsz	d4,1
		goto	loop
		retlw	0
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…