20.3.2.6 Compare Mode Registers
When running in Output Compare or PWM mode, the value in TIMERn_CCx_CCV will be compared against the count value. In Com-
pare mode the output can be configured to toggle, clear or set on compare match, overflow, and underflow through the CMOA, COFOA
and CUFOA fields in TIMERn_CCx_CTRL. TIMERn_CCx_CCV can be accessed directly or through the buffer register
TIMERn_CCx_CCVB, see
Figure 20.16 TIMER/WTIMER Output Compare/PWM Buffer Functionality Detail on page 663
. When writ-
ing to the buffer register, the value in TIMERn_CCx_CCVB will be written to TIMERn_CCx_CCV on the next
update event
. This func-
tionality ensures glitch free PWM outputs. The CCVBV flag in TIMERn_STATUS indicates whether the TIMERn_CCx_CCVB register
contains data that has not yet been written to the TIMERn_CCx_CCV register. Note that when writing 0 to TIMERn_CCx_CCVB in up-
down count mode the CCV value is updated when the timer counts from 0 to 1. Thus, the compare match for the next period will not
happen until the timer reaches 0 again on the way down.
CCV
APB Write (CCB)
CCVB
Load APB
Load APB
CCVBV
Set
Clear
APB Write (CC)
Update event
Load CCB
APB Data
Figure 20.16. TIMER/WTIMER Output Compare/PWM Buffer Functionality Detail
Reference Manual
TIMER/WTIMER - Timer/Counter
silabs.com
| Building a more connected world.
Rev. 1.1 | 663