??? 05/16/07 21:22 Read: times |
#139399 - Eh? Responding to: ???'s previous message |
Erik,
I'm not sure I understand why his method is flawed (although the max freq will be something like 1MHz, not 2MHz). Assuming he configures one of his timers in counter mode and takes an interrupt on overflow, he'll just have to increment the MSByte of his 24-bit result once every 64k instructions. So... he can clear the count value, enable the counter, then start his one second timer. At the end of his one-second timer, he disables the counter and concatenates the number of rollovers with the remaining count value to get his frequency. I'm sure I'm missing something, but I don't see what at the moment. -Jay Daniel |
Topic | Author | Date |
8051 frequency meter. Interrupt question | 01/01/70 00:00 | |
Formatted Code | 01/01/70 00:00 | |
Thanks Jon | 01/01/70 00:00 | |
No Problem - What about EA | 01/01/70 00:00 | |
EA | 01/01/70 00:00 | |
corrected code | 01/01/70 00:00 | |
that is a pipe dream | 01/01/70 00:00 | |
External hardware | 01/01/70 00:00 | |
Why no more than 100K? | 01/01/70 00:00 | |
the obvious way to do this is to use one timer as | 01/01/70 00:00 | |
there is a 3rd byte | 01/01/70 00:00 | |
no good | 01/01/70 00:00 | |
assuming you can do the math... | 01/01/70 00:00 | |
HUH | 01/01/70 00:00 | |
And what? | 01/01/70 00:00 | |
... and ... | 01/01/70 00:00 | |
Eh? | 01/01/70 00:00 | |
the counter is not 'a counter' | 01/01/70 00:00 | |
you should be on the safe side... | 01/01/70 00:00 | |
who cares who 'wins' | 01/01/70 00:00 | |
Continuation... | 01/01/70 00:00 | |
now let\'s cheat | 01/01/70 00:00 | |
Get something working first | 01/01/70 00:00 | |
I diasagree | 01/01/70 00:00 | |
It's WORKING!!![]() | 01/01/70 00:00 |