(1) Required settings
(a) Output waveform setting
Store the values of on width and a cycle in the setting data of PWM output instruction (ICPWM1).
Setting item
PWM output on width setting value
PWM output cycle setting value
Set these values so that PWM output on width setting value may be smaller than or equal to PWM output cycle
setting value.
Using a duty ratio
*1
A duty ratio refers to the ratio between the on width of signals and cycle.
236
Setting range
0 or 10 to 10000000 (0.1s)
50 to 10000000 (0.1s)
PWM output cycle setting value
*1
, PWM output on width can be calculated by the following formula.
PWM output on width =
Set the on width of output pulses.
Set a cycle of output pulses.
PWM output on
width setting value
PWM output cycle
Duty ratio (%)
100
Description