CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
343
User’s Manual U14492EJ3V0UD
9.3.4 Control registers
(1) Timer 1/timer 2 clock selection register (PRM02)
The PRM02 register is used to select the base clock (f
CLK
) of timer 1 and timer 2.
This register can be read/written in 8-bit or 1-bit units.
Caution
Always set this register before using timer 1 and timer 2.
7
0
PRM02
6
0
5
0
4
0
3
0
2
0
1
0
0
PRM2
Address
FFFFF5D8H
Initial value
00H
Bit Position
Bit Name
Function
0
PRM2
Specifies the base clock of timer 1 and timer 2.
0: f
XX
/4 (when f
XX
> 32 MHz)
1: f
XX
/2 (when f
XX
≤
32 MHz)
Remark
f
XX
: Internal system clock
n = 0, 1
(2) Timer 2 clock stop register 0 (STOPTE0)
The STOPTE0 register is used to stop the operation clock input to timer 2.
This register can be read/written in 16-bit units.
When the higher 8 bits of the STOPTE0 register are used as the STOPTE0H register, and the lower 8 bits
are used as the STOPTE0L register, the STOPTE0H register can be read/written in 8-bit or 1-bit units, and
the STOPTE0L register is read-only in 8-bit units.
Cautions 1. Initialize timer 2 when the STFTE bit = 0. Timer 2 cannot be initialized when the STFTE
bit = 1.
2. If, following initialization, the value of the STFTE bit is made “1”, the initialized state is
maintained.
14
0
13
0
12
0
2
0
3
0
4
0
5
0
6
0
7
0
8
0
9
0
10
0
11
0
<15>
STFTE
1
0
0
0
STOPTE0
Address
FFFFF640H
Initial value
0000H
Bit Position
Bit Name
Function
15
STFTE
Stops the operation clock to timer 2.
0: Normal operation
1: Stop operation clock to timer 2
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...