- Download & Install [nodejs](https://nodejs.org/en/download/) - Download & Install npm - Setup node & npm in enviroment path
npm install @mchp-mcc/pwm-driverPWM is used to generate the PWM pulses, this PWM is used to drive motor and other applications.
* PWM Frequency and the Duty cycle is user configurable, the range of the Frequency value depends
on the clock source selected from the Hardware Dependency module (PLIB).
* Internal timer operates in Synchronization (Sync) or Trigger mode.
* Sync sources are user configurable, the timer Reset or clear occurs when the input selected by
the Sync source is asserted. The Timer immediately begins to count again from zero unless it is held for some other reason.
* In Trigger operation, the timer is held in Reset until the input selected by Sync source is
asserted.
The following waveform represents the PWM output and the effect of Sync source.
The following waveform represents the PWM output and the effect of Trigger source.
!triggerImage
|Basic PWM Driver | MCCP/SCCP PLIB| PIC24/dsPIC devices |
|:---| :---|:---|
1.0.2 | >=1.1.0 | >=5.4.0
1.0.0 | 1.1.0 | <=5.4.0
1.0.0 | <=1.0.1 | <=5.3.0