Additionally the TPMC851 offers a 32 bit multi-purpose counter. The counter includes a 32 bit preload register
and a 32 bit compare register. The 32 bit counter can be fed with an internal clock or with an external signal
supplied by the digital inputs. The 4 counter input modes determine the interpretation of the input signals.
Additionally 3 count modes, which describe the behavior of the counter, and 4 control modes are available.
x
Counter input modes:
o
Internal clock with prescaler
o
Up/Down count: first counter input counts up, second input counts down
o
Direction count: first counter input counts, second input sets count direction
o
Quadrature count with 1x, 2x or 4x resolution multiplier
x
Count modes:
o
Cycling Counter: normal wrap-around count mode
o
Divide-by-N: counter is reloaded from the preload register upon a borrow or carry
o
Single Cycle: counter stops upon a borrow or carry
x
Control Modes:
o
Load on Control: counter is reloaded from the preload register
o
Latch on Control: counter value is latched
o
Gate on Control: counter input is gated
o
Reset on Control: counter is reset
Figure 1-1 : Block Diagram
TPMC851 User Manual Issue 1.0.9
Page 9 of 65