Xinje XD Series User Manual page 201

Hide thumbs Also See for XD Series:
Table of Contents

Advertisement

HSC2
K10000
HSC2=K10000+K10000=K20000
HSC2=K20000+K5000=K25000
Absolute Mode
In absolute mode, interruption occurs when the count value equals the set value of each
section of the counter. N interrupt markers correspond to N interrupt settings. The N+1
interrupt settings register is reserved for other purposes.
Example 1:
The current value of counter HSC0 is 0, the setting value of segment 1 is 10000, the setting
value of segment 2 is 15000, and the setting value of segment 3 is 20000. When it starts
counting, if the current value of the counter is 10000, the segment 1 interruption I2000 is
generated; when the current value of the counter is 15000, the segment 2 interruption I2001 is
generated; when the current value of the counter equals 20000, the segment 3 interruption
I2002 is generated.
HSC0
K0
HSC0= K10000
Example 2:
The current value of counter HSC2 is 5000, segment 1 set value is 10000, segment 2 set value
is 5000, and segment 3 set value is 20000. When it starts counting, if the current value of the
counter is 10000, segment 1 interrupt I2100 is generated; when the current value of the
HD0
HD1
K10000
I2100
HSC2=K25000+K20000=K45000
HD0
HD1
K10000
I2000
HSC0= K15000
HSC0= K20000
200
HD2
HD3
K5000
I2101
HD2
HD3
HD4
K15000
K20000
I2001
HD4
HD5
K20000
I2102
HD5
I2002

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xl seriesXd3Xd5

Table of Contents