
R01UH0336EJ0102 Rev.1.02
Page 502 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 13 Timer Array Unit B (TAUB)
(5)Operating procedure for clock divide function
Table 13-62
Operating Procedure for Clock Divide Function
Operation
Status of TAUBn
Ini
ti
a
l chan
nel setti
n
g
Set the TAUBnCMORm register and
TAUBnCMURm registers as described in
Table 13-58, TAUBnCMORm Settings for
Clock Divide Function and Table 13-59,
TAUBnCMURm Settings for Clock Divide
Function.
Set the value of the TAUBnCDRm
register.
Set the channel output mode by setting
the control bits as described in Table 13-
60, Control Bit Settings for Independent
Channel Output Mode 1.
Channel operation is stopped.
S
tart opera
ti
o
n
Set TAUBnTS.TAUBnTSm to 1.
TAUBnTS.TAUBnTSm is a trigger bit,
so it is automatically cleared to 0.
TAUBnTE.TAUBnTEm is set to 1 and the counter starts.
TAUBnCNTm loads TAUBnCDRm value.
If TAUBnCMORm.TAUBnMD0 is set to 1,
INTTAUBnIm occurs and TAUBnTTOUTm is toggled.
Du
ri
ng ope
ration
The value of TAUBnCDRm can be
changed at any time.
The TAUBnCNTm register can be
read at all times.
When a TAUBnTTINm input edge is detected,
TAUBnCNTm counts down. When the counter reaches
0000
H
:
•
AUBnCDRm value is loaded into TAUBnCNTm and
count operation continues.
•
INTTAUBnIm is generated.
•
TAUBnTTOUTm is toggled.
Afterwards, this procedure is repeated.
S
top op
eration
Set TAUBnTT.TAUBnTTm to 1.
TAUBnTT.TAUBnTTm is a trigger bit,
so it is automatically cleared to 0.
TAUBnTE.TAUBnTEm is cleared to 0 and the counter
stops.
TAUBnCNTm stops and TAUBnCNTm and
TAUBnTTOUTm retain their current values.
Rest
ar
t
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...