English
Language : 

SH7059 Datasheet, PDF (372/1042 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
11. Advanced Timer Unit-II (ATU-II)
value (when DTR ≠ CYLR). When the TCNT value matches the CYLR value (when DTR ≠ H'0000), 1 is output to the
external output pin, TCNT is initialized to H'0001, and the BFR value is transferred to DTR. Thus, the configuration of
channels 6 and 7 enables them to perform waveform output with the CYLR value as the cycle and the DTR value as the
duty, and to use BFR to absorb the time lag between setting of data in DTR and compare-match occurrence.
When DTR = CYLR, 1 is output continuously to the external output pin, giving a duty of 100%. When DTR = H'0000, 0
is output continuously to the external output pin, giving a duty of 0%. Do not set a value in DTR that will result in the
condition DTR > CYLR. To set H'0000 to DTR, not write H'0000 directly to DTR but set H'0000 to BFR and then transfer
the value to DTR. Writing H'0000 directly to DTR may not give a duty of 0%.
In channel 6, TCNT can also be designated for complementary PWM output by means of the PWM mode register
(PMDR). When the corresponding TSTR is set to 1, TCNT starts counting up, then switches to a down-count when the
count matches the CYLR value. When TCNT reaches H'0000, it starts counting up again. When TCNT = DTR, the
corresponding TO6A to TO6D output changes. Whether TCNT is counting up or down can be ascertained from the timer
status register (TSR6).
DMAC activation and interrupt request generation, respectively, are possible when TCNT = CYLR in asynchronous PWM
mode, and when TCNT = H'0000 in complementary PWM mode.
Channel 8: Channel 8 has sixteen 16-bit down-counters (DCNT8A to DCNT8P). The down-counters have corresponding
external signal output pins, and can generate one-shot pulses. Setting a value in DCNT and setting the corresponding bit to
1 in the down-count start register (DSTR) starts DCNT operation and simultaneously outputs 1 to the external output pin.
When DCNT counts down to H'0000, it stops and outputs 0 to the external output pin. An interrupt can be requested when
DCNT underflows.
Down-counter operation can be coupled with the channel 1 or channel 2 output compare function by means of settings in
the timer connection register (TCNR) and one-shot pulse terminate register (OTR), respectively, so that DCNT8I to
DCNT8H count operations are started and stopped from channel 1, and DCNT8I to DCNT8P count operations from
channel 2.
DCNT8I to DCNT8P have a reload register (RLDR), and a setting in the reload enable register (RLDEN) enables count
operations to be started after reading the value from this register.
Channel 9: Channel 9 has six 8-bit event counters (ECNT9A to ECNT9F) and six 8-bit general registers (GR9A to
GR9F). The event counters are up-counters, each with a corresponding external input pin (ECNT9A to ECNT9F). The
event counter value is incremented by input from the corresponding external input pin. Incrementing on the rising edge,
falling edge, or both edges can be selected by means of settings in the timer control registers (TCR9A to TCR9C). An
event counter is cleared by edge input after a match with the corresponding general register. An interrupt can requested
when an event counter is cleared.
Timer control register (TCR9A, TCR9B) settings can be made to enable event counters ECNT9A to ECNT9D to send a
compare-match signal to channel 3 when the count matches the corresponding general register (GR9A to GR9D), allowing
input capture to be performed on channel 3. This enables the pulse input interval to be measured.
Channel 10: Channel 10 generates a multiplied clock based on external input, and supplies this to channels 1 to 5.
Channel 10 is divided into three blocks: (1) an inter-edge measurement block, (2) a multiplied clock generation block, and
(3) a multiplied clock correction block.
(1) Inter-edge measurement block
This block has a 32-bit free-running counter (TCNT10A), 32-bit input capture register (ICR10A), 32-bit output
compare register (OCR10A), 8-bit event counter (TCNT10B), 8-bit output compare register (OCR10B), 8-bit noise
canceler counter (TCNT10H), and 8-bit noise canceler compare-match register (NCR10).
Rev.3.00 Mar. 12, 2008 Page 282 of 948
REJ09B0177-0300