Hitachi HIDIC MICRO-EH Applications Manual page 189

Table of Contents

Advertisement

Notes
If a value other than H01 to H04 is specified as the PWM output number, and if the on-duty value is outside the effective
range, DER will be set to "1" and no processing will be performed.
If the external I/O corresponding to the PWM output number is set to a function other than PWM output, DER will be set to
"1" and no processing will be performed.
The settings made using the instruction will be reflected in the special internal output (WRF072 to WRF075 and WRF076 to
WRF079). However, it is not reflected if DER becomes equal to "1."
The minimum frequency that can be supported is 10 kHz. If a frequency value smaller than 10 kHz is specified, it will be
changed to 10 kHz internally by the system.
The maximum frequency that can be supported is 2 kHz. Do not set to more than 2 kHz. Operation above 2 kHz is not
guaranteed.
If the range for S exceeds the valid range of the I/O, DER will be set to "1" and no processing will be performed.
Program example
R8
DIF8
Program description
Sets both the frequency and on-duty value of the PWM output No. 1 (Y100).
Sets 2000 (Hz) for the frequency and 30 (%) for the on-duty value.
WR80 = H0100
WR81 = 2000
WR82 = 30
FUN 148 (WR80)
5-139
Chapter 5 Instruction Specifications
LD
R8
AND DIF8
[
WR80 = H100
WR81 = 2000
WR82 = 30
FUN
148 ( WR80 )
]

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents