138
CHAPTER 7 8-BIT TIMER/EVENT COUNTER
Preliminary User’s Manual U13420EJ2V0UM00
7.3 Registers to Control 8-Bit Timer/Event Counter
The following three types of registers are used to control 8-bit timer/event counters.
• Timer clock select register 5n (TCL5n)
• 8-bit timer mode control register 5n (TMC5n)
• Port mode register 2 (PM2)
n = 0, 1
(1) Timer clock select register 5n (TCL5n: n = 0, 1)
This register sets count clocks of 8-bit timer/event counter 5n and the valid edge of TI50, TI51 input.
TCL5n is set with an 8-bit memory manipulation instruction.
RESET input sets to 00H.
Figure 7-3. Format of Timer Clock Select Register 50 (TCL50)
Address: FF71H After reset: 00H R/W
Symbol
7
6
5
4
3
2
1
0
TCL50
0
0
0
0
0
TCL502
TCL501
TCL500
TCL502
TCL501
TCL500
Count clock selection
0
0
0
TI50 Falling edge
0
0
1
TI50 Rising edge
0
1
0
f
X
(8.38 MHz)
0
1
1
f
X
/2
2
(2.09 MHz)
1
0
0
f
X
/2
4
(523 kHz)
1
0
1
f
X
/2
6
(131 kHz)
1
1
0
f
X
/2
8
(32.7 kHz)
1
1
1
f
X
/2
10
(8.18 kHz)
Cautions 1. When rewriting TCL50 to other data, stop the timer operation beforehand.
2. Set bits 3 to 7 to 0.
Remarks 1. When cascade connection is used, the settings of TCL5n0 to TCL5n2 (n = 0, 1) are valid only for
the lowermost timer.
2. f
X
: Main system clock oscillation frequency
3. Figures in parentheses are for operation with f
X
= 8.38 MHz
Содержание mPD780065 Series
Страница 2: ...Preliminary User s Manual U13420EJ2V0UM00 2 MEMO ...
Страница 10: ...10 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 22: ...22 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 134: ...134 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 154: ...154 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 160: ...160 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 186: ...186 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 326: ...326 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 342: ...342 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 350: ...350 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...