ST10R272L - GENERAL PURPOSE TIMER UNITS
198/320
each transition on one or both of the external input pins which gives 2-fold or 4-fold
resolution to the encoder input.
Bitfield T3I in the T3CON control register selects the triggering transitions (see table below).
In this mode, the sequence of the transitions of the two input signals is evaluated, and
generates count pulses as well as the direction signal. So, T3 is modified automatically
according to the speed and the direction of the incremental encoder, its contents therefore
always represent the encoder’s current position.
Figure 73 Core timer T3 in incremental interface mode
T3I
Triggering Edge for Counter Increment/Decrement
000
None. Counter stops
001
Any transition (rising or falling edge) on T3IN
010
Any transition (rising or falling edge) on T3EUD
011
Any transition (rising or falling edge) on T3 input (T3IN or T3EUD)
1XX
Reserved. Do not use this combination
Table 34 GPT1 core timer T3 (incremental interface mode) input edge selection
edge detect
phase detect
T3
MUX
T3IR
T3OTL
T3R
T3OUT
T3OE
XOR
Up/Down
T3UD
T3EUD
T3IN