6F3B0253
8. Special I/O Functions
Operation
Pulse enable
ON duty setting | 10 | 20 | 30 | 70 |
60 70
ON duty |
|
|
|
|
|
|
|
|
|
|
| 70% |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30% |
|
|
|
|
PWM output |
|
|
|
|
| 20% |
|
|
|
|
|
| |
10% |
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60%
70%
Sample program
In this example, 1 (H0001) is set in SW26 and 100 is set in SW28. As a result, 100 Hz PWM output function is selected.
When R005 is ON, the PWM output is started with the duty cycle designated by D0200.
If an invalid ON duty is designated, the ON duty setting error flag (S26E) comes ON and the pulse enable flag (S270) is turned OFF. Then the PWM output is stopped.
274