
R01UH0336EJ0102 Rev.1.02
Page 947 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 17 OS Timer (OSTM)
The above timing diagram shows the following operations.
1. The counter starts counting when OSTMnTS.OSTMnTS = 1 or
OSTMnTSST is high (if a synchronous start trigger is in use). The counter
starts counting-down from the value of OSTMnCMP.
If OSTMnCTL.OSTMnMD0 is 1, OSTMnTINT interrupt requests are
generated at the start of counting and the OSTMnTTOUT output is
toggled. The OSTMnCNT register contains the current value as the
counter.
2. When the counter reaches 0000 0000
H
, an OSTMnTINT interrupt request
is generated and the OSTMnTTOUT output is toggled. The counter loads
the new initial value from OSTMnCMP and continues counting down.
3. When the counter is stopped (OSTMnTT.OSTMnTT = 1), the
OSTMnTE.OSTMnTE bit is cleared to indicate disabling of the counter.
The counter retains its current value until it is restarted.
4. When counting is restarted (OSTMnTS.OSTMnTS = 1, or OSTMnTSST is
high if the synchronous start trigger is in use), the counter loads the new
initial value from OSTMnCMP and continues counting down.
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...