Control Registers - NEC UPD703116 User Manual

32-bit single-chip microcontrollers
Table of Contents

Advertisement

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
Note Set the VSWC register to 15H when the PRM2 bit of the timer 1/timer 2 clock selection register (PRM02) =
0B (f
= f
/4) and set the VSWC register to 12H when the PRM2 bit = 1B (f
CLK
XX
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
CHAPTER 9 TIMER/COUNTER FUNCTION
5
4
3
0
0
0
Specifies the base clock (f
0: f
= f
/4
CLK
XX
1: f
= f
/2
CLK
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 U14492EJ5V0UD
) of timer 1 and timer 2.
CLK
2
1
0
0
0
PRM2
Function
Note
) of timer 1 and timer 2
.
CLK
6
5
4
3
2
1
0
0
0
0
0
0
Function
Address
Initial value
FFFFF5D8H
00H
= f
/2).
CLK
XX
0
Address
Initial value
0
FFFFF640H
0000H
335

Advertisement

Table of Contents
loading

Table of Contents