Up/Down Counting Operation
(Original Document)
At a Glance
The up / down counting operation of the TSX CTY2C is introduced below.
Basic Principles
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:
The count values vary between:
Operation
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.