191
CHAPTER 8 8-BIT TIMER/EVENT COUNTERS 50, 51
User’s Manual U15798EJ2V0UD
8.4 Registers to Control 8-Bit Timer/Event Counters 50 and 51
The following three types of registers are used to control 8-bit timer/event counters 50 and 51.
• Timer clock select register 5n (TCL5n)
• 8-bit timer mode control register 5n (TMC5n)
• Port mode register 3 (PM3)
Remark
n = 0, 1
(1) Timer clock select register 5n (TCL5n: n = 0, 1)
This register sets the count clock of 8-bit timer/event counter 5n and the valid edge of the TI5n input.
TCL5n is set by an 8-bit memory manipulation instruction.
RESET input sets the value of this register to 00H.
Figure 8-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
(10 MHz)
0
1
1
f
X
/2
2
(2.5 MHz)
1
0
0
f
X
/2
4
(625 kHz)
1
0
1
f
X
/2
6
(156 kHz)
1
1
0
f
X
/2
8
(39.1 kHz)
1
1
1
f
X
/2
10
(9.77 kHz)
Cautions 1. When rewriting TCL50 to other data, stop the timer operation beforehand.
2. Be sure to set bits 3 to 7 to 0.
Remarks 1.
f
X
: Main system clock oscillation frequency
2.
Figures in parentheses are for operation with f
X
= 10 MHz
Содержание mPD780344 Series
Страница 2: ...2 User s Manual U15798EJ2V0UD MEMO...