CHAPTER 7 TIMER/COUNTER FUNCTION
User’s Manual U13850EJ4V0UM
198
Figure 7-24. Configuration of External Event Counter
Internal bus
16-bit capture/compare
register n (CRn0)
16-bit timer/counter n (TMn)
OVFn
Count clock
Note
Selector
INTTMn0
16-bit capture/compare
register n1 (CRn1)
Noise eliminator
Valid edge of TIn0
f
XX
/2
Match
Clear
Note
The count clock is set by the PRMn0 and PRMn1 registers.
Remarks 1.
“
”
indicates a signal that can be directly connected to ports.
2.
n = 0, 1
Figure 7-25. Timing of External Event Counter Operation (with Rising Edge Specified)
TIn0 pin input
TMn count value
CRn0
INTTMn0
0001H
0000H
N
−
1
N
N
0003H
0002H
0005H
0004H
0001H
0000H
0003H
0002H
Caution Read TMn when reading the count value of the external event counter.
Remark
n = 0, 1
7.2.5 Operation to output square wave
TMn can be used to output a square wave with any frequency at an interval specified by the count value set in
advance to 16-bit capture/compare register n0 (CRn0).
By setting bits 0 (TOEn) and 1 (TOCn1) of 16-bit timer output control register n (TOCn) to 1, the output status of
the TOn pin is reversed at an interval specified by the count value set in advance to CRn1. In this way, a square
wave of any frequency can be output.
Содержание MPD703030A
Страница 2: ...User s Manual U13850EJ4V0UM 2 MEMO ...
Страница 514: ...User s Manual U13850EJ4V0UM 514 MEMO ...