CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
User’s Manual U18172EJ2V0UD
86
Cautions 6. Changing the CR010 setting during TM00 operation may cause a malfunction. To change
the setting, refer to 6.5 Cautions Related to 16-Bit Timer/Event Counter 00 (17) Changing
compare register during timer operation.
6.3 Registers to Control 16-Bit Timer/Event Counter 00
The following seven types of registers are used to control 16-bit timer/event counter 00.
•
16-bit timer mode control register 00 (TMC00)
•
Capture/compare control register 00 (CRC00)
•
16-bit timer output control register 00 (TOC00)
•
Prescaler mode register 00 (PRM00)
•
Port mode register 2 (PM2)
•
Port register 2 (P2)
•
Port mode control register 2 (PMC2)
(1) 16-bit timer mode control register 00 (TMC00)
This register sets the 16-bit timer operating mode, the 16-bit timer counter 00 (TM00) clear mode, and output
timing, and detects an overflow.
TMC00 is set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets the value of TMC00 to 00H.
Caution 16-bit timer counter 00 (TM00) starts operation at the moment TMC002 and TMC003
(operation stop mode) are set to a value other than 0, 0, respectively. Set TMC002 and
TMC003 to 0, 0 to stop the operation.