The up / down counting operation of the TSX CTY2C is introduced below.
The counting or down counting operations are the changes of the same register of the module. The only difference is the direction of the change. This is defined by software configuration, by a physical input or by applying a count signal to a particular input.
The changes of the counting register are possible only when the function is enabled:
-
by the physical input IVal with a software pre-positioning (Enable command).
-
directly, using the software: Direct Enable command.
The count values vary between:
-
-16,777,216 and +16,777,215 in normal mode (24 bits + sign).
-
0 and +33,554,431 in modulo mode (25 bits without sign).
The following timing diagram shows the up/down counting process, when the count signal is applied to the
IA input, the
IB input defines the counting direction. There are many other possibilities (previously introduced) to define the counting direction, but the up/down counting principle is the same. The associated language objects are described in the
implicit objects part.