125
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 0
Preliminary User’s Manual U16035EJ1V0UM
Figure 6-22. External Event Counter Configuration Diagram
16-bit timer capture/compare
register 00 (CR00)
Internal bus
Match
Clear
OVF0
INTTM00
f
X
/2
2
f
X
/2
6
f
X
Noise eliminator
f
X
/2
3
Valid edge of TI00
16-bit timer counter 0 (TM0)
16-bit timer capture/compare
register 01 (CR01)
Selector
Noise eliminator
Figure 6-23. External Event Counter Operation Timings (with Rising Edge Specified)
TI00 pin input
TM0 count value
CR00
INTTM00
0000H 0001H 0002H 0003H 0004H 0005H
N–1
N
0000H 0001H 0002H 0003H
N
Caution
When reading the external event counter count value, TM0 should be read.
6.4.5 Square-wave output operation
A square wave with any selected frequency to be output at intervals of the count value preset to the 16-bit timer
capture/compare register 00 (CR00) operates.
The TO0 pin output status is reversed at intervals of the count value preset to CR00 by setting bit 0 (TOE0) and
bit 1 (TOC01) of the 16-bit timer output control register 0 (TOC0) to 1. This enables a square wave with any selected
frequency to be output.