English
Language : 

SH7058 Datasheet, PDF (404/1130 Pages) Renesas Technology Corp – Renesas SuperHTM RISC engine
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.
Rev. 3.0, 09/04, page 363 of 1086