Control Registers - NEC V850E/IA1 mPD703116 User Manual

32-bit single-chip microcontrollers
Hide thumbs Also See for V850E/IA1 mPD703116:
Table of Contents

Advertisement

CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)

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
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
6
PRM02
0
0
Bit Position
Bit Name
0
PRM2
Remark f
: Internal system clock
XX
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.
<15>
14
13
STOPTE0
STFTE
0
0
Bit Position
Bit Name
15
STFTE
5
4
3
0
0
0
Specifies the base clock of timer 1 and timer 2.
0: f
/4 (when f
> 32 MHz)
XX
XX
≤ 32 MHz)
1: f
/2 (when f
XX
XX
12
11
10
9
8
7
0
0
0
0
0
0
Stops the operation clock to timer 2.
0: Normal operation
1: Stop operation clock to timer 2
User's Manual U14492EJ3V0UD
) of timer 1 and timer 2.
CLK
2
1
0
0
0
PRM2
Function
6
5
4
3
2
1
0
0
0
0
0
0
Function
Address
Initial value
FFFFF5D8H
00H
0
Address
Initial value
0
FFFFF640H
0000H
343

Advertisement

Table of Contents
loading

Table of Contents