RMMK
Full Member level 3
The display routine seems to be working fine.
I'm tied up with another job right now and there is no chance I can help before your deadline. The bug is in the calculateRPM() routine, the formula for working out the speed is not working properly. I'll have to let you work that one out for yourself but I think you can see how it processes the result, the thousands digit goes in Digit[0], hundreds in Digit[1], tens in Digit[2] and units in Digit[0]. Let me know how you get on.
Please remember it shows the pulses per 0.1 seconds interval at the moment, you can adjust the timing interval with the value loaded into TMR1 but if you need longer intervals, use a software variable to count several shorter intervals, do not use any delay routines as these will disrupt the display multiplexing.
Brian.
Well I found a different way to calculate angular velocities for my project therefore didnt use the tach...... but now i have quite a lot of time to correct the code! So plzzzz feel free to help me in ur own time!