Xinje XD Series User Manual page 200

Hide thumbs Also See for XD Series:
Table of Contents

Advertisement

In relative mode, the set value of high-speed counting 100 segments is relative cumulative
value. When the set value of counting equals the sum of the interruption count value of N-1
segment and the set value of N segment, the segment N interrupt is generated.
N interrupt markers correspond to N interrupt settings. The N+1 interrupt settings register is
reserved for other purposes.
Example1:
The current value of HSC0 is 0, segment one preset value is 10000, the preset value in
segment 2 is -5000, the preset value in segment 3 is 20000. When starting to count, when
the counter's current value is 10000, it generates the segment 1 interruption I2000; when the
counter's current value is 5000, it generates the segment 2 interruption I2001; when the
counter's current value is 25000, it generates the segment 3 interruption I2002.
See graph below:
HSC0
K0
HSC0= K0+K10000=K10000
HSC0= K10000+(K-5000)=K5000
Example 2:
HSC2 current value is 10000, the segment one preset value is 10000, the preset value of
segment 2 is 5000, the preset value of segment 3 is 20000. When starting to count, when the
counter's current value is 20000, it generates the segment 1 interruption I2100; when the
counter's current value is 25000, it generates the segment 2 interruption I2101; when the
counter's current value is 45000, it generates the segment 3 interruption I2102.
See graph below:
HD0
HD1
HD2
K10000
K-5000
I2000
HSC0= K5000+K20000=K25000
199
HD3
HD4
K20000
I2001
I2002
HD5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xl seriesXd3Xd5

Table of Contents