CHAPTER 7 TIMER/COUNTER FUNCTION
User’s Manual U13850EJ6V0UD
206
After reset: 00H R/W
Address: FFFFF208H, FFFFF218H
7
6
5
4
3
2
1
<0>
TMCn
0
0
0
0
TMCn3
TMCn2
TMCn1
OVFn
(n = 0, 1)
TMCn3
TMCn2
TMCn1
Operation mode and
clear mode selector
TOn output timing
selector
Generation of interrupt
0
0
0
Operation stops (TMn is
cleared to 0)
Not affected
Not generated
0
0
1
0
1
0
Free-running mode
Match between TMn and
CRn0 or match between
TMn and CRn1
0
1
1
Match between TMn and
CRn0, match between
TMn and CRn1, or valid
edge of TIn0
1
0
0
Clears and starts at
valid edge of TIn0
Match between TMn and
CRn0 or match between
TMn and CRn1
1
0
1
Match between TMn and
CRn0, match between
TMn and CRn1, or valid
edge of TIn0
1
1
0
Clears and starts on
match between TMn and
CRn0
Match between TMn and
CRn0 or match between
TMn and CRn1
1
1
1
Match between TMn and
CRn0, match between
TMn and CRn1, or valid
edge of TIn0
OVFn
Detection of overflow of 16-bit timer register n
0
Did not overflow
1
Overflowed
Cautions 1.
When a bit other than the OVFn bit is written, be sure to stop the timer operation.
2.
The valid edge of the TIn0 pin is set by using prescaler mode register n0 (PRMn0).
3.
When a mode in which the timer is cleared and started on a match between TMn and CRn0 is
selected, the OVFn bit is set to 1 when the count value of TMn changes from FFFFH to 0000H
with CRn0 set to FFFFH.
4.
Be sure to set bits 4 to 7 to 0.
Remark
TOn:
Output pin of timer n
TIn0:
Input pin of timer n
TMn:
16-bit timer register n
CRn0: Compare register n0
CRn1: Compare register n1
Generated on match
between TMn and CRn0
and match between TMn
and CRn1
Содержание V850/SB1
Страница 2: ...User s Manual U13850EJ6V0UD 2 MEMO ...