Shop Learn
PWM frequency limitations using simpletools.h with propeller 1 — Parallax Forums

PWM frequency limitations using simpletools.h with propeller 1

Using Simpletools.h in a propeller 1 C_program I am limited to a frequency of 11,765KHz. if I try to go higher in frequency by reducing the pwm_start "period" the output of each pin falls to zero.
Can someone tell what I did wrong?

Comments

  • iseriesiseries Posts: 1,003

    The short answer is that the code can not keep up with the frequency.

    If you switch the memory model from CMM to LMM you can get the frequency down to 20 with a 50% duty cycle(10). CMM uses sudo code instead of native code and therefore runs slower but uses less memory.

    Not sure why you need the pulses that short if your driving a motor.

    Mike

Sign In or Register to comment.