CHAPTER 7 TIMER/COUNTER FUNCTION
176
(2) Setting compare register during timer count operation
If the value to which the current value of the 16-bit capture/compare register n0 (CRn0) has been changed is less
than the value of the 16-bit timer register n (TMn), TMn continues counting, overflows, and starts counting again
from 0. If the new value of CRn0 (M) is less than the old value (N), the timer must be restarted after the value of
CRn0 has been changed.
Figure 7-31. Timing after Changing Compare Register during Timer Count Operation
TMn count value
Count pulse
0002H
0001H
0000H
FFFFH
X
X
−
1
N
CRn0
M
Remarks 1.
N > X > M
2.
n = 0, 1
(3) Data hold timing of capture register
If the valid edge is input to the TIn0 pin while the 16-bit capture/compare register n1 (CRn1) is read, CRn1
performs the capture operation, but this capture value is not guaranteed. However, the interrupt request flag
(INTTMn1) is set as a result of detection of the valid edge.
Figure 7-32. Data Hold Timing of Capture Register
M + 2
M + 1
M
N + 2
N + 1
N
N + 1
X
TMn count value
Count pulse
Capture operation
Edge input
Interrupt request flag
Capture read signal
CRn1 interrupt value
Remark
n = 0, 1
Содержание V850/SA1 mPD703015
Страница 2: ...2 MEMO ...
Страница 100: ...100 MEMO ...
Страница 144: ...144 MEMO ...
Страница 200: ...200 MEMO ...
Страница 328: ...328 MEMO ...
Страница 356: ...356 MEMO ...
Страница 358: ...358 MEMO ...
Страница 368: ...368 MEMO ...
Страница 374: ...374 MEMO ...
Страница 382: ...382 MEMO ...