05-26-2004 06:49 AM
05-26-2004 06:50 AM
05-27-2004 07:44 AM
05-28-2004 09:51 AM
06-01-2004
08:45 AM
- last edited on
07-20-2026
03:53 PM
by
Content Cleaner
Hi William,
For counting pulses you need to specify how long you want to count pulses. After that time expires, you read the count value from the counter and then reset the counter value back to zero. The counter will start counting right away from there on. To determine when you need to read the count value, you usually use a 1 kHz reference clock (internal in the device), and use one counter to let it count to a value you like (i.e. 1000 for 1 second), then output that 1 second pulse on one of the outputs and route (wire with real wire) it to a gate. You read the gate in software, and when it toggles, you read the counter. You know that exactly the time you specified has passed and you can divide the number of pulses by the amount of time.