
CHAPTER 9 8-BIT TIMERS H0 AND H1
User
’
s Manual U15862EJ3V0UD
387
(3) Usage method
Any carrier clock can be output from the TOHn pin.
<1>
Set each register.
Figure 9-8. Register Settings in Carrier Generator Mode
8-bit timer H mode register n (TMHMDn)
0
0/1
0/1
0/1
0
Enables timer output
Sets timer output level inversion
Selects carrier generator mode
Selects count clock (f
CNT
)
Stops count operation
1
0/1
0/1
TMMDn0 TOLEVn
TOENn
CKSHn1
CKSHn2
TMHEn
TMHMDn
CKSHn0 TMMDn1
CMPn0 register:
CMPn1 register:
TMCYCn register:
Compare value
Compare value
RMCn = 1
NRZBn = 0/1... Carrier output enable bit
... Remote control output enable bit
TCL5n, TMC5n registers: Refer to
8.3 Control Registers
.
Remark
n = 0, 1
<2>
<3>
When TMHEn = 1 is set, 8-bit timer Hn count operation starts.
When the TCE5n bit of 8-bit timer mode control register 5n (TMC5n) is set to 1, 8-bit timer/event counter
5n count operation starts.
After the count operation is enabled, the first compare register to be compared is the CMPn0 register.
When the count value of 8-bit timer counter Hn and the value of the CMPn0 register match, the
INTTMHn signal is generated, 8-bit timer counter Hn is cleared, and at the same time, the register that is
compared with 8-bit timer counter Hn changes from the CMPn0 register to the CMPn1 register.
When the count value of 8-bit timer counter Hn and the value of the CMPn1 register match, the
INTTMHn signal is generated, 8-bit timer counter Hn is cleared, and at the same time, the register that is
compared with 8-bit timer counter Hn changes from the CMPn1 register to the CMPn0 register.
The carrier clock is obtained through the repetition of steps <4> and <5> above.
The INTTM5n signal is synchronized with 8-bit timer Hn and output as the INTTM5Hn signal. This signal
becomes the data transfer signal of the NRZBn bit and the value of the NRZBn bit is transferred to the
NRZn bit.
When the NRZn bit becomes high level, the carrier clock is output from the TOHn pin.
Any carrier clock can be obtained through the repetition of the above steps. To stop the count operation,
set TMHEn = 0.
<4>
<5>
<6>
<7>
<8>
<9>