![Silicon Laboratories EFR32xG14 Wireless Gecko Скачать руководство пользователя страница 666](http://html1.mh-extra.com/html/silicon-laboratories/efr32xg14-wireless-gecko/efr32xg14-wireless-gecko_reference-manual_1271728666.webp)
20.3.2.10 2x Count Mode (Up-count)
When the timer is set in 2x mode, the TIMER/WTIMER will count up by two. This will in effect make any odd Top value be rounded
down to the closest even number. Similarly, any odd CC value will generate a match on the closest lower even value as shown in
Figure 20.25 TIMER/WTIMER CC out in 2x mode on page 666
2
4
0
2
4
0
Clock
CC Out
0
2
4
0
2
4
0
0
Top = 5
CC = 1
Top = 5
CC = 2
Figure 20.25. TIMER/WTIMER CC out in 2x mode
The PWM resolution is given by
Figure 20.26 TIMER/WTIMER 2x PWM Resolution Equation on page 666
R
PWM
2xmode
= log(TOP/2+1)/log(2)
Figure 20.26. TIMER/WTIMER 2x PWM Resolution Equation
Figure 20.27 TIMER/WTIMER 2x Mode PWM Frequency Equation( Up-count) on page 666
f
PWM
2xmode
= f
HFPERCLK
/ floor(TOP/2)+1
Figure 20.27. TIMER/WTIMER 2x Mode PWM Frequency Equation( Up-count)
The high duty cycle is given by
Figure 20.28 TIMER/WTIMER 2x Mode Duty Cycle Equation on page 666
DS
2xmode
= CCVx/((floor(TOP/2)+1)*2)
Figure 20.28. TIMER/WTIMER 2x Mode Duty Cycle Equation
Reference Manual
TIMER/WTIMER - Timer/Counter
silabs.com
| Building a more connected world.
Rev. 1.1 | 666