PLUS+1 User Forum

PLUS+1 Hardware => Controllers => Topic started by: dlewis on June 04, 2020, 01:34:08 PM

Title: Output Frequency
Post 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?
Title: Re: Output Frequency
Post by: tronelec on June 04, 2020, 07:35:58 PM
set a digital output and switch it with a variable timer
Title: Re: Output Frequency
Post by: dlewis on June 04, 2020, 08:06:36 PM
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.
Title: Re: Output Frequency
Post by: SJ Industries on June 04, 2020, 10:11:40 PM
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.
Title: Re: Output Frequency
Post by: dlewis on June 05, 2020, 01:31:06 PM
Thanks, that's enough to tell me what I need to know.