297
CHAPTER 14 16-BIT RELOAD TIMER
14.2.1 Timer Control Status Register (TMCSR)
This section describes the configuration and functions of the timer control status
register (TMCSR).
■
Timer control status register (TMCSR)
The timer control status register (TMCSR) is used to control the operation mode and interrupts
of the16-bit reload timer. If CNTE = 0, bits other than UF/CNTE/TRG are modified.
The figure below shows the bit configuration of the timer control status register (TMCSR).
The functions of the bits in the timer control status register (TMCSR) are described below.
[bit11, bit10] CSL1, CSL0 (Clock selection)
These bits are used to select the clock source using the count clock selection bit.
[bit9, bit8, bit7] MOD2, MOD1, MOD0
These bits set the operation mode and the input/output pin functions. With MOD2 = 0, the
input pin operates as a trigger. If an active edge is input to the input pin and count operation
is in progress, the data from the reload register is loaded into the counter. With MOD2 = 1,
the timer operates in gate counter mode and the input pin operates as a gate input. In this
mode, the counter only counts when the active level is applied to the input pin.
By combination of the MOD2 to MOD0 bits, the internal clock mode and event counter mode
can be selected from the modes listed in Table 14.2-1 and Table 14.2-2.
0000CB
H
15 14 13 12 11 10 9
8 TMCSR
- - - -
CSL1
CSL0
MOD2 MOD1 Timer control status register (upper bits)
(-) (-) (-) (-)
(R/W)
(R/W)
(R/W)
(R/W)
Read/write
(-)
(-)
(-)
(-)
(0)
(0)
(0)
(0)
Initial value
7 6 5 4 3 2 1 0 TMCSR
0000CA
H
MOD0 OUTE OUTL RELD INTE UF CNTE TRG Timer control status register(lower bits)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
Read/write
(0)
(0)
(0)
(0)
(0)
(0)
(0)
(0)
Initial value
CSL1
CSL0
Clock source (machine clock
φ
= 16 MHz)
0
0
φ
/2
1
(0.125
μ
s) (initial value)
0
1
φ
/2
3
(0.5
μ
s)
1
0
φ
/2
5
(2.0
μ
s)
1
1
Event count mode
Summary of Contents for MB90480 Series
Page 2: ......
Page 4: ......
Page 10: ...vi ...
Page 128: ...106 CHAPTER 4 RESET ...
Page 174: ...152 CHAPTER 6 LOW POWER CONSUMPTION MODE ...
Page 198: ...176 CHAPTER 7 MODE SETTING ...
Page 220: ...198 CHAPTER 9 TIMEBASE TIMER ...
Page 238: ...216 CHAPTER 11 WATCH TIMER ...
Page 280: ...258 CHAPTER 12 16 BIT INPUT OUTPUT TIMER ...
Page 406: ...384 CHAPTER 17 8 10 BIT A D CONVERTER ...
Page 478: ...456 CHAPTER 20 CHIP SELECTION FACILITY ...
Page 494: ...472 CHAPTER 21 ADDRESS MATCH DETECTION FUNCTION ...
Page 498: ...476 CHAPTER 22 ROM MIRROR FUNCTION SELECTION MODULE ...
Page 526: ...504 CHAPTER 23 2M 3M BIT FLASH MEMORY ...
Page 536: ...514 CHAPTER 24 EXAMPLES OF MB90F481B MB90F482B MB90F488B MB90F489B SERIAL PROGRAMMING ...
Page 570: ...548 CHAPTER 25 PWC TIMER ONLY MB90485 SERIES ...
Page 688: ......