HPWM confusion
Ok... please forgive. I've read the posts. I've seen the code and still I just don't get it.
Using the PWM command requires the output pin, the duty, and the cycle... cycle being the length of time that it is running right?
So:
pwm portb.1,127,200 '4mhz clock
would produce pulses on portb.1 at an approximate 50% duty cycle for 1 second right? Then you'd bounce to the next line of code.
When you use HPWM, it runs in the background until it is stopped. So why do you need to put a cycle time? Doesn't it just run until you tell it not to?
I know this is simple but my brain just won't allow entrance!!!
Thanks for holding my hand!
Ross
Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!
I like that! :-)
Bookmarks