??? 05/16/07 22:35 Read: times |
#139410 - Get something working first Responding to: ???'s previous message |
Hello Jan,
Jorge is running into all of the problem getting a 80C51 working as a frequency counter. The limitation of a 12 clock and two clock minimum pulse width limit the upper frequency to 1 megahertz at a clock speed of 24 MHz but those problems are minor when you don't have anything working. One step at a time. First get something working as a frequency counter. Second problem he most likely will run into is converting the 24 bit binary value into something that can be displayed. It sounds like handling the 16 bit timer counter interrupt was going to bug him a while. There is a lot easy way of dealing with this problem if you do some research. A lot has already been done with the 80C51 and frequency counters. Simply find a working model, copy that, learn from it and then change what you want. Anyway it sure teaches you how this stuff really works when you sit down and do it yourself. Good luck, Charles Bannister |
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 |