2004-09-13 04:59 AM
2004-09-09 10:28 PM
2004-09-13 12:33 AM
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 Windy2004-09-13 12:42 AM
2004-09-13 01:15 AM
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 Windy2004-09-13 04:59 AM
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..