
R01UH0336EJ0102 Rev.1.02
Page 444 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 13 Timer Array Unit B (TAUB)
(5)
Operating procedure for TAUBnTTINm input interval timer function
Table 13-21
Operating Procedure for TAUBnTTINm Input Interval Timer Function
Operation
TAUBn Status
In
itial Cha
nne
l
Se
tting
Set TAUBnCMORm and TAUBnCMURm registers
as described in Table 13-17, TAUBnCMORm
Settings for TAUBnTTINm Input Interval Timer
Function
Settings for TAUBnTTINm Input Interval Timer
Function.
Set the value of TAUBnCDRm register.
Set channel output mode by setting the control bits
as described in Table 13-19, Control Bit Settings in
Independent Channel Output Mode 1.
Channel operation is stopped.
S
tart Ope
ration
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.
The TAUBnCDRm value is loaded in
TAUBnCNTm.
When TAUBnCMORm.TAUBnMD0 = 1,
INTTAUBnIm is generated and TAUBnTTOUTm
toggles.
D
u
ri
ng
O
p
era
ti
o
n
The values of the TAUBnCMURm.TAUBnTIS[1:0]
bits and the TAUBnCDRm register are changeable
at any time.
The TAUBnCNTm register are readable at any
time.
Detection of TAUBnTTINm edge
TAUBnCNTm counts down. When the counter
reaches 0000
H
.
•
The TAUBnCDRm value is loaded in
TAUBnCNTm again and count operation
continues.
•
INTTAUBnIm is generated and
TAUBnTTOUTm toggles.
When a TAUBnTTINm input valid edge is
detected during count operation, the
TAUBnCDRm value is loaded in TAUBnCNTm
and count operation continues. 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 and TAUBnTTOUTm stop and
retain their current values.
Re
st
art
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...