beautypg.com

Chapter 7 timer/counter units – NEC PD78214 User Manual

Page 194

background image

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) with
the 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 the
format 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)

7

6

5

4

3

2

1

0

MOD1

0

1

CLR21

0

0

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

0

0

0

0

0

0

1

0

0

1

0

0

0

1

1

0

1

0

0

1

0

0

0

1

1

0

1

Caution Combinations other than those indicated above are prohibited.

This manual is related to the following products: