Hi all,
Here is my understanding of counting number of pulses of my project:
Please be patient in my description may looks lengthy..
In this mode(process of number of pulses), we can measure the number of pulses coming on the input line =91Pulse_din_0=92 within some time set by the processor. There is one counter =91CNT_P4P_PC0=92 to which processor will load the time period value, during which number of pulses have to be counted.
Suppose we want to calculate the number of pulses coming on the input line =91Pulse_din_0=92 in the duration of 1 second, then processor has to load the value of =910x186A0=92 (for the =9110usec=92 time base i.e., actua= l time divided by time base will give the count value to be loaded into counter) to the =91CNT_P4P_PC0=92 counter. Then this counter starts decrementing at the rate set by the processor and at the same time PC_0 starts incrementing it count value by 1 on receiving the pulse on input line each time. This process will be continued till loaded counter =91CNT_P4P_PC0=92 reaches the value of zero. At the end, if we read the count value of PC_0 counter, we can get the number of the pulses arrived on the input line during set time period.
Could anyone give or form an equation of counting number of pulses (confusing what is Actual time here...) with an example
Please ...response..
J.Sreeniv Design Engg-FPGA, MOOG,Inc