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

no-image

M30622ECTFP

Manufacturer Part Number
M30622ECTFP
Description
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheet
Timer A
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. But M30623(80-pin package), timer A1 and A2
have no I/O pin, so it operate as only internal timer.
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.
Note 1: In M30623(80-pin package), do not select the function using TA1
Note 2: The TA0
TAk overflow
(k = i + 1. Note, however, that k = 0 when i = 4)
Tentative Specifications REV.A
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
IN
S
f
f
8
1
32
Timer Ai mode register
b7
OUT
pecifications in this manual are tentative and subject to change.
Clock source
selection
these are not connected to the external pin.
b6
selection
Polarity
b5
b4
IN
Pulse output
b3
pin (P7
b2
b1
1
• Timer
• Event counter
) is shared with the TB5
• Timer
• One shot
• PWM
Clock selection
(gate function)
b0
Bit symbol
TMOD0
TMOD1
MR0
MR1
MR2
MR3
TCK0
TCK1
Symbol
TAiMR(i=0 to 4)
External
trigger
Count source select bit
Function varies with each operation mode
Operation mode select bit
(Function varies with each operation mode)
(Address 0384
Up/down flag
IN
(Address 0380
Count start flag
pin, RxD
Down count
Toggle flip-flop
Bit name
0396
84
Address
16
16
)
to 039A
2
, and SCL pin.
16
Data bus high-order bits
)
Data bus low-order bits
Reload register (16)
16
Low-order
8 bits
Counter (16)
When reset
IN
b1 b0
0 0 : Timer mode
0 1 : Event counter mode
1 0 : One-shot timer mode
1 1 : Pulse width modulation
,
TA1
00
Timer A0 0387
Timer A1 0389
Timer A2 038B
Timer A3 038D
Timer A4 038F
16
(PWM) mode
TAi
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Up count/down count
OUT
Always down count except
in event counter mode
, or TA2
Function
Addresses
16
16
16
16
16
High-order
8 bits
0386
0388
038A
038C
038E
IN
, and
16
16
16
16
16
Mitsubishi microcomputers
16
Timer A4
Timer A0
Timer A1
Timer A2
Timer A3
”.
TA2
TAj
M16C / 62T Group
OUT
Timer A1
Timer A2
Timer A3
Timer A4
Timer A0
because
R
TAk
W

Related parts for M30622ECTFP