Description
Source
Call Graph
PWMC_SetDutyCycle
Sets the duty cycle used by a PWM channel.


Syntax / parameters
Name |
Type |
Default |
Description |
channel |
unsigned char
|
|
Channel number.
|
duty |
unsigned short
|
|
Duty cycle value.
|
Description
Sets the duty cycle used by a PWM channel.
This function writes directly to the CDTY register if the channel is disabled; otherwise it uses the update register CUPD. Note that the duty cycle must always be inferior or equal to the channel period.
Source
The documentation for this Member was generated from the following files:
pwmc.c