
R01UH0336EJ0102 Rev.1.02
Page 457 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 13 Timer Array Unit B (TAUB)
(5)
Operating procedure for TAUBnTTINm input pulse interval measurement
function
Table 13-31
Operating Procedure for TAUBnTTINm Input Pulse Interval Measurement
Function
Operation
TAUBn Status
Ini
tia
l Chan
nel Setting
Set TAUBnCMORm and TAUBnCMURm
registers as described in Table 13-28,
TAUBnCMORm Settings for
TAUBnTTINm Input Pulse Interval
Measurement Function
,
and Table 13-29,
TAUBnCMURm Settings for
TAUBnTTINm Input Pulse Interval
Measurement Function
.
TAUBnCDRm register operates as a
capture register.
Channel operation is stopped.
S
tart Opera
tio
n
Set TAUBnTS.TAUBnTSm to 1.
TAUBnTS.TAUBnTSm is a trigger bit,
which is automatically cleared to 0.
TAUBnTE.TAUBnTEm is set to 1 and the counter starts.
TAUBnCNTm is cleared to 0000
H
. INTTAUBnIm is
generated when TAUBnCMORm.MD0 is set to 1.
D
u
ri
ng
O
p
era
ti
o
n
Detection of TAUBnTTINm edges
The TAUBnCMURm.TAUBnTIS[1:0] bits
can be changed at any time.
The TAUBnCDRm and TAUBnCSRm
registers can be read at any time.
TAUBnCSCm.TAUBnCLOV can be
written to 1. (TAUBnCSRm.TAUBnOVF
bit is cleared to 0.)
TAUBnCNTm starts to count up from 0000
H
. When a
TAUBnTTINm valid edge is detected:
•
TAUBnCNTm transfers (captures) its value to
TAUBnCDRm, and returns to 0000
H
.
•
INTTAUBnIm is then generated.
Afterwards, this procedure is repeated.
S
top Op
eration
Set TAUBnTT.TAUBnTTm to 1.
TAUBnTT.TAUBnTTm is a trigger bit,
which is automatically cleared to 0.
TAUBnTE.TAUBnTEm is cleared to 0 and the counter
stops.
TAUBnCNTm stops and both it and
TAUBnCSRm.TAUBnOVF retain their current values.
Rest
art
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...