Hi Melanie,
Thanks for your reply to my PWM question! I have older versions of both PBC and PBP. Neither of them include the 16F628. I would upgrade to later versions, but am on Social Security and money is tight. Besides, the 16F84 is doing well for this project. All other functions work well on this. (Radio Control hobby project)
Now, could I use a PulsOut command and scale the length value until the resulting "PWM" function is approximately right? (relative to the off time to go through the program again) Am using a 4 meg XT and there are actually two outputs for this project, each doing a separate "PWM" thing. Where I run into a "senior moment" with this is USING THE PULSOUT COMMAND, I AM ONLY USING 1 CYCLE OF "PWM" for each of the two outputs, that occur each time the code loops through.
If I use real PWM on the 16F84 with a variable for the duty and, say, 10 cycles, will the pwm have to complete the full 10 cycles before upgrading? Or will the duty variable be upgraded each time the program loops through again?
I hope this makes sense and THANKS MUCH FOR YOUR HELP!!
Ron
PS this is all in PBC




Bookmarks