cancel
Showing results for 
Search instead for 
Did you mean: 

ST7LITE counters

zsavov
Associate II
Posted on December 05, 2007 at 03:37

ST7LITE counters

2 REPLIES 2
zsavov
Associate II
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

fggnrc
Associate II
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