EasyManua.ls Logo

Xinje XD5 - Page 200

Xinje XD5
389 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
199
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:
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:
HSC0= K5000+K20000=K25000
HSC0= K10000+K-5000=K5000
HSC0= K0+K10000=K10000
HSC0
HD0
HD1
HD2
HD3
HD4
HD5
K0
K10000
K-5000
K20000
I2000
I2001
I2002

Table of Contents

Related product manuals