Setting Of Pulse Output - Hitachi HIDIC MICRO-EH Applications Manual

Table of Contents

Advertisement

To change the number of output pulses, the following operation will be performed:
1] When the number of pulses is to be changed to a value larger than the number of pulses currently being output,
pulses will be output until the number of newly changed pulses is reached, and then the pulse output stops.
2] When the number of pulses is to be changed to a value smaller than the number of pulses currently being output,
the pulse output stops when the current number of pulses is reached.
R7FC to R7FF
Frequency
Frequency/2
Output pulse
Figure 8.33 Operation for changing the number of pulse output
8.5.2

Setting of Pulse Output

The settings of the pulse outputs are stored in the special internal outputs (WRF072 to WRF07D).
(1)
Setting the pulse output frequency
Set the frequency of the output pulse for each pulse output to be used in all of the special internal outputs shown below.
The setting values are 10 to 5000 (HA to H1388). If a value less than 10 Hz is set, it is internally changed to 10 Hz by the
system. When setting the frequencies, make sure that the total value of all pulse output frequencies stays within 5 kHz.
(Example 1)
Assuming there is one point of pulse output and the output frequency is 5 kHz:
(Example 2)
Assuming there are three points of pulse output and the output frequencies are 1 kHz, 1 kHz, and 3 kHz,
respectively (the settings should be made so that the sum of the output frequencies set for each of the
pulse outputs becomes 5 kHz or less.):
WRF072:
Output frequency for pulse output 1
Output frequency for pulse output 2
WRF073:
WRF074:
Output frequency for pulse output 3
Output frequency for pulse output 4
WRF075:
Figure 8.34 Special internal outputs for setting output frequencies
In case of mode 1, WRF072 and WRF073 are used for setting the on-preset value of a counter.
In case of mode 4, WRF072 and WRF075 are used for setting the on-preset value of a counter.
(3)
Setting the number of output pulses
Set the number of output pulses for each pulse output used. The setting values are 0 to 65535 (H0 to HFFFF). If the
number of output pulses is set to "0," no pulses will be output.
WRF07A:
Number of output pulses for pulse output 1
WRF07B:
Number of output pulses for pulse output 2
WRF07C:
Number of output pulses for pulse output 3
WRF07D:
Number of output pulses for pulse output 4
Figure 8.35 Special internal outputs for setting number of output pulses
In case of mode 1, WRF07A and WRF07B are used for setting the preload strobe value.
In case of mode 4, WRF07A and WRF07D are used for setting the preload strobe value.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O
1]
Change of the number
of pulses 2 → 4
Setting value = 5000 (H1388)
Setting value = 1000 (H3E8)
Setting value = 1000 (H3E8)
Setting value = 3000 (HBB8)
8-19
2]
Change of the number
of pulses 6 → 3
t

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents