TMP92CZ26A
92CZ26A-291
(4) 8-bit PWM (Pulse width modulation) output mode
This mode is only valid for TMRA0. In this mode, a PWM pulse with the maximum
resolution of 8 bits can b e output.
When TMRA0 is used the PWM pulse is output on the TA1OUT pin (Shared with
PM1). TMRA1 can also be used as an 8-bit timer.
The timer output is inverted when the up counter (UC0) matches the value set in
the timer register TA0REG or when 2n counter overflow occurs (n = 6, 7 or 8 as
specified by TA01MOD<PWM0 1:00>). The up counter UC0 is cleared when 2 n counter
overflow occurs.
The following condit ions must be satisfied before this PWM mo de can be used.
Value set in TA0 RE G < Value set for 2n counter ov erflow
Value set in TA0 REG 0
Figure 3.12.23 8-Bit PWM Waveforms
Figure 3.12.24 shows a block diagram representing this mode.
Figure 3.12.24 Block Diagram of 8-Bit PWM Mode
Selector 8-bit up counter
(UC0)
Comparator
TA0IN
φT1
φT4
φ
T16
TA01MOD<TA0CLK1:0>
TA1FF
TA0REG
Register buffer
Selector
TA01RUN<TA0RDE>
TA0REG-WR
TA01RUN<TA0RUN> TA1OUT
TA1FFCR
<TA1FFIE>
Shift trigge
r
Internal data bus
Clear
2n overflow
control
INTTA0
TA01MOD
<PWM01:00>
Overflow
Inversion
TA0REG and
UC0 match
TA1OUT
tPWM
(PWM cycle)
2n
overflow
(INTTA0 interrupt)