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

Print ascii code on lcd

Discussion in 'Oshonsoft' started by ese2709, Aug 23, 2012.

  1. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,180
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    I guess you know that Timer1 will not be able to count directly upto 5 Seconds.

    At 1uSec clock, its a 16bit counter [ 65536 decimal] so thats 0.065536 seconds] , if you used the 1:8 prescaler that becomes 0.524288 Seconds.

    So what you need to do, is use the Timer1 interrupt , set say at 0.5secs [ or close] and count 10 of these interrupts...OK?
     

Share This Page