One-shot Mode Principle Description
The counter is activated by a synchronization edge, and the preset value is loaded.
When counting is enabled, each pulse applied to the input decrements the current value. The counter stops when its current value reaches 0.
The counter value remains at 0 even if new pulses are applied to the input.
A new synchronization is needed to activate the counter again.
This table explains the stages from the preceding graphic:
Stage |
Action |
---|---|
1 |
On the rising edge of the Sync condition, the preset value is loaded in the counter (regardless of the current value) and the counter is activated. |
2 |
When the Enable condition = 1, the current counter value decrements on each pulse on input A until it reaches 0. |
3 |
The counter waits until the next rising edge of the Sync condition. Note: At this point, pulses on input A have no effect on the counter. |
4 |
When the Enable condition = 0, the counter ignores the pulses from input A and retains its current value until the Enable condition again = 1. The counter resumes counting pulses from input A on the rising edge of the Enable input from the held value. |
NOTE: Enable and Sync conditions depends on configuration. These are described in the Enable and Synchronization function.