Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top