in the RPM mode the display is very unstable because of noise (I plug/unplug a power adapter in the outlet besides the power adaptor to my HW).
When I do NOT make noise this way the display is very, very stable - and I have made it even more stable by displaying the average of the last 5 readings.
I have tried a lot of things in the HW - big caps, 10K from my RB0 interrupt pin to ground, SmithTriggers - but still I can introduce noice (=flickering numbers in the display) by plug/unplug a power adaptor.



I still have my HW on a breadboard - but setup reaseable with short wires, caps across the power, x-tal nearby the PIC and so on.
Can I do something in the software ? - something like - just loose thinking:
I have an incomming puls on interrupt RB0 and I want to measure the time between two incomming pulses - and IF NOISE is introduced, then the next puls (the noise puls) must come faster than "normal" and I can then neglate this "too fast comming puls".
To allow acceleration and deceleration I'll have to accept a "gap" in the time measurering.
From a STABLE reading I can calculate the exspected time interval to the next REAL puls (+/- something) - if a puls comes faster (it's a noise puls) and I'll have to neglate this puls.
How can I use timers for this purpose - like a stopwatch - and without loosing any "real" pulses on the input - I allready use TMR0.
Maybe it's completely non-sense to try cure noise problems this way - then STOP me right away !
