224
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.
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
counter is 5000, segment 2 interrupt I2101 is generated; when the current value of the counter
equals 20000, segment 3 interrupt I2102 is generated.
tudonghoatoancau.com