CHAPTER 7 TIMER/COUNTER FUNCTION
User’s Manual U13850EJ6V0UD
223
Figure 7-19. 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 a port.
2.
n = 0, 1
Figure 7-20. 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 the interval specified by the count value set in
advance to 16-bit capture/compare register n0 (CRn0).
By setting the TOEn and TOCn1 bits of 16-bit timer output control register n (TOCn) to 1, the output status of the
TOn pin is reversed at the interval specified by the count value set in advance to CRn1. In this way, a square wave
of any frequency can be output.
Содержание V850/SB1
Страница 2: ...User s Manual U13850EJ6V0UD 2 MEMO ...