
R01UH0336EJ0102 Rev.1.02
Page 683 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 14 Timer Array Unit J (TAUJ)
(5)
Operating procedure for TAUJnTTINm Input Position Detection Function
Table 14-36
Simultaneous Rewrite Settings for TAUJnTTINm Input Position Detection
Function
Bit Name
Setting
TAUJnRDE.TAUJnRDEm
0:Disables simultaneous rewrite
TAUJnRDM.TAUJnRDMm
0: When disabling simultaneous rewrite
(TAUJnRDE.TAUJnRDEm = 0), set these bits to 0
Table 14-37
Operating Procedure for TAUJnTTINm Input Position Detection Function
Operation
TAUJn Status
In
itial chan
nel
setting
Set the TAUJnCMORm and TAUJnCMURm
registers as described in Table 14-34,
TAUJnCMORm Settings for TAUJnTTINm
Input Position Detection Function, and Table
14-35, TAUJnCMURm Settings for
TAUJnTTINm Input Position Detection
Function.
TAUJnCDRm register operates as a capture
register.
Channel operation is stopped.
S
tart opera
tio
n
Set TAUJnTS.TAUJnTSm to 1.
TAUJnTS.TAUJnTSm is a trigger bit, which
is automatically cleared to 0.
TAUJnTE.TAUJnTEm is set to 1 and the counter
is started.
When TAUJnCMORm.TAUJnMD0 is set to 1,
INTTAUJnlm is generated.
Durin
g
opera
tio
n
The TAUJnCMURm.TAUJnTIS[1:0] bits are
changeable at any time.
The TAUJnCDRm and TAUJnCSRm registers
are readable at any time.
TAUJnCNTm starts to count up from 0000 0000
H
.
When a valid TAUJnTTINm edge is detected:
•
TAUJnCNTm transfers (captures) its value to
TAUJnCDRm.
•
INTTAUJnlm is generated.
•
The counter value is not cleared to 0000
0000
H
and TAUJnCNTm continues to count.
Afterwards, this procedure is repeated.
S
top
o
peratio
n
Set TAUJnTT.TAUJnTTm to 1.
TAUJnTT.TAUJnTTm is a trigger bit, which
is automatically cleared to 0.
TAUJnTE.TAUJnTEm is cleared to 0 and the
counter stops.
TAUJnCNTm stops. TAUJnCNTm remains
its current value.
Rest
ar
t