M30622M4 MITSUBISHI [Mitsubishi Electric Semiconductor], M30622M4 Datasheet - Page 84

no-image

M30622M4

Manufacturer Part Number
M30622M4
Description
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M30622M4A-462GP D3
Manufacturer:
RENESAS
Quantity:
1 000
Part Number:
M30622M4A-462GP D3
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Timer A
84
Timer A
Figure 1.17.3. Block diagram of timer A
Figure 1.17.4. Timer A-related registers (1)
Figure 1.17.3 shows the block diagram of timer A. Figures 1.17.4 to 1.17.6 show the timer A-related
registers.
Except in event counter mode, 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 pulses from an external source or 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.
TAk overflow
(k = i + 1. Note, however, that k = 0 when i = 4)
TB2 overflow
TAj overflow
(j = i – 1. Note, however, that j = 4 when i = 0)
TAi
(i = 0 to 4)
TAi
(i = 0 to 4)
f
f
C32
f
f
8
1
32
IN
OUT
Clock source
selection
selection
Polarity
Timer Ai mode register
b7
b6
b5
Pulse output
b4
b3
b2
• Timer
• One shot
• PWM
• Timer
• Event counter
Clock selection
(gate function)
b1
b0
Bit symbol
TMOD0
TMOD1
MR0
MR1
MR2
MR3
TCK0
TCK1
External
trigger
Symbol
TAiMR(i=0 to 4)
Count source select bit
Function varies with each operation mode
Operation mode select bit
(Address 0384
(Function varies with each operation mode)
Up/down flag
(Address 0380
Count start flag
Down count
Toggle flip-flop
Bit name
0396
Address
16
16
to 039A
)
16
Data bus high-order bits
)
Data bus low-order bits
16
Reload register (16)
When reset
Low-order
8 bits
b1 b0
Counter (16)
0 0 : Timer mode
0 1 : Event counter mode
1 0 : One-shot timer mode
1 1 : Pulse width modulation
00
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Timer A0 0387
Timer A1 0389
Timer A2 038B
Timer A3 038D
Timer A4 038F
16
(PWM) mode
TAi
Up count/down count
Always down count except
in event counter mode
Function
Addresses
16
16
16
16
16
High-order
8 bits
0386
0388
038A
038C
038E
16
”.
16
16
16
16
16
Mitsubishi microcomputers
M16C / 62 Group
Timer A4
Timer A0
Timer A1
Timer A2
Timer A3
TAj
R
W
Timer A1
Timer A2
Timer A3
Timer A4
Timer A0
TAk

Related parts for M30622M4