CHAPTER 9 TIMER/COUNTER FUNCTION
209
User’s Manual U15195EJ5V0UD
(4/4)
Bit position
Bit name
Function
Specifies the operation mode of TM0n.
MOD
01
MOD
00
Operation mode
TM0n
operation
Timer clear
source
BFCMn3
→
CM0n3
timing
BFCMn0 to
BFCMn2,
BFCMn4,
BFCMn5
→
CM0n0 to
CM0n2,
CM0n4,
CM0n5
timing
0
0
PWM mode 0
(symmetric
triangular wave)
Up/down
−
INTTM0n INTTM0n
0
1
PWM mode 1
(asymmetric
triangular wave)
Up/down
−
INTTM0n INTTM0n,
INTCM0n3
1
0
PWM mode 2
(sawtooth wave)
Up INTCM0n3
INTCM0n3
INTCM0n3
1 1
Setting
prohibited
1, 0
MOD01,
MOD00
Caution Changing the value of the MOD01 and MOD00 bits during TM0n operation
(TM0CEn bit = 1) is prohibited.
Remark
n = 0, 1
Figure 9-4. Specification of INTTM0n Interrupt in PWM Mode 0 (Symmetric Triangular Wave), PWM
Mode 1 (Asymmetric Triangular Wave) (MOD01, MOD00 Bits of TMC0n Register = 0n)
CM0n3
TM0n count value
0000H
TM0CEn
Specification from occurrence of
INTTM0n at first start after reset is
possible using STINTn bit
INTTM0n occurrence can be
specified using STINTn bit
INTTM0n
occurrence
INTTM0n
occurrence
Timer operation
stopped
Remark
n = 0, 1