NEC UPD703116 User Manual page 227

32-bit single-chip microcontrollers
Table of Contents

Advertisement

(2) Timer control registers 00, 01 (TMC00, TMC01)
TMC0n register is a 16-bit register that sets the operation of timer 0 (TM0n).
The TMC0n register can be read/written in 16-bit units.
If the higher 8 bits of the TMC0n register are used as the TMC0nH register and the lower 8 bits as the
TMC0nL register, the register can be read/written in 8-bit or 1-bit units.
Caution To operate timer 0, first set TM0CEn = 0 and then set TM0CEn = 1.
<15>
<14>
13
12
TMC00
TM0CE0
STINT0
CUL02
CUL01
<15>
<14>
13
12
TMC01
TM0CE1
STINT1
CUL02
CUL01
Bit position
Bit name
15
TM0CEn
14
STINTn
13 to 11
CUL02 to CUL00
Remark
n = 0, 1
CHAPTER 9 TIMER/COUNTER FUNCTION
11
10
9
8
7
6
CUL00
PRM02
PRM01
PRM00
0
0
11
10
9
8
7
6
CUL00
PRM02
PRM01
PRM00
0
0
Specifies the operation of TM0n.
0: Count disabled (stops after all count values are cleared)
1: Count enabled
Caution When TM0CEn = 0, TO0n0 to TO0n5 output becomes high impedance.
Specifies interrupt during TM0n timer start.
0: Don't generate interrupt at operation start
1: Generate interrupt at operation start
When STINTn bit = 1, an interrupt is generated immediately after the rising edge of
the TM0CEn signal.
When the MOD01 bit = 0 (triangular wave mode), the INTTM0n interrupt (see Figure
9-4) is generated, and when the MOD01 bit = 1 (sawtooth wave mode), the
INTCM0n3 interrupt is generated.
Caution Changing the STINTn bit during TM0n operation (TM0CEn bit = 1) is
prohibited.
Specifies the interrupt culling ratio.
CUL02
CUL01
0
0
0
0
1
Other than above
User's Manual U14492EJ5V0UD
<5>
4
3
2
1
TM0CED0
BFTE3
BFTEN
MBFTE
MOD01
MOD00
<5>
4
3
2
1
TM0CED1
BFTE3
BFTEN
MBFTE
MOD01
MOD00
Function
CUL00
Interrupt culling ratio
0
0
0
1
1
0
1
1
0
0
Culling is not performed
0
Address
Initial value
FFFFF57AH
0508H
0
Address
Initial value
FFFFF5BAH
0508H
1/1
1/2
1/4
1/8
1/16
(1/4)
227

Advertisement

Table of Contents
loading

Table of Contents