I wish to use the K8055 digital input 1 to count tachometer pulses. The maximum frequency of these pulses is around 1.5kHz. However, the counter in my demo application freezes at around 200 Hz.
I have examined the input pulses with a scope on both the ULN2803 and the input at the PIC, and the signal is very clean. I only need to read the counter value about four times a second, but I need a reliable pulse count.
What is the maximum frequency the K8055 counter input can accept?
What are some tips for achieving this performance?
Are pull-up resistors needed?
Are the internal counters on the PIC much affected by other signals connected to the K8055? I have tried it with just the tacho input and ground connected.
I am using VB6. My understanding is that the counters are internal to the PIC, and not affected by the DLL and other software. Is this correct?
When the debounce time is set to 0, the max counting frequency is about 2kHz. The duty cycle must be in that case 50% (both the positive and negative period >250us).
Maybe your tachometer outputs very asymmetric wave.
The other inputs do not affect the operation of the internal counter but the requests from the PC may decrease the counting accuracy at the highest frequencies.
I’m working on a similar hobby project… would you mind sharing what you are using as a pulse counter and a possible wiring diagram… or any other information you can share?
I’m looking at using a very high resolution pulse counter… 1024 cpr @ maybe 0 to 20 revolutions per second… I was hoping I could keep dividing the counts as speed of my encoder increased? I don’t have much experience building electronic circuits. Is it possible to use the digital outputs to turn on and off dividers, which I think are some kind of flip-flops?