Name

pwm_init — initializes the PWM interface

Synopsis

#include <pwm.h>   
void pwm_init (void); 
void;
 

Arguments

void

no arguments

Description

Initializes the PWM interface. Should be invoked before any other PWM interface functions are invoked.

Dependencies

ZKit-51-v664, ZKit-51-RD2 and ZKit-51 specific: The PWM module uses Timer 0 for generating the PWM clock. When the PWM module is intialized, the Timer 0 should not be used for other purposes.