
R01UH0336EJ0102 Rev.1.02
Page 678 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 14 Timer Array Unit J (TAUJ)
(5)
Operating procedure for TAUJnTTINm Input Period Count Detection
Function
Table 14-32
Simultaneous Rewrite Settings for TAUJnTTINm Input Period Count
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-33
Operating Procedure for TAUJnTTINm Input Period Count Detection
Function
Operation
TAUJn Status
In
itial chan
nel
setting
Set the TAUJnCMORm and
TAUJnCMURm registers as described in
Table 14-30, TAUJnCMORm Settings for
TAUJnTTINm Input Period Count
Detection Function, and Table 14-31,
TAUJnCMURm Settings for TAUJnTTINm
Input Period Count Detection Function.
The TAUJnCDRm register functions 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.
Detection of TAUJnTTINm start edge.
TAUJnTE.TAUJnTEm is set to 1 and TAUJnCNTm
awaits TAUJnTTINm start edge detection.
When TAUJnTTINm start edge is detected, TAUJnCNTm
is cleared to 0000 0000
H
and starts to count up.
Du
ring op
eration
Detection of TAUJnTTINm edge.
TAUJnCDRm, TAUJnCNTm, and
TAUJnCSRm registers are readable at
any time.
When a TAUJnTTINm start edge (rising edge for high
width measurement, falling edge for low width
measurement) is detected, TAUJnCNTm starts counting
up from the stop value.
When TAUJnCNTm detects a stop edge (falling edge for
high width measurement, rising edge for low width
measurement), it transfers its value to TAUJnCDRm and
INTTAUJnIm is generated.
Counting stops at the "value transferred to TAUJnCDRm
+ 1" value and TAUJnCNTm waits for detection of the
TAUJnTTINm start edge.
When TAUJnCNTm reaches FFFF FFFF
H
, the counter
restarts to count from 0000 0000H.
Afterwards, this procedure is repeated.
S
to
p
opera
ti
o
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
art
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...