CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
314
User’s Manual U14492EJ3V0UD
(6) Prescaler mode registers 10, 11 (PRM10, PRM11)
The PRM1n register is used to perform the following selections.
•
Selection of count clock in the general-purpose timer mode (CMD bit of TUMn register = 0)
•
Selection of count operation mode in the UDC mode (CMD bit = 1)
PRM1n can be read/written in 8-bit or 1-bit units.
Cautions 1. Overwriting the PRM1n register during TM1n operation (TM1CEn bit = 1) is prohibited.
2. When the CMD bit of the TUMn register = 1 (UDC mode), setting the values of bits
PRM12 to PRM10 to 000, 001, 010, and 011 is prohibited.
3. When TM1n is in mode 4, specification of the valid edge for the TIUD1n and TCUD1n
pins is invalid.
7
0
PRM10
6
0
5
0
4
0
3
0
2
PRM12
1
PRM11
0
PRM10
Address
FFFFF5EEH
Initial value
07H
7
0
PRM11
6
0
5
0
4
0
3
0
2
PRM12
1
PRM11
0
PRM10
Address
FFFFF60EH
Initial value
07H
Bit Position
Bit Name
Function
Specifies the up/down count operation mode during input of the clock rate when the
internal clock of the TM1n is used, or during external clock (TIUD1n) input.
CMD = 0
CMD = 1
PRM12
PRM11
PRM10
Count Clock
Count Clock
Up/Down
Count
0
0
0
Setting
prohibited
0
0
1
f
CLK
/2
0
1
0
f
CLK
/4
0
1
1
f
CLK
/8
Setting prohibited (Mode 4)
(At this time, SESA1n
register is enabled.)
1
0
0
f
CLK
/16
Mode 1
1
0
1
f
CLK
/32
Mode 2
1
1
0
f
CLK
/64
Mode 3
1
1
1
f
CLK
/128
TIUD1n
Mode 4
2 to 0
PRM12 to
PRM10
Remarks 1.
f
CLK
: Base clock
2.
n = 0, 1
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...