
R01UH0336EJ0102 Rev.1.02
Page 656 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 14 Timer Array Unit J (TAUJ)
(5)
Operating procedure for TAUJnTTINm Input Interval Timer Function
Table 14-19
Operating Procedure for TAUJnTTINm Input Interval Timer Function
Operation
TAUJn Status
In
itial cha
nnel
se
tting
Set the TAUJnCMORm and TAUJnCMURm
registers as described in Table 14-15,
TAUJnCMORm Settings for TAUJnTTINm Input
Interval Timer Function, and Table 14-16,
TAUJnCMURm Settings for TAUJnTTINm Input
Interval Timer Function.
Set the value of the TAUJnCDRm register.
Set the channel output mode by setting the control
bits as described in Table 14-17, Control Bit
Settings for Independent Channel Output Mode 1.
Channel operation is stopped.
S
ta
rt op
eration
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
starts.
TAUJnCDRm value is loaded in TAUJnCNTm.
When TAUJnCMORm.TAUJnMD0 = 1,
INTTAUJnIm is generated and
TAUJnTTOUTm toggles.
D
u
ring
o
peration
The values of the TAUJnCMURm.TAUJnTIS[1:0]
and the TAUJnCDRm register can be changed at
any time.
The TAUJnCNTm register can be read at all times.
Detection of TAUJnTTINm edge.
TAUJnCNTm counts down. When the counter
reaches 0000 0000
H
:
•
TAUJnCNTm reloads the TAUJnCDRm value
and continues count operation
•
INTTAUJnIm is generated and
TAUJnTTOUTm toggles
When a valid TAUJnTTINm input edge is
detected during count operation, TAUJnCNTm
reloads the TAUJnCDRm value and continues
count operation.
Afterwards, this procedure is repeated.
S
top ope
ra
ti
on
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 and TAUJnTTOUTm stop and
retain their current values.
Rest
art
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...