mvs sarma Well-Known Member Mar 2, 2009 #21 babboy12345 said: ok,but why my delay dint work at all???suppose hold the LED for 50sec,but dint work at all.... Click to expand... i am missing to see what frequency crystal did you use for the hardware?
babboy12345 said: ok,but why my delay dint work at all???suppose hold the LED for 50sec,but dint work at all.... Click to expand... i am missing to see what frequency crystal did you use for the hardware?
mvs sarma Well-Known Member Mar 2, 2009 #23 babboy12345 said: 20Mhz lo,is that can use?? Click to expand... 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: Mar 2, 2009
babboy12345 said: 20Mhz lo,is that can use?? Click to expand... 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