
CHAPTER 7 TIMER/COUNTER FUNCTION
169
Figure 7-22. Configuration of External Event Counter
Note
Set by the PRMn register.
Remarks 1.
“ ” indicates the signals that can be directly connected to ports.
2.
n = 0, 1
Figure 7-23. Timing of External Event Counter Operation (with rising edge specified)
TIn0 pin input
TMn count value
CRn0
INTTMn0
N
0003H
0002H
0001H
0000H
N
N
−
1
0005H
0004H
0003H
0002H
0001H
0000H
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
Timer 0 can be used to output a square wave with any frequency at an interval specified by the count value set in
advance to the 16-bit capture/compare register n0 (CRn0).
By setting bits 0 (TOEn) and 1 (TOCn1) of the 16-bit timer output control register n (TOCn) to 1, the output status
of the TOn0 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.
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 n (CRn1)
Noise rejection
Valid edge of TIn0
f
xx
Coincidence
Clear
Содержание V850/SA1 mPD703015
Страница 2: ...2 MEMO ...
Страница 100: ...100 MEMO ...
Страница 144: ...144 MEMO ...
Страница 200: ...200 MEMO ...
Страница 328: ...328 MEMO ...
Страница 356: ...356 MEMO ...
Страница 358: ...358 MEMO ...
Страница 368: ...368 MEMO ...
Страница 374: ...374 MEMO ...
Страница 382: ...382 MEMO ...