Name:  speed.png
Views: 1132
Size:  33.0 KB
Hi Henrik
I guess I am rambling a bit. The circuit that uses the ADC (AD654) works quiet well. What I am trying to do is use the PWM output to give me a frequency output of 0 to 15 kHz. I can get to 15 k with no problem but I cannot get below 1.3K due to the limitations of the PWM circuit.

The idea was to use the PWM and vary the frequency (HPWM 1, 127,W5). This seems to work as I can set the variable W5 to give me 2000 at 0 input and ramp up from there. But I am stuck with the base frequency of 2K

What I am trying to come up with is circuit that will mask the first 2 kHz. I seem to remember doing something similar many many years ago using discreet logic. My guess now is to use the timers and interrupts to capture the pulses to isolate the first 2k.
Thanks for reading this any ideas would be helpfull.
Servo drives are Gecko G320X.
Jan