...the world's most energy friendly microcontrollers
2014-07-02 - Tiny Gecko Family - d0034_Rev1.20
257
www.silabs.com
Table 17.1. TIMER Counter Response in X2 Decoding Mode
Channel A
Channel B
Rising
Falling
0
Increment
Decrement
1
Decrement
Increment
Figure 17.8. TIMER X2 Decoding Mode
Channel A
Channel B
CNT
3
4
5
6
7
8
3
4
5
6
7
2
8
17.3.1.6.2 X4 Decoding Mode
In X4 Decoding mode, the counter increments or decrements on every edge of Channel A and Channel
B, see Figure 17.9 (p. 257) and Table 17.2 (p. 257) .
Table 17.2. TIMER Counter Response in X4 Decoding Mode
Channel A
Channel B
Opposite Channel
Rising
Falling
Rising
Falling
Channel A = 0
Decrement
Increment
Channel A = 1
Increment
Decrement
Channel B = 0
Increment
Decrement
Channel B = 1
Decrement
Increment
Figure 17.9. TIMER X4 Decoding Mode
Channel A
Channel B
3
4
5
6
7
8
9
10
11
3
4
5
6
7
8
9
10
11
2
2
CNT
17.3.1.6.3 TIMER Rotational Position
To calculate a position Equation 17.1 (p. 257) can be used.
TIMER Rotational Position Equation
pos° = (CNT/X x N) x 360°
(17.1)
where X = Encoding type and N = Number of pulses per revolution.
17.3.2 Compare/Capture Channels
The Timer contains 3 Compare/Capture channels, which can be configured in the following modes:
Summary of Contents for EFM32TG
Page 543: ......