1. 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.
    Dismiss Notice

Help to correct the timer code ATtiny 2313

Discussion in 'AVR' started by manoj soorya, Apr 30, 2015.

  1. manoj soorya

    manoj soorya Member

    Joined:
    Aug 23, 2014
    Messages:
    239
    Likes:
    4
    Location:
    India
    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.....
     

    Attached Files:

  2. manoj soorya

    manoj soorya Member

    Joined:
    Aug 23, 2014
    Messages:
    239
    Likes:
    4
    Location:
    India
    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.......
     

Share This Page