278
Chapter 10
Timer
Preliminary User’s Manual U15839EE1V0UM00
10.1.4 Control
registers
(1)
Timer C control register 0 (TMCC00)
The TMCC00 register controls the operation of TMC0.
This register can be read/written in 8-bit or 1-bit units.
Caution:
The CAE bit and CE bit cannot be set at the same time. Be sure to set the CAE bit
prior to setting the CE bit. To use an external pin related to the timer function when
using Timer C, be sure to set the CAE bit to "1" after setting the external pin to the
control mode.
Figure 10-5:
Timer C control Register 0 (TMCC00) (1/2)
7
6
5
4
3
2
1
0
Address
Initial
value
TMCC00
OVF
CS2
CS1
CS0
0
0
CE
CAE
FFFF F606H
00H
Bit Position
Bit Name
Function
7
OVF
Flag that indicates TMC0 overflow.
0: No overflow
1: Overflow
The OVF bit becomes “1” when TMC0 changes from FFFFH to 0000H. An overflow
interrupt request (INTTMC0) is generated at the same time. However, if CCC00 is
set to the compare mode (CMS0 bit of the TMCC01 register = 1) and match clear
during comparison of TMC0 and CCC00 is enabled (CCLR bit of TMCC01 register
= 1), and TMC0 is cleared to 0000H following match at FFFFH, TMC0 is considered
to have been cleared and the OVF bit does not become "1", nor is the INTTMC0
interrupt generated.
The OVF bit holds a “1” until “0” is written to it or an asynchronous reset is applied
while the CAE bit = 0. Interrupts by overflow and the OVF bit are independent, and
even if the OVF bit is manipulated, this does not affect the interrupt request flag for
INTTMC0 (TMCIF0 register). If an overflow occurs while the OVF bit is being read,
the value of the flag changes and the value is returned at the next read.
Summary of Contents for mPD703128
Page 6: ...6 Preliminary User s Manual U15839EE1V0UM00 ...
Page 20: ...20 Preliminary User s Manual U15839EE1V0UM00 ...
Page 32: ...32 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 154: ...154 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 238: ...238 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 356: ...356 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 522: ...522 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 600: ...600 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 610: ...610 Preliminary User s Manual U15839EE1V0UM00 ...
Page 612: ......