An Up/Down Counter microblock counts the number of on signals it receives and produces a number that increases or decreases according to the input receiving the signal.
Each time the inc input turns on, the output value increases by one. Each time the dec input turns on, the output value decreases by one (but does not fall below zero). When the clr input turns on, the output value resets to zero.
|