Skip to main content
Visitor II
December 5, 2007
Question

ST7LITE counters

  • December 5, 2007
  • 2 replies
  • 597 views
Posted on December 05, 2007 at 03:37

ST7LITE counters

    This topic has been closed for replies.

    2 replies

    zsavovAuthor
    Visitor II
    December 4, 2007
    Posted on December 04, 2007 at 19:45

    Hi,

    I read the datasheets of some of the LITE devices (ST7LITE2 and ST7LITE3). It seems to me that the 12-bit auto reload counters cannot be reset anyhow. Once the clock frequency is selected they just run forever. This means that I cannot synchronize them with any external events. Am I correct or am I missing something.

    Thank you

    Visitor II
    December 5, 2007
    Posted on December 05, 2007 at 03:37

    zsavov1,

    to synchronize the counter with an external event you can use the input capture feature.

    It provides a more precise way to measure the time between two events because the timing error is limited by hardware to a clock pulse.

    All you have to do is subtract the two captured values and keep track of the eventual timer overflows.

    Regards

    EtaPhi