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.

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: 300
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.

New Articles From Microcontroller Tips

Back
Top