Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - high speed counter

(you are viewing a thread; or go back to list of threads)

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
Fri Oct 17 2014, 08:49:10, download attachment cntrqualit.ld
(no subject) (by DPG)
I forgot, the counter is 16 pulses per second
Fri Oct 17 2014, 08:51:24
(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.
Fri Oct 17 2014, 11:10:45, download attachment cntrqualit_V2.ld
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
Sun Oct 19 2014, 19:19:04
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):