English
Language : 

SH7055S Datasheet, PDF (366/1002 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7000 Series
Down-Counters 8A to 8P (DCNT8A to DCNT8P): Down-counters 8A to 8P (DCNT8A to
DCNT8P) are 16-bit readable/writable registers that count on an input clock. The input clock is
selected with prescaler register 1 (PSCR1) and the timer control register (TCR).
Bit: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Bit name:
Initial value: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
R/W: R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W
When the one-shot pulse function is used, DCNT8x starts counting down when the corresponding
DSTR bit is set to 1 by the user program after the DCNT8x value has been set. When the DCNT8x
value underflows, DSTR and DCNT8x are automatically cleared to 0, and the count is stopped. At
the same time, the corresponding channel 8 timer status register 8 (TSR8) status flag is set to 1.
When the offset one-shot pulse function is used, on compare-match with a channel 1 or 2 general
register (GR) or output compare register (OCR) (the compare-match setting being made in the
trigger mode register (TRGMDR) (for channel 1 only) ) when the corresponding timer connection
register (TCNR) bit is 1, the corresponding down-count start register (DSTR) bit is automatically
set to 1 and the down-count is started. When the DCNT8x value underflows, the corresponding
DSTR bit and DCNT8x are automatically cleared to 0, the count is stopped, and the output is
inverted, or, if a one-shot terminate register (OTR) setting has been made to forcibly terminate
output by means of a trigger, DSTR is cleared to 0 by a channel 1 or 2 compare-match between
GR and OCR, the count is forcibly terminated, and the output is inverted. The output is inverted
for whichever is first. When the output is inverted, the corresponding channel 8 TSR8 status flag
is set to 1.
The DCNT8x counters can only be accessed by a word read or write.
The DCNT8x counters are initialized to H'0000 by a power-on reset, and in hardware standby
mode and software standby mode.
For details, see sections 11.3.5, One-Shot Pulse Function, and 11.3.6, Offset One-Shot Pulse
Function and Output Cutoff Function.
Rev.2.0, 07/03, page 328 of 960