I am using the C51 compiler and have code for the silabs C8051F120.
I have built a wind speed sensor with a rotary encoder but it seems to top out at 42mph. I know there have been gusts greater than that since I started using it.
I have considered calibrating the unit with an automobile and think i may be missing edges of the encoder signal because of processing overhead. I think the encoder counter routine should be interrupt driven.
My coworker Frisky suggested the circuitry is not able to handle fast counting signals coming from sensor and said that the 2nd problem circuitry should be analyzed.
Does anyone have an idea why that might happen?
But he thinks that it go down for a short time and he says that an 8 bit processor cannot be fast enough to see it!
Why, you're trying to acquire a 1-bit signal ! Even an 8-bit processor has eight times more bits that required for your signal. That's way too much already, all the extra bits will get horrendously bored. If you add another 24 bits, there's no way to guess what all the poor, bored, underemployed bits might do inside the chip.