cancel
Showing results for 
Search instead for 
Did you mean: 

LITE TIMER INPUT CAPTURE

bonollo
Associate II
Posted on September 13, 2004 at 13:59

LITE TIMER INPUT CAPTURE

5 REPLIES 5
bonollo
Associate II
Posted on September 10, 2004 at 07:28

there is some person that has used the quarrel timer to capture a signal of entry to 50 Hz with the micro ST7LITEs 05 ... to 8 bit????

thanks

dga1
Associate II
Posted on September 13, 2004 at 09:33

This could be done by reading input capture register on rising and falling edges of your signal, and by adding the number of time base interrupts in between.

You'll need to set up Input capture and time base as interrupts, and to check the port line, so you know when to count time base interrupts.

Hope this helps.

regards

Windy

bonollo
Associate II
Posted on September 13, 2004 at 09:42

okey thank-you for suggestion, i hope to do here.....
dga1
Associate II
Posted on September 13, 2004 at 10:15

Hi Again.

Just looking around, and found an application note on calibrating the FLite0 RC clock, by using the mains as a reference:

AN1324 Calibrating the RC oscillator of the ST7FLITE0 using the mains.

Which gives code examples, and pretty good description. - Might be a good starting point.

regards

Windy

anshul
Associate II
Posted on September 13, 2004 at 13:59

You could download the ST7 Library where you have routines for all the peripherals for ST7Lite0. Using the library you would save upon your development time..