??? 04/27/04 13:14 Read: times |
#69300 - RE: how can a slow pulse period be known? Responding to: ???'s previous message |
Ok, run a timer in auto reload or without reload. That will give you interrupts which, while varying because of interrupt latency, will average out to very precise. In the interrupt for that timer increment a counter. When your event happens, stop the timer, read the timer and your counter an go figure.
To make this work, you can not have ANY other interrupts, just the timer and the pulse and the pulse must be higher priority. Since you are talking about slow pulses, if you run your micro at a high speed you will end up very precise. Erik |
Topic | Author | Date |
how can a slow pulse period be known? | 01/01/70 00:00 | |
RE: how can a slow pulse period be known? | 01/01/70 00:00 | |
RE: how can a slow pulse period be known? | 01/01/70 00:00 | |
RE: how can a slow pulse period be known? | 01/01/70 00:00 | |
RE: how can a slow pulse period be known? | 01/01/70 00:00 | |
RE: how can a slow pulse period be known? | 01/01/70 00:00 | |
RE: how can a slow pulse period be known?![]() | 01/01/70 00:00 | |
RE: how can a slow pulse period be known? | 01/01/70 00:00 | |
RE: how can a slow pulse period be known? | 01/01/70 00:00 |