English
Language : 

SH7052 Datasheet, PDF (419/919 Pages) Renesas Technology Corp – SuperHTM RISC engine
Halting of a Down-Counter by the CPU: A down-counter (DCNT) can be halted by writing
H'0000 to it. The CPU cannot write 0 directly to the down-count start register (DSTR); instead, by
setting DCNT to H'0000, the corresponding DSTR bit is cleared to 0 and the count is stopped.
However, the OSF bit in the timer status register (TSR) is set when DCNT underflows.
Note that when H'0000 is written to DCNT, the corresponding DSTR bit is not cleared to 0
immediately; it is cleared to 0, and the down-counter is stopped, when underflow occurs following
the H'0000 write.
The timing in this case is shown in figure 10.70.
Pø
DCNT input clock
DCNT
Internal write signal
N
H'0000
written
to DCNT
H'0000
H'0000
DSTR
TSR
Port output
(one-shot pulse)
Figure 10.70 Halting of a Down-Counter by the CPU
393