PWMDUTY pin,duty cycles
Pin - is a constant which specifies the i/o pin to use. Note that the pwmout pin is not always a default output pin.
Duty - is a variable/constant (0-1023) which sets the PWM duty cycle. (duty cycle is the mark or 'on time' )
Alter the duty cycle after a pwmout command has been issued. On some parts the pwmduty command can be used to alter the pwm duty cycle without resetting the internal timer (as occurs with a pwmout command). A pwmout command must be issued on the appropriate pin before this command will function. See the pwmout command for more details and restrictions.
Start and change a PWM signal
Enable a PWM signal and then change its duty rate
Submit Your Own Code!
You must be logged in to submit code examples. Login now.