
R01UH0336EJ0102 Rev.1.02
Page 645 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 14 Timer Array Unit J (TAUJ)
14.12 Independent Channel Operation Functions
The following sections list the independent channel operation functions
provided by the timer array unit J. For a general overview of independent
channel operation, see Section 14.3, Functional Description.
14.12.1
Interval Timer Function
(1)
Overview
Summary
This function is used as a reference timer for generating timer interrupts
(INTTAUJnIm) at regular intervals. When an interrupt is generated, the
TAUJnTTOUTm signal toggles, resulting in a rectangular wave.
Prerequisites
• The operating mode should be set to interval timer mode. (See Table 14-10,
TAUJnCMORm Settings for Interval Timer Function.)
• The channel output mode should be set to independent channel output
mode 1. (See Section 14.8, Channel Output Modes.)
Functional
description
The counter is started by setting the channel trigger bit (TAUJnTS.TAUJnTSm)
to 1. This in turn sets TAUJnTE.TAUJnTEm = 1, enabling count operation. The
current value of TAUJnCDRm is loaded into TAUJnCNTm and the counter
starts to count down from this value.
When the counter reaches 0000 0000
H
, INTTAUJnIm is generated and the
TAUJnTTOUTm signal toggles. Then the TAUJnCDRm value is loaded in
TAUJnCNTm and the counter subsequently continues operation.
The value of TAUJnCDRm can be rewritten at any time, and the changed
value of TAUJnCDRm is applied the next time the counter starts to count
down.
The counter can be stopped by setting TAUJnTT.TAUJnTTm to 1, which in turn
sets TAUJnTE.TAUJnTEm to 0. TAUJnCNTm and TAUJnTTOUTm stop but
retain their values. The counter can be restarted by setting
TAUJnTS.TAUJnTSm to 1. The counter can also be forcibly restarted without
making a stop once by setting TAUJnTS.TAUJnTSm to 1 during operation.
Conditions
If the TAUJnCMORm.TAUJnMD0 bit is set to 0, the first interrupt after a start or
restart is not generated, and therefore TAUJnTTOUTm does not toggle. This
results in an inverted TAUJnTTOUTm signal compared to when
TAUJnCMORm.TAUJnMD0 is set to 1. For details, see Section 14.10,
TAUJnTTOUTm Output and INTTAUJnIm Generation When Counter Starts or
Restarts.
(2)
Equations
INTTAUJnIm cycle = Count clock cycle x (TAU 1)
TAUJnTTOUTm rectangular wave cycle = Count clock cycle x (TAU
1) × 2