CHAPTER 7 TIMER/COUNTER FUNCTION
182
Figure 7-36. Format of TM4, TM5 Timer Clock Selection Register 4 and 5 (TCL4, TCL5)
After reset: 00H
R/W
Address: FFFFF264H, FFFFF274H
7
6
5
4
3
2
1
0
TCLn
0
0
0
0
0
TCLn2
TCLn1
TCLn0
(n = 4, 5)
TCLn2
TCLn1
TCLn0
Count Clock Selection
0
0
0
Falling edge of TIn
0
0
1
Rising edge of TIn
0
1
0
f
xx
/4 (4.25 MHz)
0
1
1
f
xx
/8 (2.13 MHz)
1
0
0
f
xx
/16 (1.06 MHz)
1
0
1
f
xx
/32 (531 kHz)
1
1
0
f
xx
/128 (133 kHz)
1
1
1
f
xt
(subclock)
Cautions 1.
When TCLn is overwritten by different data, write after temporarily stopping the timer.
2.
Always set bits 3 to 7 to “0.”
Remarks 1.
Parenthesized values are applied when f
xx
= 17 MHz.
2.
When connected in cascade, the settings of TCLn2 to TCLn0, except for the lowest-order timer,
are disabled.
(2) 8-bit timer mode control register 2-5 (TMC2-TMC5)
The TMCn register makes the following six settings.
(1) Controls the counting by the 8-bit counter n (TMn)
(2) Selects the operating mode of the 8-bit counter n (TMn)
(3) Selects the individual mode or cascade connection mode
(4) Sets the state of the timer output flip-flop
(5) Selects the timer flip-flop control or the active level in the PWM (free running) mode
(6) Controls timer output
TMCn is set by a 1-bit or 8-bit memory manipulation instruction.
RESET input sets these registers to 04H.
Figure 7-37 shows the TMCn format.
Содержание 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 ...