165
Chapter 7 Timer/Counter Units
7
(3) Capture/compare control register 2 (CRC2)The CRC2 register is used to specify the condition for enabling the clear operation of 8-bit timer 2 (TM2) withthe CR21 compare register or CR22 capture register, and also specify a timer output (TO2, TO3) mode.The CRC2 register allows only write operation using an 8-bit manipulation instruction. Fig. 7-69 shows theformat of the CRC2 register.When the RESET signal is applied, the CRC2 register is cleared to 10H.Fig. 7-69 Format of Capture/Compare Control Register 2 (CRC2)
76543210
MOD1
0
1CLR21 00
CRC2
Toggle output Toggle output
Toggle output
Toggle output
Toggle output
Timer output mode
Clearing TM2
PWM output
PPG output
Does not clear
Clears when the TM2 register coincides
with the CR21 register
Clears when the TM2 register coincides
with the CR21 register or after contents
of TM2 is caped to the CR22 register
TO2 TO3
MOD1 MOD0 CLR22 CLR21
Clears after contents of TM2 is captured
to the CR22 register
Toggle output
Toggle output Toggle output
PWM output
Toggle output
PWM output
Toggle output Does not clear
Does not clear
Clears when the TM2 register coincides
with the CR21 register
MOD0 CLR22 0
000
0001
0010
0011
0100
1000
1101
Caution Combinations other than those indicated above are prohibited.