The pulse width modulation function generates a programmable pulse wave signal on a dedicated output with adjustable duty cycle and frequency.
The signal form depends on the following input parameters:
oFrequency configurable:
ofrom 0.1 Hz to 20 kHz with a 0.1 Hz step (fast outputs: Q0...Q3)
ofrom 0.1 Hz to 1 kHz with a 0.1 Hz step (regular outputs: Q4...Q7)
oDuty Cycle of the output signal from 0% to 100% with 1% step or 0.1% step with HighPrecision.
Duty Cycle=Tp/T
Tp pulse width
T pulse period (1/Frequency)
Modifying the duty cycle in the program modulates the width of the signal. Below is an illustration of an output signal with varying duty cycles.
The following illustration shows a duty cycle of 20%: