M306V0ME-107FP MITSUBISHI [Mitsubishi Electric Semiconductor], M306V0ME-107FP Datasheet - Page 81

no-image

M306V0ME-107FP

Manufacturer Part Number
M306V0ME-107FP
Description
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheet
Rev. 1.0
2.10.1 Timer A
Figure 2.10.3 Block diagram of timer A
Figure 2.10.4 Timer Ai mode register (i = 0 to 4)
Figure 2.10.3 shows the block diagram of timer A. Figures 2.10.4 to 2.10.10 show the timer A-related
registers.
Except the pulse output function, timers A0 through A4 all have the same function. Use the timer Ai mode
register (i = 0 to 4) bits 0 and 1 to choose the desired mode.
Timer A has the four operation modes listed as follows:
• Timer mode: The timer counts an internal count source.
• Event counter mode: The timer counts a timer over flow.
• One-shot timer mode: The timer stops counting when the count reaches “0000
• Pulse width modulation (PWM) mode: The timer outputs pulses of a given width.
T B 2 o v e r f l o w
T A j o v e r f l o w
( j = i – 1 . N o t e , h o w e v e r , t h a t j = 4 w h e n i = 0 )
T A k o v e r f l o w
( k = i + 1 . N o t e , h o w e v e r , t h a t k = 0 w h e n i = 4 )
T A i
( i = 2 , 3 )
f
f
f
f
C 3 2
1
8
3 2
O U T
C l o c k s o u r c e
s e l e c t i o n
Timer Ai mode register
b7
b6
b5
P u l s e o u t p u t
b4
b3
• C l o c k s e l e c t i o n
b2
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER
b1
• T i m e r
• O n e s h o t
• P W M
• E v e n t c o u n t e r
b0
Note: Only timers 2 and 3 have PWM mode.
Bit symbol
TMOD0
TMOD1
MR0
MR1
MR2
MR3
TCK0
TCK1
Symbol
TAiMR(i=0 to 4)
E x t e r n a l
t r i g g e r
Count source select bit
Operation mode select bit
Function varies with each operation mode
( A d d r e s s 0 3 8 4
(Function varies with each operation mode)
U p / d o w n f l a g
C o u n t s t a r t f l a g
( A d d r e s s 0 3 8 0
D o w n c o u n t
T o g g l e f l i p - f l o p
Bit name
0396
Address
16
1 6
)
to 039A
1 6
D a t a b u s h i g h - o r d e r b i t s
)
D a t a b u s l o w - o r d e r b i t s
R e l o a d r e g i s t e r ( 1 6 )
16
L o w - o r d e r
8 b i t s
C o u n t e r ( 1 6 )
When reset
b1 b0
0 0 : Timer mode
0 1 : Event counter mode
1 0 : One-shot timer mode
1 1 : Pulse width modulation
00
T i m e r A 0 0 3 8 7
T i m e r A 1 0 3 8 9
T i m e r A 2 0 3 8 B
T i m e r A 3 0 3 8 D
T i m e r A 4 0 3 8 F
and ON-SCREEN DISPLAY CONTROLLER
(PWM) mode
16
T A i
U p c o u n t / d o w n c o u n t
A l w a y s d o w n c o u n t e x c e p t
i n e v e n t c o u n t e r m o d e
MITSUBISHI MICROCOMPUTERS
Function
A d d r e s s e s
1 6
1 6
1 6
1 6
1 6
M306V0ME-XXXFP
H i g h - o r d e r
8 b i t s
0 3 8 6
0 3 8 8
0 3 8 A
0 3 8 C
0 3 8 E
1 6
1 6
1 6
1 6
1 6
16
”.
T i m e r A 4
T i m e r A 0
T i m e r A 1
T i m e r A 2
T i m e r A 3
(Note)
M306V0EEFP
T A j
R
T i m e r A 1
T i m e r A 2
T i m e r A 3
T i m e r A 4
T i m e r A 0
T A k
W
81

Related parts for M306V0ME-107FP