high speed counter (by DPG)
Hello,
I need some help, I did one counter and the project doesn't work normally, but it is simple, is one counter that needs start a buzzer and one led when have some value from counter, like 5 pulses, 500 pulses, 1000 pulses, 2000 pulses, 3000 pulses, 5000 pulses and 10000 to 10000 pulses, but the circuit or program lost the pulses and starts the buzzer and led later then I need. I'm using one 16f628a with 16Mhz.
Below is my program.
Thanks
Diego
(no subject) (by MGP)
I think you need a faster cycle time, depending the puls lenght.
I made a few minor changes in your program rung 2,3 and 6 and the cycletime is 0.5mS.
Solved (by DPG)
Hi,
The problem was solved with cycle time! I tested my old program and V2 they work with 0.5ms cycle time.
So, Thank you very much MGP, you helped me to solve my problem.
Best Regards.
Diego