PLUS+1 User Forum
PLUS+1 Hardware => Controllers => Topic started by: dlewis on June 04, 2020, 01:34:08 PM
-
I have a customer that would like a variable output frequency from the Plus+1. Can this be done on a PWM pin? I know I can change the frequency on a pin as a constant, but can I do it dynamically while the program is running?
-
set a digital output and switch it with a variable timer
-
That will work well as long as the required frequency is below the loop time of the program but not when I'm up in the 4000 Hz range.
-
I have done it with a PWM output as an experiment. It does work, but every time the frequency is changed the output is turned off momentarily. It is not a smooth change.
-
Thanks, that's enough to tell me what I need to know.