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.
Yup, can do it with change. Delay 10mS, toggle pin, delay 90mS, toggle pin, rinse and repeat.i need a PWM signal having a frquecny of 1 khz with a duty of 10% ..Does this guy can do this job?
Then its simply a pulse out as Pommie said... The whole idea of PWM is it's adjustable...i need a PWM signal having a frquecny of 1 khz with a duty of 10% ..Does this guy can do this job?
The compiler I use; uses 100% of the CPU time to "delay". You might have to make a delay function that allows you to do another job. BUT With no/little stack it will be hard to do anything inside the 90mS delay. If the duty cycle varies it makes the timing harder.Delay 10mS, toggle pin, delay 90mS,
How does that make a 1kHz signal?Delay 10mS, toggle pin, delay 90mS, toggle pin, rinse and repeat.
True, but I don't think that was the point.... I still don't get the PWM reference.... As it has been said. 555 will do the job...How does that make a 1kHz signal?
True, but I don't think that was the point.... I still don't get the PWM reference.... As it has been said. 555 will do the job...
Mine too.... Wonderous little device... In fact I used one upside down to replace a 555 in the field once... Worked like a dream...the 12F1840 is my 8 pin of choice.
Whoops, wrong numbers. Must pay attention next time.How does that make a 1kHz signal?
Looking at the datasheet, it appears to have 2 fully functioning PWM modules. Are you referring to the Numerically Controlled Oscillator as this has a fixed duty cycle mode. Very powerful chip for the size.According to Microchip one of that chip's features is "a PWM with a fixed 50% duty cycle and an increased frequency resolution function". How can it be PWM if the duty cycle is fixed? I call that misleading if the only variable is the frequency.
This chip has CLC... LOL.... To do what with.... Two inputs one output.... I thought it useless on an 8 pin....
I haven't checked the details; I was just curious about the apparent contradiction in the introductory blurb.Are you referring to the Numerically Controlled Oscillator
I haven't checked the details; I was just curious about the apparent contradiction in the introductory blurb.