CHAPTER 7 TIMER/COUNTER FUNCTION
User’s Manual U13850EJ6V0UD
231
(4) Data hold timing of capture register
If the valid edge is input to the TIn0 pin while 16-bit capture/compare register n1 (CRn1) is being read, CRn1
performs the capture operation, but this read value is not guaranteed. However, the interrupt request signal
(INTTMn1) is set as a result of detection of the valid edge.
Figure 7-29. Data Hold Timing of Capture Register
TMn count value
Count pulse
N + 1
N
N + 2
M + 2
M + 1
M
X
N+1
A capture operation is performed
but the read value is not guaranteed.
Edge input
INTTMn1
Capture read signal
CRn1 interrupt value
Capture operation
Remark
n = 0, 1
(5) Setting valid edge
Before setting the valid edge of the TIn0 pin, stop the timer operation by resetting the TMCn2 and TMCn3 bits of
16-bit timer mode control register n to 0, 0. Set the valid edge by using the ESn00 and ESn01 bits of prescaler
mode register n0 (PRMn0).
(6) Re-triggering one-shot pulse
(a) One-shot pulse output by software
When a one-shot pulse is being output, do not set OSPTn to 1. Do not output the one-shot pulse again until
the current one-shot pulse output ends.
(b) One-shot pulse output with external trigger
If an external trigger occurs while a one-shot pulse is being output, the 16-bit timer/event counter is cleared
and started and a one-shot pulse is output again.
(c) One-shot pulse output function
When using the one-shot pulse output function of timer 0 or 1 by software trigger, do not change the level of
the TIn0 pin or the pin multiplexed with it.
Even in this case, the external trigger remains valid. Consequently, the timer is cleared and started by the
level of the TIn0 pin or the pin multiplexed with it, and a pulse is output when it is not expected.
Содержание V850/SB1
Страница 2: ...User s Manual U13850EJ6V0UD 2 MEMO ...