Figure 12-11: Prescaler Mode Register 10 (Prm10) - NEC V850E/PH2 User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

Chapter 12 16-bit 2-Phase Encoder Input Up/Down Counter/General Purpose Timer (TMENC10)
(5)
Prescaler mode register 10 (PRM10)
The PRM register is used to perform the following selections.
• Selection of count clock in the general-purpose timer mode (CMD bit of TUM10 register = 0)
• Selection of count operation mode in the UDC mode (CMD bit = 1)
This register can be read or written in 8-bit or 1-bit units.
Reset input clears this register to 07H.
Cautions: 1. Overwriting the PRM10 register during TMENC10 operation (TM1CE bit = 1) is pro-
hibited.
2. When the CMD bit of the TUM10 register = 1 (UDC mode), setting the values of the
PRM2 to PRM0 bits to 000B, 001B, 010B, and 011B is prohibited.
3. When TMENC10 is in mode 4, specification of the valid edge for the TIUD1 and
TCUD1 pins is invalid.
After reset:
07H
7
PRM10
0
PRM102
0
0
0
0
1
1
1
1
Remark:
f
: Internal system clock
XX
(a) In general-purpose timer mode (CMD bit = 0)
The count clock is fixed to the internal clock. The clock rate of TMENC10 is specified by the
PRM102 to PRM100 bits.

Figure 12-11: Prescaler Mode Register 10 (PRM10)

R/W
Address:
6
5
0
0
PRM101
PRM100
0
0
0
1
1
0
1
1
0
0
0
1
1
0
1
1
User's Manual U16580EE3V1UD00
FFFFF6BEH
4
3
0
0
PRM102
CMD = 0
Count Clock
Count Clock
Setting
Setting prohibited
prohibited
f
/8
XX
f
/16
XX
f
/32
XX
f
/64
TIUD1
XX
f
/128
XX
f
/256
XX
f
/512
XX
2
1
0
PRM101
PRM100
CMD = 1
UDC Mode
Mode 1
Mode 2
Mode 3
Mode 4
551

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mupd70f3187

Table of Contents