Help to correct the timer code ATtiny 2313

Status
Not open for further replies.
Hello all
I got this circuit from internet.. Its a good timer. Proteus simulation works great.. But the hardware not work well... The timeing is not correct.. When the count down start, the display count as 5 second = 1 second. How to correct these error?

I am fresh in Programming and I dont know even write a line of code.

The necessary file are attached.....
 

Attachments

  • Atiny 2313 Timer.zip
    20.3 KB · Views: 306
hi

I find something in the code...

Delay100us:
ldi r17,10 ; manoj edited actual value is 98
delay1us: ; 98*1.017 microsec
nop
nop
dec r17
brne delay1us ; => 5 clock-cycles => 1.017 microsec
ret



any hope?

thanks in advance.......
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…