NEC V850/SB1TM User Manual page 183

32-bit single-chip microcontroller
Table of Contents

Advertisement

Cautions 1. Before setting TOCn, be sure to stop the timer operation.
2. LVSn and LVRn are 0 when read after data have been set to them.
3. OSPTn is 0 when read because it is automatically cleared after data has been set.
4. Do not set OSPTn (to 1) when other than one-shot pulse output.
(4) Prescaler mode registers 00, 01 (PRM00, PRM01)
PRM0n selects a count clock of the 16-bit timer (TM0) and the valid edge of TI0n input. PRM00 and PRM01 are
set by an 8-bit memory manipulation instruction.
RESET input clears PRM00 and PRM01 to 00H.
After reset: 00H R/W
7
PRM00
ES011
ES011
0
0
1
1
ES001
0
0
1
1
PRM02
0
0
0
0
1
1
1
1
Notes 1. Bit 0 of the PRM01 register
2. The external clock requires a pulse longer than twice that of the internal clock (f
3. Only for the V850/SB1.
CHAPTER 7
TIMER/COUNTER FUNCTION
Figure 7-5. Prescaler Mode Register 00 (PRM00)
Address: FFFFF206H
6
5
ES010
ES001
ES010
0
Falling edge
1
Rising edge
0
Setting prohibited
1
Both rising and falling edges
ES000
0
Falling edge
1
Rising edge
0
Setting prohibited
1
Both rising and falling edges
Note 1
PRM01
PRM00
0
0
f
0
1
f
1
0
INTWTNI
1
1
TI00 valid edge
0
0
f
0
1
f
1
0
f
1
1
Setting prohibited
User's Manual U13850EJ4V0UM
4
3
2
ES000
0
0
Selects valid edge of TI01
Selects valid edge of TI00
Count clock selection
Count clock
20 MHz
/2
100 ns
XX
/16
800 ns
XX
Note 2
/4
200 ns
XX
3.2 µ s
/64
XX
12.8 µ s
/256
XX
1
0
PRM01
PRM00
f
XX
Note 3
12.58 MHz
158 ns
1.3 µ s
318 ns
5.1 µ s
20.3 µ s
/2).
XX
183

Advertisement

Table of Contents
loading

Table of Contents