30kh frequency count (by Ahmad sakr )
I tried to count frequency by 2 way
1st by counting how many count in 1 sec
2nd by measuring The time between two count
The max frequency obtained 200hz
I need to measure 30khz
What is the max available Hz can be counted?
Could you help me improve my program to reach 30khz
(no subject) (by MGP)
30kHz is not possible without using the built-in opamps and registers where you can easily count >30Mhz and for that you have to work in assembler.
With 1mS cycle time you can count up to 1000:2 = 500hz, but because the counting pulses do not coincide with the duty cycle, that is a factor of 3 or 4 less.
200Hz is a realistic value in LDmicro.
That is also the reason why reading incremental encoders does not work.
Real PLCs use special counter cards for the same reason.