84
CHAPTER 6 8-BIT TIMER/EVENT COUNTERS 5 AND 6
(1) Compare registers 50 and 60 (CR50, CR60)
These are 8-bit registers to compare the value set to CR50 to the 8-bit timer register 5 (TM5) count value,
and the value set to CR60 to the 8-bit timer register 6 (TM6) count value, and, if they match, generate an
interrupt request (INTTM5 and INTTM6, respectively).
CR50 and CR60 are set with an 8-bit memory manipulation instruction. They cannot be set with a 16-bit
memory manipulation instruction. The 00H to FFH values can be set.
RESET input sets CR50 and CR60 to 00H.
Caution When using the PWM mode, please set the CRn0 value before setting TMCn (n=5, 6) to the
PWM mode.
(2) 8-bit timer registers 5 and 6 (TM5, TM6)
These are 8-bit registers to count count pulses.
TM5 and TM6 are read with an 8-bit memory manipulation instruction.
RESET input sets TM5 and TM6 to 00H.
6.3 8-Bit Timer/Event Counters 5 and 6 Control Registers
The following three types of registers are used to control the 8-bit timer/event counter 5 and 6.
Timer clock select register 5 and 6 (TCL5, TCL6)
8-bit timer mode control register 5 and 6 (TMC5, TMC6)
Port mode register 10 (PM10)
(1) Timer clock select register 5 (TCL5)
This register sets count clocks of 8-bit timer register 5.
TCL5 is set with an 8-bit memory manipulation instruction.
RESET input sets TCL5 to 00H.