English
Language : 

M306V5ME-XXXSP Datasheet, PDF (80/262 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER
MITSUBISHI MICROCOMPUTERS
M306V5ME-XXXSP
M306V5EESP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER
and ON-SCREEN DISPLAY CONTROLLER
2.10.2 Timer B
Figure 2.10.17 shows the block diagram of timer B. Figures 2.10.17 and 2.10.20 show the timer B-related
registers.
Use the timer Bi mode register (i = 0 to 2) bits 0 and 1 to choose the desired mode.
Timer B has three operation modes listed as follows:
• Timer mode: The timer counts an internal count source.
• Event counter mode: The timer counts pulses from an external source or a timer overflow.
• Pulse period/pulse width measuring mode: The timer measures an external signal’s pulse period or
pulse width.
Data bus high-order bits
Clock source selection
f1
• Timer
f8
• Pulse period/pulse width measurement
f32
• Event counter
TB0IN
Polarity switching
and edge pulse
Count start flag
(address 038016)
Data bus low-order bits
Low-order 8 bits
Reload register (16)
High-order 8 bits
Counter (16)
Can be selected in only
event counter mode
TBj overflow
(j = i – 1.
Note, however,
j = 2 when i = 0)
Counter reset circuit
TBi
Timer B0
Timer B1
Timer B2
Address
039116 039016
039316 039216
039516 039416
TBj
Timer B2
Timer B0
Timer B1
Figure 2.10.16 Block diagram of timer B
Timer Bi mode register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
Address
TBiMR(i = 0 to 2) 039B16 to 039D16
When reset
00?X00002
Bit symbol
TMOD0
TMOD1
MR0
MR1
MR2
Bit name
Function
Operation mode select bit
b1 b0
0 0 : Timer mode
0 1 : Event counter mode
1 0 : Pulse period/pulse width
measurement mode
1 1 : Inhibited
Function varies with each operation mode
MR3
TCK0
TCK1
Count source select bit
(Function varies with each operation mode)
Notes 1: Timer B0.
2: Timer B1, timer B2.
Figure 2.10.17 Timer Bi mode register (i = 0 to 2)
RW
(Note 1)
(Note 2)
80
Rev. 1.0