Datasheet
78K0/Ix2 CHAPTER 6 16-BIT TIMERS X0 AND X1
R01UH0010EJ0500 Rev.5.00 219
Feb 28, 2012
To specify PWM output from TOXn0, set TXnCR0 and TXnCR1 to a value in the following range:
0000H TXnCR0 TXnCR1 TXnCR3
If TXnCR0 = TXnCR1 is specified, the output will be set to the default status (fixed).
To specify PWM output from TOXn1, set TXnCR2 and TXnCR3 to a value in the following range:
0000H TXnCR2 TXnCR3 FFFFH
If TXnCR2 = TXnCR3 is specified, the output will be set to the default status (fixed).
Notes 1. The output is inverted when the counter reaches TXnCRm + 1.
2. Count clock of 16-bit timer Xn
Figure 6-29. Example of Register Settings for PWM Output Operation (Dual Mode) (1/2)
(a) 16-bit timer Xn operation control register 0
1TXnCTL0 0 0 0 0
TXnCKS2TXnTMC TXnCKS1 TXnCKS0
0/1 0/1 0/1
Selects count clock
Starts timer count operation
(b) 16-bit timer Xn operation control register 1
PWM output: TOX00 and TOX01 pins
0/1TX0CTL1 0 0 0 1
TX0INTPST
TX0PWMCE TX0PWMCINV
TX0PWM
Dual output
000
0: Starts counting when TX0TMC bit = 1.
1: Starts timer counting when TX0TMC bit = 1
and INTP0 rising edge is detected.
Using the TOX0n output gate function by
TOH1 output is prohibited.
PWM output: TOX10 and TOX11 pins
0TX1CTL1 0 0 0 1
TX1PWM
TX1MD1 TX1MD0
Dual output
000
TMX1-only start mode
TX1PWMCE
Using the TOX1n output gate function by
TOH1 output is prohibited.
Remark n = 0, 1
<R>