Counter Free-Running
Count up and overflow back to zero after reaching maximum value for specified number of bits
Libraries:
Simulink /
Sources
HDL Coder /
Sources
Description
The Counter Free-Running block counts up until reaching the maximum value, 2Nbits – 1, where Nbits is the number of bits. Then the counter overflows to zero and begins counting up again.
After overflow, the counter always initializes to zero. However, if you select the global doubles override, the Counter Free-Running block does not wrap back to zero.
Note
This block does not report wrap on overflow warnings during simulation. To report
these warnings, see the Simulink.restoreDiagnostic
reference page. The block does report errors due to wrap on overflow.
Examples
Ports
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Extended Capabilities
Version History
Introduced before R2006a