truffaldino
Junior Member level 3
I wrote a frequency counter program in PICBASC PRO for 16F88. This is a pretty standard stuff: timer1 is an asynchronous counter and timer0 is a clock.
When I run this counter in Proteus, everything is OK if I feed B6 timer1 pin with the digital clock signal (it works up to 100 MHZ).
But when the signal is not digital clock, even if it is suare 50%duty cycle with raise/fall time 1 picosecond, it triples the frequency. It shows correst frequency only if rise/fall time is 0.
What could cause this problem? Is it software, configuration or simulator error?
When I run this counter in Proteus, everything is OK if I feed B6 timer1 pin with the digital clock signal (it works up to 100 MHZ).
But when the signal is not digital clock, even if it is suare 50%duty cycle with raise/fall time 1 picosecond, it triples the frequency. It shows correst frequency only if rise/fall time is 0.
What could cause this problem? Is it software, configuration or simulator error?