Datasheet

78K0/Ix2 CHAPTER 6 16-BIT TIMERS X0 AND X1
R01UH0010EJ0500 Rev.5.00 228
Feb 28, 2012
(5) PWM output operation (PWM output from TOX0n when TOH1 output is at high level)
A square wave is output from the TOX0n pin by combining 8-bit timer H1 and 16-bit timer X0, only when the TOH1
output is at high level.
See (1) PWM output operation (single output) through (4) PWM output operation (TMX0 and TMX1
synchronous start mode) for the setting of outputting a square wave.
Remarks 1. n = 0, 1
2. For the setting of TOH1 output, see CHAPTER 9 8-BIT TIMER H1.
Figure 6-35. Example of Register Settings for PWM Output Operation (TMX0-Only Operation (Dual Output), PWM
Output from TOX00 and TOX01 When TOH1 Output Is at High Level)
(a) 16-bit timer X0 operation control register 0
1TX0CTL0 0 0 0 0
TX0CKS2TX0TMC TX0CKS1 TX0CKS0
0/1 0/1 0/1
Selects count clock
Starts timer count operation
(b) 16-bit timer X0 operation control register 1
0/1TX0CTL1 0 1 0 1
TX0INTPST
TX0PWMCE TX0PWMCINV
TX0PWM
000
Performs PWM output from TOXmn pin
when TOH1 output is high level.
Dual output
Using the TOX0n output gate function by
TOH1 output is enabled.
0: Starts counting when TX0TMC bit = 1.
1: Starts timer counting when TX0TMC bit = 1
and INTP0 rising edge is detected.
(c) 16-bit timer X0 output control register 0
0TX0IOC0 0 0 0 1
TX0TOL1TX0TOC0TX0TOC1 TX0TOL0
Enables timer output
1 0/1 0/1
0: Normal output (low level)
1: Inverted output (high level)
Remark n = 0, 1, mn = 00, 01, 10, 11