Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
monkeybiter said:at last, i can say it.....
yes it's trivial.
it's very easy to output a square wave from a pic with full control over frequency and duty cycle... you just toggle the pin value when required by a preset delay. i used a spare 16f84 to do just this while debugging a zero cross iinterrupt routine on a 16f876a controlled dimmer.
of course a 555 is easy too, but you have to hang more bits and bobs off it to get the same result [assuming you have a pic programmer].
if you've got a spare low end pic my choice would be to use that.
eblc1388 said:Will you mess up the frequency output by servicing the interrupt request?
What kind of resolution and tolerance do you need? 1.0 Hz ±1.0% or ±2.0% perhaps? And, how do you want to control or select the frequency? Thumbwheel switches? Serial input from a PC? A trim pot'?bryan said:Hi All:
Is it possible to use a PIC to generate low frequency square waves variable between 5 and 50hz with a 50% duty cycle or better off to use a 555 timer.
Thanks
eblc1388 said:Will you mess up the frequency output by servicing the interrupt request?
Mike said:What kind of resolution and tolerance do you need? 1.0 Hz ±1.0% or ±2.0% perhaps? And, how do you want to control or select the frequency? Thumbwheel switches? Serial input from a PC? A trim pot'?
bryan said:I was hoping for a resolution of 0.5 hz and would like to control by the use of two pushbuttons. Up and down.