Name

pwm_set_period — sets the PWM signal period.

Synopsis

#include <pwm.h>   
void pwm_set_period (channels,  
 period_us); 
char channels;
unsigned long period_us;
 

Arguments

channels

bitmask of channels

period_us

the period in microseconds

Description

Sets the PWM signal period, in the specified channels.

In the ZKit-51, ZKit-51-V664, the PWM period range is 83us to 21250us. In the ZKit-ARM-1343, the PWM period range is 1us to 910us

In the ZKit-51, it is not possible to set the PWM period for individual channels. So the PWM period of all the channels will be modified.