Hardware PWM

Here is a version of Darrels HPWM10_L.zip. Produced my forum user pedja089
The original version works with PBPW. Comments in the code show what has been changed.

Darrel published his version on me labs forum.

include "HPWM_L.pbp"
DutyCycle1  VAR WORD
DutyCycle2  VAR WORD
Frequency  VAR WORD
@ HPWM10  1, _DutyCycle1, _Frequency
@ HPWM10  1, _DutyCycle2, _Frequency

The Frequency must be same for all channels.

HPWM10_L.zip
HPWM10.zip

Page last modified on March 06, 2018, at 03:22 AM