CHAPTER 7 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U16896EJ2V0UD
231
7.3 Registers
Registers used to control 16-bit timer/event counter 01 are shown below.
•
16-bit timer mode control register 01 (TMC01)
•
Capture/compare
control register 01 (CRC01)
•
16-bit timer output control register 01 (TOC01)
•
Prescaler mode register 01 (PRM01)
•
Selector operation control register 1 (SELCNT1)
Remark
To use the TI010, TI011, and TO01 pin functions, refer to
Table 4-12 Settings When Port Pins Are
Used for Alternate Functions
.
(1) 16-bit timer mode control register 01 (TMC01)
TMC01 is an 8-bit register that sets the 16-bit timer/event counter 01 operation mode, the TM01 register clear
mode, and output timing, and detects an overflow.
Rewriting TMC01 is prohibited during operation (when the TMC013 and TMC012 bits = other than 00). However,
it can be changed when the TMC013 and TMC012 bits are cleared to 00 (stopping operation) and when the
OVF01 bit is cleared to 0.
This register can be read or written in 8-bit or 1-bit units.
Reset sets this register to 00H.
Cautions 1.
16-bit timer/event counter 01 starts operation at the moment TMC012 and TMC013 are set to
values other than 00 (operation stop mode), respectively. Set TMC012 and TMC013 to 00 to
stop the operation.
2. Accessing the TMC01 register is prohibited in the following statuses. For details, refer to
3.4.8 (1) (b) Access to special on-chip peripheral I/O register.
•
When the CPU operates on the subclock and the main clock oscillation is stopped
•
When the CPU operates on the internal oscillation clock
3. Be sure to clear bits 7 to 4 to “0”.