English
Language : 

EFM32WG Datasheet, PDF (528/834 Pages) List of Unclassifed Manufacturers – The EFM32WG Wonder Gecko is the ideal choice for demanding 8-, 16-, and 32-bit energy sensitive applications.
...the world's most energy friendly microcontrollers
Figure 20.14. TIMER Period and/or Pulse width Capture
CNT
0
Input
Clear& St art
Input Capt ure (frequency capt ure)
Input Capt ure (pulse-widt h capt ure)
20.3.2.4 Compare
Each Compare/Capture channel contains a comparator which outputs a compare match if the contents
of TIMERn_CCx_CCV matches the counter value, see Figure 20.15 (p. 528) . In compare mode, each
compare channel can be configured to either set, clear or toggle the output on an event (compare match,
overflow or underflow). The output from each channel is represented as an alternative function on the
port it is connected to, which needs to be enabled for the CC outputs to propagate to the pins.
Figure 20.15. TIMER Block Diagram Showing Comparison Functionality
Updat e
Condit ion
CNTCLK
TIMERn _CNT
TIMERn _TOP
Not e: For sim plicit y, all
TIMERn_CCx regist ers are
grouped together in the figure,
but they all have individual
Com pare Regist er and logic
TnTCnTICCMCR]ER0]R[1n1[ _51C:50C: 0x
=
=0
===
Com pare and
PWM config
Com pare and
PWM config
Com pare and
PWM config
Ov e r f l o w
Underflow
Com pare Mat ch x
TIMn _CC0
TIMn _CC1
TIMn _CC2
If occurring in the same cycle, match action will have priority over overflow or underflow action.
The input selected (through PRSSEL, INSEL and FILTSEL in TIMERn_CCx_CTRL) for the CC channel
will also be sampled on compare match and the result is found in the CCPOL bits in TIMERn_STATUS.
It is also possible to configure the CCPOL to always track the inputs by setting ATI in TIMERn_CTRL.
The COIST bit in TIMERn_CCx_CTRL is the initial state of the compare/PWM output. The COIST bit
can also be used as an initial value to the compare outputs on a reload-start when RSSCOIST is set in
TIMERn_CTRL. Also the resulting output can be inverted by setting OUTINV in TIMERn_CCx_CTRL. It
is recommended to turn off the CC channel before configuring the output state to avoid any pulses on
the output. The CC channel can be turned off by setting MODE to OFF in TIMER_CCx_CTRL.
2013-05-08 - Wonder Gecko Family - d0233_Rev0.50
528
www.energymicro.com