149
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U15798EJ2V0UD
Figure 6-24. 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-25. External Event Counter Operation Timing (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.5.5 Square-wave output operation
A square wave with any selected frequency can be output at intervals of the count value preset to 16-bit timer
capture/compare register 00 (CR00).
The TO00 pin output status is reversed at intervals of the count value preset to CR00 by setting bit 0 (TOE0) and
bit 1 (TOC01) of 16-bit timer output control register 0 (TOC0) to 1. This enables a square wave with any selected
frequency to be output.
Содержание mPD780344 Series
Страница 2: ...2 User s Manual U15798EJ2V0UD MEMO...